* check pointer before checking strlen of it ( crash fix when selecting a channel to return to )

* enable alt-dol again.  still no auto-menu, but at least the games are playable
This commit is contained in:
giantpune 2010-10-01 00:26:16 +00:00
parent 444d2dbe79
commit 8f94b1dde8
4 changed files with 9 additions and 9 deletions

View File

@ -2,8 +2,8 @@
<app version="1">
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>1.0 r984</version>
<release_date>201009300423</release_date>
<version>1.0 r985</version>
<release_date>201009300633</release_date>
<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.
The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller.

View File

@ -425,11 +425,11 @@ int MainMenu(int menu)
fix002 = game_cfg->errorfix002;
iosChoice = game_cfg->ios;
countrystrings = game_cfg->patchcountrystrings;
if (!altdoldefault)
{
//if (!altdoldefault)
//{
alternatedol = game_cfg->loadalternatedol;
alternatedoloffset = game_cfg->alternatedolstart;
}
//}
reloadblock = game_cfg->iosreloadblock;
returnToLoaderGV = game_cfg->returnTo;
}

View File

@ -1381,7 +1381,7 @@ int MenuDiscList()
if (idBtn.GetState() == STATE_CLICKED && mountMethod != 3)
{
gprintf("\n\tidBtn Clicked");
gprintf("\tidBtn Clicked\n");
struct discHdr * header = gameList[gameBrowser->GetSelectedOption()];
//enter new game ID
char entered[10];
@ -1492,7 +1492,7 @@ int MenuDiscList()
GameStatistics.SetPlayCount(header->id, GameStatistics.GetPlayCount(header->id)+1);
GameStatistics.Save();
gprintf("\n\tplaycount for %c%c%c%c%c%c raised to %i", header->id[0], header->id[1], header->id[2],
gprintf("\tplaycount for %c%c%c%c%c%c raised to %i\n", header->id[0], header->id[1], header->id[2],
header->id[3], header->id[4], header->id[5], GameStatistics.GetPlayCount(header->id));
}

View File

@ -1131,7 +1131,7 @@ int MenuSettings()
if (haveTitle >= 0)
{
name = (char*) NandTitles.NameFromIndex(haveTitle);
if (!strlen(name)) name = NULL;
if( name && !strlen(name) ) name = NULL;
}
options2.SetValue(Idx, "%s", name ? name : tr( opts_off_on[ 0 ] ));
}