Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Nov 18, 2019
1 parent 78f3238 commit 5bbaeb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions b4ds/bootloader/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,7 @@ int arm7_main(void) {

my_readUserSettings(ndsHeader); // Header has to be loaded first

if (strcmp(getRomTid(ndsHeader), "UBRP") == 0) {
if (extendedMemory && !dsDebugRam) {
if ((strcmp(getRomTid(ndsHeader), "UBRP") == 0) && extendedMemory && !dsDebugRam) {
toncset((char*)0x02400000, 0xFF, 0xC0);
*(u8*)0x024000B2 = 0;
*(u8*)0x024000B3 = 0;
Expand All @@ -596,7 +595,6 @@ int arm7_main(void) {
*(u8*)0x024000B7 = 0x24;
*(u16*)0x024000BE = 0x7FFF;
*(u16*)0x024000CE = 0x7FFF;
}
}

nocashMessage("Trying to patch the card...\n");
Expand Down

0 comments on commit 5bbaeb4

Please sign in to comment.