fix minor bug in nds header decryption created when porting from ndstool (pointed out by #3445390)
This commit is contained in:
parent
ce4d0c9e10
commit
3f674a7cf6
|
@ -76,9 +76,8 @@ int DetectRomType(const Header& header, char* romdata)
|
|||
if (header.arm9_rom_offset < 0x4000) return ROMTYPE_HOMEBREW;
|
||||
if (data[0] == 0x00000000 && data[1] == 0x00000000) return ROMTYPE_MULTIBOOT;
|
||||
if (data[0] == 0xE7FFDEFF && data[1] == 0xE7FFDEFF) return ROMTYPE_NDSDUMPED;
|
||||
romdata += 0x200;
|
||||
for (int i=0x200; i<0x4000; i++)
|
||||
if (*romdata) return ROMTYPE_MASKROM; // found something odd ;)
|
||||
if (romdata[i]) return ROMTYPE_MASKROM; // found something odd ;)
|
||||
return ROMTYPE_ENCRSECURE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue