Skip to content
This repository was archived by the owner on Jan 11, 2021. It is now read-only.

Commit 7a29e0a

Browse files
author
44
committed
10.4.0 J
1 parent 37dadb9 commit 7a29e0a

File tree

6 files changed

+20
-21
lines changed

6 files changed

+20
-21
lines changed

release/BootNTR-Mode3.cia

-1.5 KB
Binary file not shown.

release/BootNTR.cia

-1 KB
Binary file not shown.

resources/AppInfo

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
APP_TITLE = BootNTR-Mode3
2-
APP_DESCRIPTION = NTR CFW Loader.
3-
APP_AUTHOR = BootNTR
4-
APP_PRODUCT_CODE = CTR-P-BNTU
5-
APP_UNIQUE_ID = 0xb003
1+
APP_TITLE = BootNTR
2+
APP_DESCRIPTION = NTR CFW Loader.
3+
APP_AUTHOR = BootNTR
4+
APP_PRODUCT_CODE = CTR-P-BNTR
5+
APP_UNIQUE_ID = 0xb000

source/main.c

+13
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ Result bnInitParamsByHomeMenu() {
322322
flushDataCache();
323323
*(u32*)(tmpBuffer) = 0;
324324
ret = copyRemoteMemory(CURRENT_PROCESS_HANDLE, tmpBuffer, hProcess, (void*)0x00200000, 4);
325+
svc_sleepThread(500000000);
326+
ret = copyRemoteMemory(CURRENT_PROCESS_HANDLE, tmpBuffer, hProcess, (void*)0x00200000, 4);
327+
svc_sleepThread(500000000);
325328
if (ret != 0) {
326329
printf("copyRemoteMemory failed:%08x\n", ret);
327330
return ret;
@@ -525,6 +528,16 @@ Result bnInitParamsByHomeMenu() {
525528
ntrConfig->HomeFSUHandleAddr = 0x32dfa4;
526529
ntrConfig->HomeAptStartAppletAddr = 0x12e8d0;
527530
}
531+
532+
if (t == 0xea00001f ) {
533+
// 10.4.0-29J
534+
ntrConfig->HomeMenuVersion = SYSTEM_VERSION(10,4,0);
535+
ntrConfig->HomeMenuInjectAddr = 0x12ded0;
536+
ntrConfig->HomeFSReadAddr = 0x12c19c;
537+
ntrConfig->HomeCardUpdateInitAddr = 0x118d78;
538+
ntrConfig->HomeFSUHandleAddr = 0x32efa4;
539+
ntrConfig->HomeAptStartAppletAddr = 0x12ea08;
540+
}
528541

529542
return 0;
530543
}

startenv.bat

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
set PATH=%PATH%;C:\devkitPro\devkitARM\bin
2+
cmd

template-cia.rsf

-16
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ Option:
2121
EnableCrypt : false # Enables encryption for NCCH and CIA
2222
EnableCompress : true # Compresses exefs code
2323

24-
ExeFs: # these are the program segments from the ELF, check your elf for the appropriate segment names
25-
ReadOnly:
26-
- .rodata
27-
- RO
28-
ReadWrite:
29-
- .data
30-
- RO
31-
Text:
32-
- .init
33-
- .text
34-
- STUP_ENTRY
35-
36-
PlainRegion: # only used with SDK ELFs
37-
#- .module_id
38-
3924
#Rom:
4025
# Specifies the root path of the file system to include in the ROM.
4126
# HostRoot : "romfs"
@@ -83,7 +68,6 @@ AccessControlInfo:
8368
# - CreateSeed
8469
# - UseCardSpi
8570

86-
SystemMode: 3
8771
IdealProcessor : 0
8872
AffinityMask : 1
8973

0 commit comments

Comments
 (0)