0xBEEF -> 0x1BEEF

This commit is contained in:
TuxSH 2017-06-02 20:36:58 +02:00
parent ba3740a77a
commit 118f81d347
2 changed files with 2 additions and 2 deletions

View File

@ -53,5 +53,5 @@ disableMpuAndJumpToEntrypoints:
@ Jump to the ARM9 entrypoint
mov r0, r4
mov r1, r5
ldr r2, =0xBEEF
ldr r2, =0x1BEEF
bx r6

View File

@ -49,7 +49,7 @@ void main(int argc, char **argv, u32 magicWord)
FirmwareType firmType;
FirmwareSource nandType;
if(magicWord == 0xBEEF && argc >= 1) //Normal boot
if((magicWord & 0xFFFF) == 0xBEEF && argc >= 1) //Normal boot
{
u32 i;
for(i = 0; i < 40 && argv[0][i] != 0; i++) //Copy and convert the path to UTF-16