mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 11:19:17 +01:00
fix the broken "remember last game" stuff when leaving menu_disclist
loop
This commit is contained in:
parent
99af0f8574
commit
5c26c4082a
@ -2,8 +2,8 @@
|
||||
<app version="1">
|
||||
<name> USB Loader GX</name>
|
||||
<coder>USB Loader GX Team</coder>
|
||||
<version>1.0 r857</version>
|
||||
<release_date>200912112033</release_date>
|
||||
<version>1.0 r859</version>
|
||||
<release_date>200912120047</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.
|
||||
|
@ -41,14 +41,18 @@ char idiotChar[50];
|
||||
void DiscListWinUpdateCallback(void * e);
|
||||
void rockout(int f = 0);
|
||||
|
||||
static u32 startat = 0;
|
||||
|
||||
/****************************************************************************
|
||||
* MenuDiscList
|
||||
***************************************************************************/
|
||||
int MenuDiscList() {
|
||||
|
||||
gprintf("\nMenuDiscList()");
|
||||
int startat = 0;
|
||||
int offset = 0;
|
||||
gprintf("\nMenuDiscList()");
|
||||
__Menu_GetEntries();
|
||||
int offset = MIN(startat,gameCnt-1);
|
||||
startat = offset;
|
||||
gprintf("\n\tstartat:%d offset:%d",startat,offset);
|
||||
int datag = 0;
|
||||
int datagB =0;
|
||||
int dataed = -1;
|
||||
@ -72,7 +76,7 @@ int MenuDiscList() {
|
||||
|
||||
datagB=0;
|
||||
int menu = MENU_NONE, dataef=0;
|
||||
__Menu_GetEntries();
|
||||
|
||||
|
||||
u32 nolist;
|
||||
char text[MAX_CHARACTERS + 4];
|
||||
@ -1069,11 +1073,13 @@ int MenuDiscList() {
|
||||
} else {
|
||||
carouselBtn.ResetState();
|
||||
}
|
||||
} else if (homebrewBtn.GetState() == STATE_CLICKED) {
|
||||
}
|
||||
else if (homebrewBtn.GetState() == STATE_CLICKED) {
|
||||
gprintf("\n\thomebrewBtn Clicked");
|
||||
menu = MENU_HOMEBREWBROWSE;
|
||||
break;
|
||||
} else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) {
|
||||
}
|
||||
else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) {
|
||||
gprintf("\n\tgameinfo Clicked");
|
||||
gameInfo.ResetState();
|
||||
if(selectImg1>=0 && selectImg1<(s32)gameCnt) {
|
||||
@ -1530,7 +1536,8 @@ int MenuDiscList() {
|
||||
/*if (menu == MENU_EXIT) {
|
||||
SDCard_deInit();
|
||||
}*/
|
||||
|
||||
startat=selectImg1, offset=selectImg1;//save the variables in case we are refreshing the list
|
||||
gprintf("\n\tstartat:%d offset:%d",startat,offset);
|
||||
HaltGui();
|
||||
mainWindow->RemoveAll();
|
||||
mainWindow->Append(bgImg);
|
||||
|
Loading…
Reference in New Issue
Block a user