We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 509e636 commit 5320a98Copy full SHA for 5320a98
1 file changed
RemoteJoyLite_psp/hook.h
@@ -43,12 +43,16 @@ extern void HookFuncSetting( void *addr, void *entry );
43
{ \
44
u32 func = a; \
45
static u32 patch_buffer[3]; \
46
+ int _interrupts = pspSdkDisableInterrupts(); \
47
_sw(_lw(func), (u32)patch_buffer); \
48
_sw(_lw(func + 4), (u32)patch_buffer + 8);\
49
MAKE_JUMP((u32)patch_buffer + 4, func + 8); \
50
_sw(0x08000000 | (((u32)(f) >> 2) & 0x03FFFFFF), func); \
51
_sw(0, func + 4); \
52
ptr = (void *)patch_buffer; \
53
+ sceKernelDcacheWritebackInvalidateAll(); \
54
+ sceKernelIcacheClearAll(); \
55
+ pspSdkEnableInterrupts(_interrupts); \
56
}
57
58
u32 sctrlHENFindFunction(const char *, const char*, u32);
0 commit comments