Skip to content

Commit

Permalink
Update supported language bitmask for Australian region
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Jan 25, 2024
1 parent b06391f commit d082eb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions retail/bootloader/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,9 +1045,11 @@ static void setMemoryAddress(const tNDSHeader* ndsHeader, const module_params_t*
// Set bitmask for supported languages
u8 curRegion = *(u8*)0x02FFFD70;
if (curRegion == 1) {
*(u32*)(0x02FFFD68) = 0x26;
} else if (curRegion == 2 || curRegion == 3) {
*(u32*)(0x02FFFD68) = 0x3E;
*(u32*)(0x02FFFD68) = 0x26; // USA
} else if (curRegion == 2) {
*(u32*)(0x02FFFD68) = 0x3E; // EUR
} else if (curRegion == 3) {
*(u32*)(0x02FFFD68) = BIT(1); // AUS
} else if (curRegion == 4) {
*(u32*)(0x02FFFD68) = 0x40; // CHN
} else if (curRegion == 5) {
Expand Down
8 changes: 5 additions & 3 deletions retail/bootloaderi/source/arm7/main.arm7.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,9 +1273,11 @@ static void setMemoryAddress(const tNDSHeader* ndsHeader, const module_params_t*
// Set bitmask for supported languages
u8 curRegion = *(u8*)0x02FFFD70;
if (curRegion == 1) {
*(u32*)(0x02FFFD68) = 0x26;
} else if (curRegion == 2 || curRegion == 3) {
*(u32*)(0x02FFFD68) = 0x3E;
*(u32*)(0x02FFFD68) = 0x26; // USA
} else if (curRegion == 2) {
*(u32*)(0x02FFFD68) = 0x3E; // EUR
} else if (curRegion == 3) {
*(u32*)(0x02FFFD68) = BIT(1); // AUS
} else if (curRegion == 4) {
*(u32*)(0x02FFFD68) = 0x40; // CHN
} else if (curRegion == 5) {
Expand Down

0 comments on commit d082eb7

Please sign in to comment.