aboutsummaryrefslogtreecommitdiff
path: root/src/NDSCart.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-06-02 00:25:29 +0200
committerArisotura <thetotalworm@gmail.com>2020-06-02 00:25:29 +0200
commitd0af89924edf4e14a092e5352808f6a2ce44d53a (patch)
tree55f71b52483fc790cb874fcd7951bb0ba4f1186d /src/NDSCart.cpp
parentee9fe327e2c1c5b9289540a710d4ad2ac04e65c8 (diff)
remove requirement for initmem7/9.bin (but this requires augmented BIOS dumps, we'll get there)
Diffstat (limited to 'src/NDSCart.cpp')
-rw-r--r--src/NDSCart.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/NDSCart.cpp b/src/NDSCart.cpp
index b326dd6..a5e0f41 100644
--- a/src/NDSCart.cpp
+++ b/src/NDSCart.cpp
@@ -562,17 +562,10 @@ void Key1_ApplyKeycode(u32* keycode, u32 mod)
void Key1_InitKeycode(bool dsi, u32 idcode, u32 level, u32 mod)
{
// TODO: source the key data from different possible places
- if (NDS::ConsoleType == 1)
- {
- if (dsi)
- memcpy(Key1_KeyBuf, &DSi::ARM7Init[0x254], 0x1048); // hax
- else
- memcpy(Key1_KeyBuf, &DSi::ITCMInit[0x4894], 0x1048); // hax
- }
+ if (dsi && NDS::ConsoleType==1)
+ memcpy(Key1_KeyBuf, &DSi::ARM7iBIOS[0xC6D0], 0x1048); // hax
else
- {
memcpy(Key1_KeyBuf, &NDS::ARM7BIOS[0x30], 0x1048); // hax
- }
u32 keycode[3] = {idcode, idcode>>1, idcode<<1};
if (level >= 1) Key1_ApplyKeycode(keycode, mod);