From 4ac43fb06f581b1f915315f5f4b7e94986886f2b Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Sat, 7 Sep 2024 20:41:16 -0600 Subject: [PATCH] Fix #1730 --- retail/arm9/include/dsiwaresSetForBootloader.h | 1 + retail/bootloaderi/source/arm7/patch_common.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/retail/arm9/include/dsiwaresSetForBootloader.h b/retail/arm9/include/dsiwaresSetForBootloader.h index c7ea3e0d2..fb7a4a2ab 100644 --- a/retail/arm9/include/dsiwaresSetForBootloader.h +++ b/retail/arm9/include/dsiwaresSetForBootloader.h @@ -248,6 +248,7 @@ static const char dsiWareForBootloader1[][4] = { "KKI", // Hellokids: Vol. 1: Coloring and Painting! "K5E", // G.G Series: Hero Puzzle "K5J", // G.G Series: The Hidden Ninja Kagemaru + "KHJ", // Hidden Photo (bootloaderi-exclusive) "KTX", // High Stakes Texas Hold'em "KHI", // Hints Hunter "KT2", // G.G Series: Horizontal Bar diff --git a/retail/bootloaderi/source/arm7/patch_common.c b/retail/bootloaderi/source/arm7/patch_common.c index 99ef84eef..026250098 100644 --- a/retail/bootloaderi/source/arm7/patch_common.c +++ b/retail/bootloaderi/source/arm7/patch_common.c @@ -7250,6 +7250,24 @@ void dsiWarePatch(cardengineArm9* ce9, const tNDSHeader* ndsHeader) { *(u32*)(0x0201FE9C+offsetChange2) = 0xE3A00000; // mov r0, #0 (Return empty Hellokids Album) } + // Hidden Photo (USA) + if (strcmp(romTid, "KHJE") == 0 && !dsiWramAccess) { + *(u32*)0x020335A0 = 0xE1A00000; // nop (Disable shutter sound loading) + *(u32*)0x02033A98 = 0xE3A00001; // mov r0, #1 (Disable shutter sound playback, still softlocks when taking photo) + } + + // Hidden Photo (Europe) + if (strcmp(romTid, "DD3P") == 0 && !dsiWramAccess) { + *(u32*)0x0202C8E0 = 0xE1A00000; // nop (Disable shutter sound loading) + *(u32*)0x0202CDC8 = 0xE3A00001; // mov r0, #1 (Disable shutter sound playback, still softlocks when taking photo) + } + + // Wimmelbild Creator (German) + if (strcmp(romTid, "DD3D") == 0 && !dsiWramAccess) { + *(u32*)0x0202B9E8 = 0xE1A00000; // nop (Disable shutter sound loading) + *(u32*)0x0202BED0 = 0xE3A00001; // mov r0, #1 (Disable shutter sound playback, still softlocks when taking photo) + } + // High Stakes Texas Hold'em (USA) // High Stakes Texas Hold'em (Europe, Australia) else if ((strcmp(romTid, "KTXE") == 0 || strcmp(romTid, "KTXV") == 0) && saveOnFlashcard) {