Skip to content

Commit

Permalink
Do not force-decompress arm9 binary for *Chrono Trigger*
Browse files Browse the repository at this point in the history
Fixes Italian translation not booting
  • Loading branch information
RocketRobz committed Mar 11, 2024
1 parent 1063b75 commit 52a1da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions retail/bootloader/source/arm7/decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,7 @@ void ensureBinaryDecompressed(const tNDSHeader* ndsHeader, module_params_t* modu
const char* romTid = getRomTid(ndsHeader);
unpatchedFunctions* unpatchedFuncs = (unpatchedFunctions*)UNPATCHED_FUNCTION_LOCATION;

if (
moduleParams->compressed_static_end
|| strcmp(romTid, "YQUJ") == 0 // Chrono Trigger (Japan)
|| strcmp(romTid, "YQUE") == 0 // Chrono Trigger (USA)
|| strcmp(romTid, "YQUP") == 0 // Chrono Trigger (Europe)
) {
if (moduleParams->compressed_static_end) {
// Compressed
dbg_printf("arm9 is compressed\n");
unpatchedFuncs->compressedFlagOffset = (u32*)((u32)moduleParams+0x14);
Expand Down
7 changes: 1 addition & 6 deletions retail/bootloaderi/source/arm7/decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,7 @@ void ensureBinaryDecompressed(const tNDSHeader* ndsHeader, module_params_t* modu
const char* romTid = getRomTid(ndsHeader);
unpatchedFunctions* unpatchedFuncs = (unpatchedFunctions*)UNPATCHED_FUNCTION_LOCATION;

if (
moduleParams->compressed_static_end
|| strcmp(romTid, "YQUJ") == 0 // Chrono Trigger (Japan)
|| strcmp(romTid, "YQUE") == 0 // Chrono Trigger (USA)
|| strcmp(romTid, "YQUP") == 0 // Chrono Trigger (Europe)
) {
if (moduleParams->compressed_static_end) {
// Compressed
dbg_printf("arm9 is compressed\n");
unpatchedFuncs->compressedFlagOffset = (u32*)((u32)moduleParams+0x14);
Expand Down

0 comments on commit 52a1da4

Please sign in to comment.