mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 21:54:15 +01:00
-updated MIOS checks (fixes quadforce 4+ detection)
This commit is contained in:
parent
d936063bd4
commit
acc37518f7
@ -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)
|
if(*(vu32*)(appfile+j) == 0x4C697465 || *(vu32*)(appfile+j) == 0x51756164)
|
||||||
{
|
{
|
||||||
gprintf("DIOS-MIOS Lite is installed as MIOS\n");
|
gprintf("DIOS-MIOS Lite/QuadForce SD 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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user