pspdebug.h NIDS?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
accepttheownage
Posts: 17
Joined: Sun Jun 18, 2006 6:56 am

pspdebug.h NIDS?

Post by accepttheownage »

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).
adrahil
Posts: 274
Joined: Thu Mar 16, 2006 1:55 am

Post by adrahil »

This is because the function doesn't have an NID, but it a wrapper to some other sce* function:

Code: Select all

#include <pspdebug.h>

static PspDebugErrorHandler curr_handler = NULL;

void _pspDebugExceptionHandler&#40;void&#41;;
PspDebugRegBlock _pspDebugExceptRegs;

int sceKernelRegisterDefaultExceptionHandler&#40;void *func&#41;;

/* Install an error handler */
int pspDebugInstallErrorHandler&#40;PspDebugErrorHandler handler&#41;
&#123;
        u32 addr;

        curr_handler = handler;

        addr = &#40;u32&#41; _pspDebugExceptionHandler;
        addr |= 0x80000000;

        return sceKernelRegisterDefaultExceptionHandler&#40;&#40;void *&#41; addr&#41;;
&#125;
From:
http://svn.ps2dev.org/filedetails.php?r ... rev=0&sc=1
Post Reply