fix a bug in saving cvs file

This commit is contained in:
giantpune 2009-10-04 11:16:30 +00:00
parent 51459465bc
commit 6cf4b4ce10
2 changed files with 8 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -951,18 +951,14 @@ int MenuDiscList() {
choice = WindowPrompt(0,linebuf, "txt","csv",tr("Back")); choice = WindowPrompt(0,linebuf, "txt","csv",tr("Back"));
if (choice==1)
{
if (save_gamelist(choice-1)) if (save_gamelist(choice-1))
WindowPrompt(0,tr("Saved"), tr("OK")); WindowPrompt(0,tr("Saved"), tr("OK"));
else else
WindowPrompt(tr("Error"),tr("Could not save."), tr("OK")); WindowPrompt(tr("Error"),tr("Could not save."), tr("OK"));
menu = MENU_DISCLIST; menu = MENU_DISCLIST;
break; break;
}
//gamecntBtn.ResetState();
gamecntBtn.ResetState();
} else if (homeBtn.GetState() == STATE_CLICKED) { } else if (homeBtn.GetState() == STATE_CLICKED) {
s32 thetimeofbg = bgMusic->GetPlayTime(); s32 thetimeofbg = bgMusic->GetPlayTime();