diff options
author | StapleButter <thetotalworm@gmail.com> | 2018-04-27 19:26:46 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2018-04-27 19:26:46 +0200 |
commit | 81e98b5e129f7018f1379d04ad42c0dc1ca5420b (patch) | |
tree | 62eac0567605d7335644ba4ae99cc4eda57a69fd /src/NDS.cpp | |
parent | f0bc36421029f61bb0ba4dc4efed86a0bfc63d0b (diff) |
direct boot: init cart ID from NDSCart::CartID instead of hardcoding it
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r-- | src/NDS.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp index ca84f98..fa7cb84 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -189,15 +189,15 @@ void SetupDirectBoot() ARM9Write32(0x027FFE00+i, tmp); } - ARM9Write32(0x027FF800, 0x00001FC2); - ARM9Write32(0x027FF804, 0x00001FC2); + ARM9Write32(0x027FF800, NDSCart::CartID); + ARM9Write32(0x027FF804, NDSCart::CartID); ARM9Write16(0x027FF808, *(u16*)&NDSCart::CartROM[0x15E]); ARM9Write16(0x027FF80A, *(u16*)&NDSCart::CartROM[0x6C]); ARM9Write16(0x027FF850, 0x5835); - ARM9Write32(0x027FFC00, 0x00001FC2); - ARM9Write32(0x027FFC04, 0x00001FC2); + ARM9Write32(0x027FFC00, NDSCart::CartID); + ARM9Write32(0x027FFC04, NDSCart::CartID); ARM9Write16(0x027FFC08, *(u16*)&NDSCart::CartROM[0x15E]); ARM9Write16(0x027FFC0A, *(u16*)&NDSCart::CartROM[0x6C]); |