#ifndef __PATCHER_H #define __PATCHER_H #include <3ds/types.h> #include "exheader.h" void patch_exe(u64 progId, u16 progver, u8 *text, u32 text_size, u32 orig_text, u8 *data, u32 data_size, u32 orig_data, u8 *ro, u32 ro_size, u32 orig_ro); void code_handler(u64 progId, prog_addrs_t* shared); u32 get_text_extend(u64 progId, u16 progver, u32 size_orig); u32 get_ro_extend(u64 progId, u16 progver, u32 size_orig); u32 get_data_extend(u64 progId, u16 progver, u32 size_orig); void load_config(); int fileOpen(Handle *file, FS_ArchiveID id, const char *path, int flags); u8 get_cpumode(u64 progId); void hexdump_titleid(u64 progId, char *buf); #endif