summaryrefslogtreecommitdiff
path: root/include/nw4r/db/db_exception.h
blob: 9992e72e5a4fd7c7bd1d128c148bde1d425a770a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef NW4R_DB_EXCEPTION_H
#define NW4R_DB_EXCEPTION_H

#include "nw4r/db/db_console.h"
#include "rvl/OS.h" // IWYU pragma: export

namespace nw4r {
namespace db {

typedef struct {
    u16 error;
    OSContext *ctx;
    u32 dsisr;
    u32 dar;
} ExceptionCallbackParam;

void Exception_Init();
ConsoleHandle Exception_SetConsole(ConsoleHandle, const _GXRenderModeObj *);
ConsoleHandle Exception_GetConsole();
void Exception_SetUserCallback(bool (*)(ConsoleHandle, void *), void *);
u16 Exception_SetDisplayInfo(u16 newInfo);

} // namespace db
} // namespace nw4r

#endif