Started to merge @ZobyTwo cmake branch

This commit is contained in:
xawotihs
2015-09-26 21:52:07 +02:00
parent 9e77899535
commit 85f4a4c36a
3112 changed files with 4615 additions and 9 deletions

25
thirdparty/exceptionHandler/prx/main.c vendored Normal file
View File

@@ -0,0 +1,25 @@
#include <pspkernel.h>
#include <psppower.h>
#include <pspdebug.h>
PSP_MODULE_INFO("exception", 0x1007, 1, 1); // better not unload
PspDebugErrorHandler curr_handler;
PspDebugRegBlock *exception_regs;
void _pspDebugExceptionHandler(void);
int sceKernelRegisterDefaultExceptionHandler(void *func);
int sceKernelRegisterDefaultExceptionHandler371(void *func);
int module_start(SceSize args, void *argp)
{
if(args != 8) return -1;
curr_handler = (PspDebugErrorHandler)((int *)argp)[0];
exception_regs = (PspDebugRegBlock *)((int *)argp)[1];
if(!curr_handler || !exception_regs) return -1;
if(sceKernelDevkitVersion() < 0x03070110)
return sceKernelRegisterDefaultExceptionHandler((void *)_pspDebugExceptionHandler);
else
return sceKernelRegisterDefaultExceptionHandler371((void *)_pspDebugExceptionHandler);
}