- Using hactool, extract the exefs of your game
- Within the exefsdir, there should be "main" and "main.npdm" and possibly a few others
- "main" is the game's main nso, you can load it into IDA and create your own patches or go out and find some
- When you have your patches put them all in a file in this format: (all values should be in hex)
location:codepatch
Example:
This file has been truncated, but you can view the full file.
This file contains 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
#define UNLOADED_FILE 1 | |
#include <idc.idc> | |
static main(void) | |
{ | |
// set 'loading idc file' mode | |
set_inf_attr(INF_GENFLAGS, INFFL_LOADIDC|get_inf_attr(INF_GENFLAGS)); | |
GenInfo(); // various settings | |
Segments(); // segmentation | |
Enums(); // enumerations |
This file contains 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
[Patched Kernel] | |
kernel=kernel.bin | |
[Patched SecureMonitor] | |
secmon=secmon.bin | |
[Injected KIP1] | |
kip1=sysmodule.kip1 | |
# You can mix options in the individual sections, possible are 'warmboot', 'secmon', 'kernel', 'kip1'. |
This file contains 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
0xbc100: ; save start | |
mov x19, x0 | |
mov x0, #0xC0000000 | |
adrp x1, #0x15000 | |
ldr x1, [x1, #0x730] | |
ldr x1, [x1] | |
add x0, x1, x0 | |
adrp x1, #0x15000 | |
ldr x1, [x1, #0x668] | |
ldr x1, [x1] |
This file contains 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
#include <string.h> | |
#include <stdio.h> | |
#include <switch.h> | |
static Handle g_port; | |
static uint64_t g_procID; | |
#define MODULE_HBL 111 |
This file contains 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
from Crypto.Cipher import AES | |
from Crypto.Util import Counter | |
import struct | |
""" | |
typedef struct boot_dat_hdr | |
{ | |
unsigned char ident[0x10]; | |
unsigned char sha2_s2[0x20]; | |
unsigned int s2_dst; |
This file contains 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
int mprotect(void *addr, void *base, size_t len, int prot) | |
{ | |
Result rc=0; | |
static bool isMapped=false; | |
Handle hProc = envGetOwnProcessHandle(); | |
if (isMapped) { | |
rc=svcUnmapProcessCodeMemory(hProc, (u64)addr, (u64)base, len); | |
if (R_FAILED(rc)) { | |
printf(" Error, svcUnmapProcessCodeMemory() failed w. rc: %X\n", rc); |
This file contains 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
// | |
// This file should be used in the following way: | |
// - reload executable into IDA with using switch -c | |
// - use File, Load IDC file and load this file. | |
// | |
// NOTE: This file doesn't contain all information from the database. | |
// | |
#define UNLOADED_FILE 1 | |
#include <idc.idc> |
leo60228 has posted a patch to allow BLJing for the Shindou ROM that works in 3D All Stars!
Link to BPS patch: https://cdn.discordapp.com/attachments/286612533757083648/756498528137642024/blj.bps
Online web patcher: https://hack64.net/tools/patcher.php
Patches the shindou rom rev3 (UNSMJ3.002)
sha256 f8807b5e28f1b1a31c5d3675d23ece73f949ccb553dcbb07972666a1e76adfa2
OlderNewer