This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc.getFSPPR = function () { | |
if (sc.closed_pr !== undefined) { | |
return; | |
} | |
sc.enableTurbo(); | |
var i = 0; | |
var srv = null; | |
while (true) { | |
sc.ipcMsg(2).setType(5).sendTo('pm:shell'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 1. Boot game | |
* 2. Wait a second or so (for the game tid to register but before the code mounts the savedata) | |
* 3. Home button | |
* 4. Run this script | |
* 5. ??? | |
* 6. PROFIT | |
*/ | |
var tid = '0000000000000000'; //Change Title ID here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tid = '0000000000000000'; //Set appropriate game TID; Need to find a way to get TID automatically... | |
utils.log("stage1, hijack fsppr and set perms"); | |
sc.getFSPPR(); | |
sc.ipcMsg(1).sendPid().data(0).sendTo('fsp-srv').assertOk(); | |
var pid = sc.read4(sc.ipcBufAddr, 0xC >> 2); | |
utils.log('Got process PID: '+pid.toString(16)); | |
var buf1_sz = 0x1C; |