Skip to content

Added support for Big-Endian DLCs#1291

Open
sestain wants to merge 1 commit intosmartcmd:mainfrom
sestain:DLC-BigEndian-Fix
Open

Added support for Big-Endian DLCs#1291
sestain wants to merge 1 commit intosmartcmd:mainfrom
sestain:DLC-BigEndian-Fix

Conversation

@sestain
Copy link

@sestain sestain commented Mar 16, 2026

Description

Fixes a crash that occurs if .pck file was in Big-Endian. This PR also adds support for DLCs that have Skins.pck inside them.

Changes

Previous Behavior

Game crashed when Big-Endian aligned DLC was trying to load.

Root Cause

Had to swap between Big and Little Endian alignments.

New Behavior

Now Big- and Little Endian aligned DLCs can load. PS3 Skin DLCs can now load without any modifications done to them (64x32 looking fine, 64x64 are still broken until someone's PR is merged). Other PS3 DLCs might require further changes, as in, texture packs, audio, maps.

Fix Implementation

Added few helper functions to read and swap bytes easily.

AI Use Disclosure

No AI was used.

Related Issues

  • Fixes #[issue-number]
  • Related to #[issue-number]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant