Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void patchNIM() {
- // Patch NIM to reply with 0 in CheckSysupdateAvailable.
- u32 patchProc = 0x00000025; // NIM process ID (guess; TODO: need to find this dynamically)
- u32 patchAddr = 0x0010EA00; // 0xE59D036C: ldr r0, [sp, #0x36C]
- u32 patchInst = 0xE3A00000; // 0xE3A00000: mov r0, #0
- Handle handle;
- svcDebugActiveProcess(&handle, patchProc);
- svcWriteProcessMemory(handle, &patchInst, patchAddr, sizeof(patchInst));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement