Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Aug 29, 2024
1 parent 04f81f4 commit 2e7661e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion slot1launch/bootloader/source/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1016,8 +1016,9 @@ void arm7_main (void) {
my_readUserSettings(ndsHeader); // Header has to be loaded first

if (my_isDSiMode()) {
*(vu16*)0x4004700 &= ~BIT(15); // Runs before sound frequency change
*(vu16*)0x4004700 &= ~BIT(15); // Disable sound output: Runs before sound frequency change
*(vu16*)0x4004700 = (soundFreq ? 0xC00F : 0x800F);
*(vu16*)0x4004700 |= BIT(15); // Enable sound output

if (dsiModeConfirmed) {
*(u32*)0x3FFFFC8 = 0x7884; // Fix sound pitch table for DSi mode (works with SDK5 binaries)
Expand Down
3 changes: 2 additions & 1 deletion slot1launch/bootloaderAlt/source/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,9 @@ void arm7_main (void) {
}

if (my_isDSiMode()) {
*(vu16*)0x4004700 &= ~BIT(15); // Runs before sound frequency change
*(vu16*)0x4004700 &= ~BIT(15); // Disable sound output: Runs before sound frequency change
*(vu16*)0x4004700 = (soundFreq ? 0xC00F : 0x800F);
*(vu16*)0x4004700 |= BIT(15); // Enable sound output

twlTouch ? DSiTouchscreenMode() : NDSTouchscreenMode();
*(vu16*)0x4000500 = 0x807F;
Expand Down

0 comments on commit 2e7661e

Please sign in to comment.