diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2021-05-23 16:19:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 16:19:35 -0500 |
commit | eaa141c612dd1689936a21bd57018a55ff686b69 (patch) | |
tree | fafe2a9a562af6a8e36716ff76a5b3e8b30d4411 /src/debug.c | |
parent | f402e46cd3c8b7236673d6edbae77903a7cc0618 (diff) |
Keep on keepin on (#38)
* end of may dump of work
* move save text to src
* decomp a little more
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index b6f4ee7..0f4cf35 100644 --- a/src/debug.c +++ b/src/debug.c @@ -15,6 +15,8 @@ extern const char gNotEntryText[]; extern const char gFuncFileLineString[]; extern const char gFuncFileLineStringWPrefix[]; extern const char gFuncFileLineString2[]; +extern const char gFatalText[]; +extern const char gUnknown_80D42D4[]; void NDS_DebugInit(void) { @@ -198,3 +200,17 @@ void FatalErrorHang() { Hang(); } + +/*void +FatalError(struct DebugLocation *debug, const char *text, ...) +{ + char buf[0x100]; + va_list vArgv; + + FatalErrorPrintFuncFileLine(gFatalText, debug); + va_start(vArgv, text); + vsprintf(buf, text, vArgv); + va_end(vArgv); + FatalErrorFormatMessage(gUnknown_80D42D4, buf); + FatalErrorHang(); +}*/ |