Reinstate unsupported loader error
This commit is contained in:
parent
d4193ec11d
commit
8f9c1305e4
@ -70,12 +70,13 @@ void main(int argc, char **argv, u32 magicWord)
|
|||||||
|
|
||||||
isFirmlaunch = true;
|
isFirmlaunch = true;
|
||||||
}
|
}
|
||||||
else
|
else if(magicWord == 0xB002)
|
||||||
{
|
{
|
||||||
static const char argv[] = "firm0:";
|
static const char argv[] = "firm0:";
|
||||||
for(u32 i = 0; i < sizeof(argv); i++) //Copy and convert the path to UTF-16
|
for(u32 i = 0; i < sizeof(argv); i++) //Copy and convert the path to UTF-16
|
||||||
launchedPath[i] = argv[i];
|
launchedPath[i] = argv[i];
|
||||||
}
|
}
|
||||||
|
else error("Launched using an unsupported loader.");
|
||||||
|
|
||||||
if(memcmp(launchedPath, u"sdmc", 8) == 0)
|
if(memcmp(launchedPath, u"sdmc", 8) == 0)
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ _start:
|
|||||||
mrceq p15, 0, r5, c6, c7, 0
|
mrceq p15, 0, r5, c6, c7, 0
|
||||||
ldreq r4, =0x1FFFE019
|
ldreq r4, =0x1FFFE019
|
||||||
cmpeq r4, r5
|
cmpeq r4, r5
|
||||||
ldreq r2, =0xCAFE
|
ldreq r2, =0xB002
|
||||||
|
|
||||||
mov r9, r0
|
mov r9, r0
|
||||||
mov r10, r1
|
mov r10, r1
|
||||||
|
Reference in New Issue
Block a user