mirror of
https://github.com/wiidev/usbloadergx.git
synced 2025-02-19 21:02:43 +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">
|
<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 r857</version>
|
<version>1.0 r859</version>
|
||||||
<release_date>200912112033</release_date>
|
<release_date>200912120047</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.
|
||||||
|
@ -41,14 +41,18 @@ char idiotChar[50];
|
|||||||
void DiscListWinUpdateCallback(void * e);
|
void DiscListWinUpdateCallback(void * e);
|
||||||
void rockout(int f = 0);
|
void rockout(int f = 0);
|
||||||
|
|
||||||
|
static u32 startat = 0;
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* MenuDiscList
|
* MenuDiscList
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
int MenuDiscList() {
|
int MenuDiscList() {
|
||||||
|
|
||||||
gprintf("\nMenuDiscList()");
|
gprintf("\nMenuDiscList()");
|
||||||
int startat = 0;
|
__Menu_GetEntries();
|
||||||
int offset = 0;
|
int offset = MIN(startat,gameCnt-1);
|
||||||
|
startat = offset;
|
||||||
|
gprintf("\n\tstartat:%d offset:%d",startat,offset);
|
||||||
int datag = 0;
|
int datag = 0;
|
||||||
int datagB =0;
|
int datagB =0;
|
||||||
int dataed = -1;
|
int dataed = -1;
|
||||||
@ -72,7 +76,7 @@ int MenuDiscList() {
|
|||||||
|
|
||||||
datagB=0;
|
datagB=0;
|
||||||
int menu = MENU_NONE, dataef=0;
|
int menu = MENU_NONE, dataef=0;
|
||||||
__Menu_GetEntries();
|
|
||||||
|
|
||||||
u32 nolist;
|
u32 nolist;
|
||||||
char text[MAX_CHARACTERS + 4];
|
char text[MAX_CHARACTERS + 4];
|
||||||
@ -1069,11 +1073,13 @@ int MenuDiscList() {
|
|||||||
} else {
|
} else {
|
||||||
carouselBtn.ResetState();
|
carouselBtn.ResetState();
|
||||||
}
|
}
|
||||||
} else if (homebrewBtn.GetState() == STATE_CLICKED) {
|
}
|
||||||
|
else if (homebrewBtn.GetState() == STATE_CLICKED) {
|
||||||
gprintf("\n\thomebrewBtn Clicked");
|
gprintf("\n\thomebrewBtn Clicked");
|
||||||
menu = MENU_HOMEBREWBROWSE;
|
menu = MENU_HOMEBREWBROWSE;
|
||||||
break;
|
break;
|
||||||
} else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) {
|
}
|
||||||
|
else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) {
|
||||||
gprintf("\n\tgameinfo Clicked");
|
gprintf("\n\tgameinfo Clicked");
|
||||||
gameInfo.ResetState();
|
gameInfo.ResetState();
|
||||||
if(selectImg1>=0 && selectImg1<(s32)gameCnt) {
|
if(selectImg1>=0 && selectImg1<(s32)gameCnt) {
|
||||||
@ -1530,7 +1536,8 @@ int MenuDiscList() {
|
|||||||
/*if (menu == MENU_EXIT) {
|
/*if (menu == MENU_EXIT) {
|
||||||
SDCard_deInit();
|
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();
|
HaltGui();
|
||||||
mainWindow->RemoveAll();
|
mainWindow->RemoveAll();
|
||||||
mainWindow->Append(bgImg);
|
mainWindow->Append(bgImg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user