fix codedump when pressing button "2" and no game is selected

This commit is contained in:
ardi@ist-einmalig.de 2009-10-15 12:41:32 +00:00
parent 539b3e48b5
commit d7401a77cf

View File

@ -1279,17 +1279,19 @@ int MenuDiscList() {
break; break;
} else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) { } else if (gameInfo.GetState() == STATE_CLICKED && mountMethod!=3) {
gameInfo.ResetState(); gameInfo.ResetState();
gameSelected = selectImg1; if(selectImg1>=0 && selectImg1<(s32)gameCnt) {
rockout(); gameSelected = selectImg1;
struct discHdr *header = &gameList[selectImg1]; rockout();
snprintf (IDfull,sizeof(IDfull),"%c%c%c%c%c%c", header->id[0], header->id[1], header->id[2],header->id[3], header->id[4], header->id[5]); struct discHdr *header = &gameList[selectImg1];
choice = showGameInfo(IDfull); snprintf (IDfull,sizeof(IDfull),"%c%c%c%c%c%c", header->id[0], header->id[1], header->id[2],header->id[3], header->id[4], header->id[5]);
rockout(2); choice = showGameInfo(IDfull);
if (choice==2) rockout(2);
homeBtn.SetState(STATE_CLICKED); if (choice==2)
if (choice==3) { homeBtn.SetState(STATE_CLICKED);
menu = MENU_DISCLIST; if (choice==3) {
break; menu = MENU_DISCLIST;
break;
}
} }
} }
else if (dvdBtn.GetState() == STATE_CLICKED) { else if (dvdBtn.GetState() == STATE_CLICKED) {