From acc37518f7ac4d609fd1ce282c09b1be018643a7 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Thu, 30 May 2013 10:50:50 +0000 Subject: [PATCH] -updated MIOS checks (fixes quadforce 4+ detection) --- source/menu/menu.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index bbc62098..5cf5fad0 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -2592,19 +2592,19 @@ int CMenu::MIOSisDML() if(appfile) { for(u32 i = 0; i < size; ++i) - { - if(*(vu32*)(appfile+i) == 0x44494F53) + { /* GCLoader check */ + if(*(vu32*)(appfile+i) == 0x47434C6F && *(vu32*)(appfile+i+4) == 0x61646572) { for(u32 j = 0; j < size; ++j) - { - if(*(vu32*)(appfile+j) == 0x4C697465) + { /* Lite or Quad (QuadForce name string only exist in QuadForce SD) */ + 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); return 2; } } - gprintf("DIOS-MIOS is installed as MIOS\n"); + gprintf("DIOS-MIOS/QuadForce USB is installed as MIOS\n"); free(appfile); return 1; }