fix code dump when using hairless mode and FAT32

This commit is contained in:
giantpune 2009-12-03 06:13:23 +00:00
parent 55a401e4a5
commit d14bebd159
3 changed files with 10 additions and 4 deletions

View File

@ -2,8 +2,8 @@
<app version="1"> <app version="1">
<name> USB Loader GX</name> <name> USB Loader GX</name>
<coder>USB Loader GX Team</coder> <coder>USB Loader GX Team</coder>
<version>1.0 r845</version> <version>1.0 r846</version>
<release_date>200912030058</release_date> <release_date>200912030606</release_date>
<short_description>Loads games from USB-devices</short_description> <short_description>Loads games from USB-devices</short_description>
<long_description>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. <long_description>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. The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.

View File

@ -17,7 +17,7 @@
#include <locale.h> #include <locale.h>
#include <wiiuse/wpad.h> #include <wiiuse/wpad.h>
//#include <debug.h> //#include <debug.h>
//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); //extern void __exception_setreload(int t);
//} //}
@ -191,7 +191,7 @@ main(int argc, char *argv[]) {
gprintf("------------------"); gprintf("------------------");
gprintf("\nUSB Loader GX rev%s",GetRev()); gprintf("\nUSB Loader GX rev%s",GetRev());
gprintf("\nmain(%d", argc); gprintf("\nmain(%d", argc);
for (int i=1;i<argc;i++) for (int i=0;i<argc;i++)
gprintf(", %s",argv[i]?argv[i]:"<NULL>"); gprintf(", %s",argv[i]?argv[i]:"<NULL>");
gprintf(")"); gprintf(")");

View File

@ -368,12 +368,18 @@ int MainMenu(int menu) {
BootHomebrewFromMem(); BootHomebrewFromMem();
} }
else { else {
gprintf("\n\tSettings.partition:%d",Settings.partition);
struct discHdr *header = NULL; struct discHdr *header = NULL;
//if the GUI was "skipped" to boot a game from main(argv[1]) //if the GUI was "skipped" to boot a game from main(argv[1])
if (strcmp(headlessID,"")!=0) if (strcmp(headlessID,"")!=0)
{ {
gprintf("\n\tHeadless mode (%s)",headlessID); gprintf("\n\tHeadless mode (%s)",headlessID);
__Menu_GetEntries(1); __Menu_GetEntries(1);
if (!gameCnt)
{
gprintf(" ERROR : !gameCnt");
exit(0);
}
//gprintf("\n\tgameCnt:%d",gameCnt); //gprintf("\n\tgameCnt:%d",gameCnt);
for(u32 i=0;i<gameCnt;i++) for(u32 i=0;i<gameCnt;i++)
{ {