15 void (*krnl_print)(
const char* format, ...) = NULL;
18 u32* resetEEAddress = (u32*)GetSyscallHandler(__NR_ResetEE);
22 for (
int i = 0; i < 15; i++)
25 u32 jalPrintf = resetEEAddress[i];
26 if ((jalPrintf & 0xFC000000) == 0xC000000)
29 krnl_print = (void(*)(
const char*, ...))(0x80000000 + ((jalPrintf & 0x3FFFFFF) << 2));
36 if (krnl_print != NULL)
37 SetSyscall(__NR__print, krnl_print);