Skip to content

Instantly share code, notes, and snippets.

@imRxqe
imRxqe / DetourHook.cpp
Created March 26, 2025 14:13 — forked from TheRouletteBoi/DetourHook.cpp
Hooking any function including imports and exports. PowerPC, PPC, PS3, Playstation 3
#include "DetourHook.hpp"
#define POWERPC_REGISTERINDEX_R0 0
#define POWERPC_REGISTERINDEX_R1 1
#define POWERPC_REGISTERINDEX_R2 2
#define POWERPC_REGISTERINDEX_R3 3
#define POWERPC_REGISTERINDEX_R4 4
#define POWERPC_REGISTERINDEX_R5 5
#define POWERPC_REGISTERINDEX_R6 6
#define POWERPC_REGISTERINDEX_R7 7
@imRxqe
imRxqe / PS3HookHandler.h
Created March 7, 2025 17:22 — forked from TheRouletteBoi/PS3HookHandler.h
Hooking method by using a single branch. PowerPC, PPC, PS3, Playstation 3
/** Initial Commit by gopro2027 **/
/** Revision #2 by gopro2027 **/
/**
* Added "original" into function hook
* Fixed branch instruction
*/
/** Revision #3 by TheRouLetteBoi **/
/**