diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-31 14:25:20 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-31 14:25:20 -0400 |
commit | 5787ba96ba2bcb0860422c3e66c179e63368acac (patch) | |
tree | 38ff48e4d286804b19f920af382351d4d11a13d0 /arm9/src/error_handling.c | |
parent | 00cbfe2e138c842d9c0bce4e1848d3eaa88a39b8 (diff) | |
parent | bf25a361cd0d013beb86a936b516957b66cfa011 (diff) |
Merge branch 'master' of github.com:pret/pokediamond into pikalax_work
Diffstat (limited to 'arm9/src/error_handling.c')
-rw-r--r-- | arm9/src/error_handling.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arm9/src/error_handling.c b/arm9/src/error_handling.c new file mode 100644 index 00000000..9052773f --- /dev/null +++ b/arm9/src/error_handling.c @@ -0,0 +1,16 @@ +#include "global.h" +#include "error_handling.h" + +extern u32 FUN_02031810(void); +extern void PrintErrorMessageAndReset(void); + +THUMB_FUNC void ErrorHandling(void) +{ + if (FUN_02031810()) + { + if (OS_GetProcMode() != OS_PROCMODE_IRQ) + { + PrintErrorMessageAndReset(); + } + } +} |