diff options
author | Seth Barberee <seth.barberee@gmail.com> | 2020-11-05 18:11:47 -0600 |
---|---|---|
committer | Seth Barberee <seth.barberee@gmail.com> | 2020-11-05 18:11:47 -0600 |
commit | 799fa82c1aede6d33778bfb6e69a5faf5ef98781 (patch) | |
tree | ea3c86172899c6c71fb1c2277dea9bf653b29acf /src/code_80118A4_1.c | |
parent | 1c2975874bbb675ad92ddd3c82f56b46779af31c (diff) |
finally figured out fatal error func and another func
Diffstat (limited to 'src/code_80118A4_1.c')
-rw-r--r-- | src/code_80118A4_1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/code_80118A4_1.c b/src/code_80118A4_1.c index c2fa641..9d57d7d 100644 --- a/src/code_80118A4_1.c +++ b/src/code_80118A4_1.c @@ -2,6 +2,9 @@ extern u8 gUnknown_203B150; +void PrintFuncFileLine(char *r0, const char *r1, ...); +extern const char gUnknown_80D421C; + void nullsub_199(void) { } @@ -67,3 +70,16 @@ void nullsub_137(void) { } + +// TODO merge with fatal_system +void FatalErrorPrintFuncFileLine(const char *r0, const char *r1) +{ + char buf[0x100]; + if(r0 != 0){ + PrintFuncFileLine(buf, r1, r0); + } + else + { + PrintFuncFileLine(buf, r1, &gUnknown_80D421C); + } +} |