Batch apply hex edits The edits to apply come from a CSV file in the same path
hexpatcher.ps1 has a short URL: https://git.io/vpNim
Start PowerShell 3.0+ and paste in:
Batch apply hex edits The edits to apply come from a CSV file in the same path
hexpatcher.ps1 has a short URL: https://git.io/vpNim
Start PowerShell 3.0+ and paste in:
| /* | |
| * 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 |
| 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; |
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2016 Mario Badr | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
Ref: https://gist.github.com/vertexclique/9839383
Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).
Common step after enter run the patch command:
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| # Automatically update your CloudFlare DNS record to the IP, Dynamic DNS | |
| # Can retrieve cloudflare Domain id and list zone's, because, lazy | |
| # Place at: | |
| # /usr/local/bin/cf-ddns.sh |