-updated MIOS checks (fixes quadforce 4+ detection)

This commit is contained in:
fix94.1 2013-05-30 10:50:50 +00:00
parent d936063bd4
commit acc37518f7

View File

@ -2592,19 +2592,19 @@ int CMenu::MIOSisDML()
if(appfile) if(appfile)
{ {
for(u32 i = 0; i < size; ++i) for(u32 i = 0; i < size; ++i)
{ { /* GCLoader check */
if(*(vu32*)(appfile+i) == 0x44494F53) if(*(vu32*)(appfile+i) == 0x47434C6F && *(vu32*)(appfile+i+4) == 0x61646572)
{ {
for(u32 j = 0; j < size; ++j) for(u32 j = 0; j < size; ++j)
{ /* Lite or Quad (QuadForce name string only exist in QuadForce SD) */
if(*(vu32*)(appfile+j) == 0x4C697465 || *(vu32*)(appfile+j) == 0x51756164)
{ {
if(*(vu32*)(appfile+j) == 0x4C697465) gprintf("DIOS-MIOS Lite/QuadForce SD is installed as MIOS\n");
{
gprintf("DIOS-MIOS Lite is installed as MIOS\n");
free(appfile); free(appfile);
return 2; return 2;
} }
} }
gprintf("DIOS-MIOS is installed as MIOS\n"); gprintf("DIOS-MIOS/QuadForce USB is installed as MIOS\n");
free(appfile); free(appfile);
return 1; return 1;
} }