From d14bebd1597312d519348709a60ac4ac69f44626 Mon Sep 17 00:00:00 2001 From: giantpune Date: Thu, 3 Dec 2009 06:13:23 +0000 Subject: [PATCH] fix code dump when using hairless mode and FAT32 --- HBC/META.XML | 4 ++-- source/main.cpp | 4 ++-- source/menu.cpp | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/HBC/META.XML b/HBC/META.XML index 5f44346f..c9d5ef06 100644 --- a/HBC/META.XML +++ b/HBC/META.XML @@ -2,8 +2,8 @@ USB Loader GX USB Loader GX Team - 1.0 r845 - 200912030058 + 1.0 r846 + 200912030606 Loads games from USB-devices USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times. The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller. diff --git a/source/main.cpp b/source/main.cpp index 8fe4d0f5..4b3d116f 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -17,7 +17,7 @@ #include #include //#include -//extern "C" { //not sure if this is in teh libogc that the buildbot is using so it isnt used yet +//extern "C" { //not sure if this is in the libogc that the buildbot is using so it isnt used yet //extern void __exception_setreload(int t); //} @@ -191,7 +191,7 @@ main(int argc, char *argv[]) { gprintf("------------------"); gprintf("\nUSB Loader GX rev%s",GetRev()); gprintf("\nmain(%d", argc); - for (int i=1;i"); gprintf(")"); diff --git a/source/menu.cpp b/source/menu.cpp index 3f1e1ad6..d640c3c4 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -368,12 +368,18 @@ int MainMenu(int menu) { BootHomebrewFromMem(); } else { + gprintf("\n\tSettings.partition:%d",Settings.partition); struct discHdr *header = NULL; //if the GUI was "skipped" to boot a game from main(argv[1]) if (strcmp(headlessID,"")!=0) { gprintf("\n\tHeadless mode (%s)",headlessID); __Menu_GetEntries(1); + if (!gameCnt) + { + gprintf(" ERROR : !gameCnt"); + exit(0); + } //gprintf("\n\tgameCnt:%d",gameCnt); for(u32 i=0;i