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:
giantpune 2009-10-16 21:56:32 +00:00
parent 9c7207aa79
commit 55ddcb5d30
2 changed files with 21 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1008,7 +1008,7 @@ int MenuDiscList() {
} else if (Settings.gameDisplay==carousel) { } else if (Settings.gameDisplay==carousel) {
gameCarousel->SetFocus(1); 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")); choice = WindowPrompt(tr("Install a game"),0,tr("Yes"),tr("No"));
if (choice == 1) { if (choice == 1) {
menu = MENU_INSTALL; menu = MENU_INSTALL;
@ -1023,6 +1023,24 @@ int MenuDiscList() {
gameCarousel->SetFocus(1); 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) { else if (sdcardBtn.GetState() == STATE_CLICKED) {
@ -2193,6 +2211,7 @@ int MainMenu(int menu) {
delete fontSystem; delete fontSystem;
ShutdownAudio(); ShutdownAudio();
StopGX(); StopGX();
gettextCleanUp();
if (mountMethod==3) if (mountMethod==3)
{ {
struct discHdr *header = &gameList[gameSelected]; struct discHdr *header = &gameList[gameSelected];