diff --git a/source/arm9/firm.c b/source/arm9/firm.c index 98df7e1..9abfde0 100644 --- a/source/arm9/firm.c +++ b/source/arm9/firm.c @@ -165,7 +165,13 @@ if(memcmp(&firm_hdr->magic, "FIRM", 4) != 0) return false; - + + if(firm_hdr->entrypointarm9 == 0) + { + if(printInfo) uiPrintError("Bad ARM9 entrypoint!\n"); + return false; + } + if(printInfo) { uiPrintInfo("\nARM9 entry: 0x%" PRIX32 "\n", firm_hdr->entrypointarm9);