Reinstate unsupported loader error

This commit is contained in:
Aurora Wright 2017-08-11 23:48:32 +02:00
parent d4193ec11d
commit 8f9c1305e4
2 changed files with 3 additions and 2 deletions

View File

@ -70,12 +70,13 @@ void main(int argc, char **argv, u32 magicWord)
isFirmlaunch = true;
}
else
else if(magicWord == 0xB002)
{
static const char argv[] = "firm0:";
for(u32 i = 0; i < sizeof(argv); i++) //Copy and convert the path to UTF-16
launchedPath[i] = argv[i];
}
else error("Launched using an unsupported loader.");
if(memcmp(launchedPath, u"sdmc", 8) == 0)
{

View File

@ -43,7 +43,7 @@ _start:
mrceq p15, 0, r5, c6, c7, 0
ldreq r4, =0x1FFFE019
cmpeq r4, r5
ldreq r2, =0xCAFE
ldreq r2, =0xB002
mov r9, r0
mov r10, r1