Skip to content

Commit

Permalink
Disable SD prompt after first TWLMenu++ boot on DSi
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketRobz committed May 23, 2024
1 parent 8329580 commit 614a8fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions booter/arm7/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ int main() {

setPowerButtonCB(powerButtonCB);

*(u8*)0x0280FFFF = i2cReadRegister(0x4A, 0x71);

// Keep the ARM7 mostly idle
while (!exitflag) {
if ((REG_KEYINPUT & (KEY_SELECT | KEY_START | KEY_L | KEY_R)) == 0) {
Expand Down
6 changes: 3 additions & 3 deletions booter/arm9/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ int main(int argc, char **argv) {
extern const DISC_INTERFACE __my_io_dsisd;
const bool fatInited = fatMountSimple("sd", &__my_io_dsisd);

*(u32*)0x0CFFFD0C = 0x47444943; // 'CIDG'
while (*(u32*)0x0CFFFD0C != 0) { swiDelay(100); }
if (*(u8*)0x0280FFFF != 0x01) {
*(u32*)0x0CFFFD0C = 0x47444943; // 'CIDG'
while (*(u32*)0x0CFFFD0C != 0) { swiDelay(100); }

{
DC_FlushRange((void*)0x02810000, 16);

const u16 manufID = *(u16*)0x0281000E;
Expand Down

0 comments on commit 614a8fa

Please sign in to comment.