Skip to content

Commit

Permalink
3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowtrance committed Jan 24, 2016
1 parent 84b1edc commit dee3b41
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ void bnInitParamsByFirmware() {
bnConfig->FSPatchAddr = 0x0010EED4;
bnConfig->SMPatchAddr = 0x0010189C;
}

if (kernelVersion == SYSTEM_VERSION(2, 50, 11)) {
// new3ds 10.4
//TODO: add new3ds 10.4 firmware support
ntrConfig->firmVersion = SYSTEM_VERSION(10, 4, 0);
}
}
bnConfig->requireKernelHax = 0;
}
Expand All @@ -322,14 +328,17 @@ Result bnInitParamsByHomeMenu() {
flushDataCache();
*(u32*)(tmpBuffer) = 0;
ret = copyRemoteMemory(CURRENT_PROCESS_HANDLE, tmpBuffer, hProcess, (void*)0x00200000, 4);
svc_sleepThread(500000000);
ret = copyRemoteMemory(CURRENT_PROCESS_HANDLE, tmpBuffer, hProcess, (void*)0x00200000, 4);
svc_sleepThread(500000000);
if (ret != 0) {
printf("copyRemoteMemory failed:%08x\n", ret);
return ret;
}
svc_closeHandle(hProcess);
t = *(u32*)(tmpBuffer);
printf("0x00200000 in HomeMenu: %08x\n", t);

if (t == 0xea00001f ) {
// new 3ds 10.4 jpn
ntrConfig->HomeMenuVersion = SYSTEM_VERSION(10, 4, 0);
Expand Down Expand Up @@ -920,7 +929,7 @@ int main() {
consoleInit(GFX_BOTTOM, NULL);


printf("BootNTR 3.2\n");
printf("BootNTR 3.3\n");
ntrConfig = &g_ntrConfig;
bnConfig = &g_bnConfig;
ret = bnBootNTR();
Expand Down

0 comments on commit dee3b41

Please sign in to comment.