mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
fix another memory issue. probably fixed issue 1013 and other similar ocarina issues.
little change to what happens when installing a disc
This commit is contained in:
parent
9c7207aa79
commit
55ddcb5d30
File diff suppressed because one or more lines are too long
@ -1008,7 +1008,7 @@ int MenuDiscList() {
|
||||
} else if (Settings.gameDisplay==carousel) {
|
||||
gameCarousel->SetFocus(1);
|
||||
}
|
||||
} else if ((installBtn.GetState() == STATE_CLICKED)||((covert & 0x2)&&(covert!=covertOld))) {
|
||||
} else if (installBtn.GetState() == STATE_CLICKED) {
|
||||
choice = WindowPrompt(tr("Install a game"),0,tr("Yes"),tr("No"));
|
||||
if (choice == 1) {
|
||||
menu = MENU_INSTALL;
|
||||
@ -1023,6 +1023,24 @@ int MenuDiscList() {
|
||||
gameCarousel->SetFocus(1);
|
||||
}
|
||||
}
|
||||
}else if ((covert & 0x2)&&(covert!=covertOld)) {
|
||||
choice = WindowPrompt(tr("New Disc Detected"),0,tr("Install"),tr("Mount DVD drive"),tr("Cancel"));
|
||||
if (choice == 1) {
|
||||
menu = MENU_INSTALL;
|
||||
break;
|
||||
}
|
||||
else if (choice ==2)
|
||||
{
|
||||
dvdBtn.SetState(STATE_CLICKED);
|
||||
}else {
|
||||
if (Settings.gameDisplay==list) {
|
||||
gameBrowser->SetFocus(1);
|
||||
} else if (Settings.gameDisplay==grid) {
|
||||
gameGrid->SetFocus(1);
|
||||
} else if (Settings.gameDisplay==carousel) {
|
||||
gameCarousel->SetFocus(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (sdcardBtn.GetState() == STATE_CLICKED) {
|
||||
@ -2193,6 +2211,7 @@ int MainMenu(int menu) {
|
||||
delete fontSystem;
|
||||
ShutdownAudio();
|
||||
StopGX();
|
||||
gettextCleanUp();
|
||||
if (mountMethod==3)
|
||||
{
|
||||
struct discHdr *header = &gameList[gameSelected];
|
||||
|
Loading…
Reference in New Issue
Block a user