pspdebug.h NIDS?
-
- Posts: 17
- Joined: Sun Jun 18, 2006 6:56 am
pspdebug.h NIDS?
This is getting very frustrating. I need to call a function from this header file (pspDebugInstallErrorHandler) and the only way I can do this is if I load a prx and import the function. I know how to do this and I've done it before but the problem is that every single firmware function seems to be accessible as a NID EXCEPT the one I need to use. Does anyone know which prx these debugging functions reside in? The reason I have to load it this way is because I am making a devhook module and for some reason the devhook library interferes with this function (causes compiler errors inside the pspdevkit source files).
This is because the function doesn't have an NID, but it a wrapper to some other sce* function:
From:
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=1
Code: Select all
#include <pspdebug.h>
static PspDebugErrorHandler curr_handler = NULL;
void _pspDebugExceptionHandler(void);
PspDebugRegBlock _pspDebugExceptRegs;
int sceKernelRegisterDefaultExceptionHandler(void *func);
/* Install an error handler */
int pspDebugInstallErrorHandler(PspDebugErrorHandler handler)
{
u32 addr;
curr_handler = handler;
addr = (u32) _pspDebugExceptionHandler;
addr |= 0x80000000;
return sceKernelRegisterDefaultExceptionHandler((void *) addr);
}
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=1