Skip to content

Added support for Big-Endian DLCs#1291

Open
sestain wants to merge 3 commits intosmartcmd:mainfrom
sestain:DLC-BigEndian-Fix
Open

Added support for Big-Endian DLCs#1291
sestain wants to merge 3 commits 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.

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 skins looking fine, 64x64 skinsare 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]

@deffcolony deffcolony mentioned this pull request Mar 17, 2026
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