From 52a1da4de855f4c14d398ab990a91a242ea1b7a8 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 11 Mar 2024 15:19:14 -0600 Subject: [PATCH] Do not force-decompress arm9 binary for *Chrono Trigger* Fixes Italian translation not booting --- retail/bootloader/source/arm7/decompress.c | 7 +------ retail/bootloaderi/source/arm7/decompress.c | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/retail/bootloader/source/arm7/decompress.c b/retail/bootloader/source/arm7/decompress.c index f0f9ffaf1..bc32bd403 100644 --- a/retail/bootloader/source/arm7/decompress.c +++ b/retail/bootloader/source/arm7/decompress.c @@ -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); diff --git a/retail/bootloaderi/source/arm7/decompress.c b/retail/bootloaderi/source/arm7/decompress.c index 4f375fbc9..2f4396bbe 100644 --- a/retail/bootloaderi/source/arm7/decompress.c +++ b/retail/bootloaderi/source/arm7/decompress.c @@ -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);