mirror of
https://github.com/zeldaret/tp
synced 2026-09-06 10:55:34 -04:00
j2d / map_path work, d_drawlist / d_attention cleanup (#208)
* work on fop actor / actor mng, daalink, d_a_obj_item * d_a_title mostly decompiled * daalink / d_event / JMessage / dmsg_out_font work * msg_scrn_base / msg_scrn_boss * some work on mDo machine, d_menu_save, d_tresure, and various * remove asm * progress * finish d_menu_save / d_pane_class_alpha / d_pane_class / rename some data * rename more data * remove asm / progress * match all of d_pane_class * fixes / some dKankyo doc * bunch of j2d work. d_drawlist / d_attention cleanup * progress / asm * cleanup wip * decompile JStage * setup some more JStudio structs * set up d_demo classes * some d_demo work * cleanup dolphin os stuff * some initial dEvent documentation * some At collision documentation * match JUTConsole::doDraw * dbgs work / split up some of d_a_alink into .inc files * d_a_alink_spinner work
This commit is contained in:
@@ -3,31 +3,60 @@
|
||||
|
||||
#include "dolphin/types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct OSContext;
|
||||
|
||||
extern u32 __OSFpscrEnableBits;
|
||||
|
||||
typedef u16 OSError;
|
||||
typedef void (*OSErrorHandler)(OSError, OSContext*, u32, u32);
|
||||
typedef void (*OSErrorHandler)(OSError error, OSContext* context, u32, u32);
|
||||
|
||||
#define OS_ERROR_SYSTEM_RESET 0x0
|
||||
#define OS_ERROR_MACHINE_CHECK 0x1
|
||||
#define OS_ERROR_DSI 0x2
|
||||
#define OS_ERROR_ISI 0x3
|
||||
#define OS_ERROR_INTERRUPT 0x4
|
||||
#define OS_ERROR_ALIGNMENT 0x5
|
||||
#define OS_ERROR_PROGRAM 0x6
|
||||
#define OS_ERROR_FLOATING_POINT 0x7
|
||||
#define OS_ERROR_DECREMENTER 0x8
|
||||
#define OS_ERROR_SYSTEM_CALL 0x9
|
||||
#define OS_ERROR_TRACE 0xa
|
||||
#define OS_ERROR_PERFORMANCE_MONITOR 0xb
|
||||
#define OS_ERROR_BREAKPOINT 0xc
|
||||
#define OS_ERROR_RESERVED 0xd
|
||||
#define OS_ERROR_THERMAL_INTERRUPT 0xe
|
||||
#define OS_ERROR_MEMORY_PROTECTION 0xf
|
||||
#define OS_ERROR_FLOATING_POINT_EXCEPTION 0x10
|
||||
#define OS_ERROR_SYSTEM_RESET 0
|
||||
#define OS_ERROR_MACHINE_CHECK 1
|
||||
#define OS_ERROR_DSI 2
|
||||
#define OS_ERROR_ISI 3
|
||||
#define OS_ERROR_INTERRUPT 4
|
||||
#define OS_ERROR_ALIGNMENT 5
|
||||
#define OS_ERROR_PROGRAM 6
|
||||
#define OS_ERROR_FLOATING_POINT 7
|
||||
#define OS_ERROR_DECREMENTER 8
|
||||
#define OS_ERROR_SYSTEM_CALL 9
|
||||
#define OS_ERROR_TRACE 10
|
||||
#define OS_ERROR_PERFORMANCE_MONITOR 11
|
||||
#define OS_ERROR_BREAKPOINT 12
|
||||
#define OS_ERROR_RESERVED 13
|
||||
#define OS_ERROR_THERMAL_INTERRUPT 14
|
||||
#define OS_ERROR_MEMORY_PROTECTION 15
|
||||
#define OS_ERROR_FLOATING_POINT_EXCEPTION 16
|
||||
|
||||
extern "C" void OSSetErrorHandler(OSError, OSErrorHandler);
|
||||
typedef enum OSException {
|
||||
EXCEPTION_SYSTEM_RESET,
|
||||
EXCEPTION_MACHINE_CHECK,
|
||||
EXCEPTION_DSI,
|
||||
EXCEPTION_ISI,
|
||||
EXCEPTION_EXTERNAL_INTERRUPT,
|
||||
EXCEPTION_ALIGNMENT,
|
||||
EXCEPTION_PROGRAM,
|
||||
EXCEPTION_FLOATING_POINT,
|
||||
EXCEPTION_DECREMENTER,
|
||||
EXCEPTION_SYSTEM_CALL,
|
||||
EXCEPTION_TRACE ,
|
||||
EXCEPTION_PERFORMANCE_MONITOR,
|
||||
EXCEPTION_BREAKPOINT,
|
||||
EXCEPTION_RESERVED,
|
||||
EXCEPTION_THERMAL_INTERRUPT,
|
||||
EXCEPTION_MEMORY_PROTECTION,
|
||||
EXCEPTION_FLOATING_POINT_EXCEPTION,
|
||||
} OSException;
|
||||
|
||||
OSErrorHandler OSSetErrorHandler(OSError error, OSErrorHandler handler);
|
||||
void __OSUnhandledException(OSException exception, OSContext* context, u32 dsisr, u32 dar);
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* OSERROR_H */
|
||||
|
||||
Reference in New Issue
Block a user