Skip to content

Commit

Permalink
Fix #1730
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Sep 8, 2024
1 parent 0e812c8 commit 4ac43fb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions retail/arm9/include/dsiwaresSetForBootloader.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions retail/bootloaderi/source/arm7/patch_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4ac43fb

Please sign in to comment.