From eaa141c612dd1689936a21bd57018a55ff686b69 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Sun, 23 May 2021 16:19:35 -0500 Subject: Keep on keepin on (#38) * end of may dump of work * move save text to src * decomp a little more --- src/debug.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/debug.c') 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(); +}*/ -- cgit v1.2.3