diff options
Diffstat (limited to 'backends/platform/psp/psp_main.cpp')
-rw-r--r-- | backends/platform/psp/psp_main.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/backends/platform/psp/psp_main.cpp b/backends/platform/psp/psp_main.cpp index 581f6234b4..c3770cb41f 100644 --- a/backends/platform/psp/psp_main.cpp +++ b/backends/platform/psp/psp_main.cpp @@ -26,8 +26,10 @@ #define USERSPACE_ONLY //don't use kernel mode features #ifndef USERSPACE_ONLY -#include <pspkernel.h> -#include <pspdebug.h> + #include <pspkernel.h> + #include <pspdebug.h> +#else + #include <pspuser.h> #endif #include <psppower.h> @@ -118,10 +120,10 @@ int CallbackThread(SceSize /*size*/, void *arg) { cbid = sceKernelCreateCallback("Power Callback", (SceKernelCallbackFunction)power_callback, 0); if (cbid >= 0) { if (scePowerRegisterCallback(-1, cbid) < 0) { - PSPDebugTrace("SetupCallbacks(): Couldn't register callback for power_callback\n"); + PSP_ERROR("Couldn't register callback for power_callback\n"); } } else { - PSPDebugTrace("SetupCallbacks(): Couldn't create a callback for power_callback\n"); + PSP_ERROR("Couldn't create a callback for power_callback\n"); } sceKernelSleepThreadCB(); @@ -167,4 +169,3 @@ int main(void) { return res; } - |