Skip to content

Commit

Permalink
Slot-1: SCFG setting no longer overrides SD access setting
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed Sep 29, 2024
1 parent 09941f2 commit 9ce7116
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions booter_fc/arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,15 @@ void powerButtonCB() {
//---------------------------------------------------------------------------------
int main() {
//---------------------------------------------------------------------------------
REG_SCFG_ROM = 0x101;
REG_SCFG_CLK = (BIT(0) | BIT(1) | BIT(2) | BIT(7) | BIT(8));
REG_SCFG_EXT = 0x93FFFB06;
{
REG_SCFG_ROM = 0x101;
REG_SCFG_CLK = (BIT(0) | BIT(1) | BIT(2) | BIT(7) | BIT(8));
const bool sdAccess = (REG_SCFG_EXT & BIT(18));
REG_SCFG_EXT = 0x93FFFB06;
if (!sdAccess) {
REG_SCFG_EXT &= ~BIT(18);
}
}
*(vu16*)(0x04004012) = 0x1988;
*(vu16*)(0x04004014) = 0x264C;
*(vu16*)(0x04004C02) = 0x4000; // enable powerbutton irq (Fix for Unlaunch 1.3)
Expand Down

0 comments on commit 9ce7116

Please sign in to comment.