mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
850fae1aa3
* m_Do_main / f_ap_game debug stuff * revolution sdk compatibility * f_op_actor debug work * rename fopAcM_SetupActor to fopAcM_ct * fix build * fix jp/pal splits
44 lines
914 B
C
44 lines
914 B
C
#ifndef _DOLPHIN_OSRESET_H_
|
|
#define _DOLPHIN_OSRESET_H_
|
|
|
|
#ifdef __REVOLUTION_SDK__
|
|
#include <revolution/os/OSReset.h>
|
|
#else
|
|
#include <dolphin/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define OS_RESET_RESTART 0
|
|
#define OS_RESET_HOTRESET 1
|
|
#define OS_RESET_SHUTDOWN 2
|
|
|
|
typedef struct OSResetFunctionInfo OSResetFunctionInfo;
|
|
typedef struct OSResetFunctionQueue {
|
|
OSResetFunctionInfo* head;
|
|
OSResetFunctionInfo* tail;
|
|
} OSResetFunctionQueue;
|
|
|
|
typedef BOOL (*OSResetFunction)(BOOL);
|
|
|
|
struct OSResetFunctionInfo {
|
|
OSResetFunction func;
|
|
u32 priority;
|
|
OSResetFunctionInfo* next;
|
|
OSResetFunctionInfo* prev;
|
|
};
|
|
|
|
void OSRegisterResetFunction(OSResetFunctionInfo* info);
|
|
void OSUnregisterResetFunction(OSResetFunctionInfo* info);
|
|
void OSResetSystem(int reset, u32 resetCode, BOOL forceMenu);
|
|
u32 OSGetResetCode();
|
|
u32 OSSetBootDol(u32 dolOffset);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
#endif
|