From f358beb6da276e8e17b380290b94837e53e8f6aa Mon Sep 17 00:00:00 2001 From: GrayJack Date: Tue, 13 Oct 2026 02:36:31 -0300 Subject: [PATCH 1/2] feat(exception): Add `sceKernelGetActiveDefaultExceptionHandler` to `pspexception.h` --- src/kernel/pspexception.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/kernel/pspexception.h b/src/kernel/pspexception.h index 3779717c02..70365af2c9 100644 --- a/src/kernel/pspexception.h +++ b/src/kernel/pspexception.h @@ -49,6 +49,14 @@ int sceKernelRegisterExceptionHandler(int exno, void *func); */ int sceKernelRegisterPriorityExceptionHandler(int exno, int priority, void *func); +/** + * Get the currently active default exception handler. + * + * @return The pointer to the currently active default exception handler on + * success, NULL on error. + */ +void *sceKernelGetActiveDefaultExceptionHandler(void); + #ifdef __cplusplus } #endif From 833d308f34b8df8e51649e1d336372c7a4f57092 Mon Sep 17 00:00:00 2001 From: GrayJack Date: Tue, 13 Oct 2026 02:36:46 -0300 Subject: [PATCH 2/2] chore: Clean up --- src/kernel/pspexception.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/pspexception.h b/src/kernel/pspexception.h index 70365af2c9..e3fe818962 100644 --- a/src/kernel/pspexception.h +++ b/src/kernel/pspexception.h @@ -30,7 +30,7 @@ int sceKernelRegisterDefaultExceptionHandler(void *func); /** * Register a exception handler - * + * * @param exno - The exception number * @param func - Pointer to the exception handler function * @@ -40,7 +40,7 @@ int sceKernelRegisterExceptionHandler(int exno, void *func); /** * Register a exception handler with a priority - * + * * @param exno - The exception number * @param priority - The priority of the exception * @param func - Pointer to the exception handler function