From 6cf4b4ce109fc63834ac46562803df76cf05037b Mon Sep 17 00:00:00 2001 From: giantpune Date: Sun, 4 Oct 2009 11:16:30 +0000 Subject: [PATCH] fix a bug in saving cvs file --- gui.pnproj | 2 +- source/menu.cpp | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/gui.pnproj b/gui.pnproj index 79647554..d465836d 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/menu.cpp b/source/menu.cpp index c439ddff..d552e552 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -951,18 +951,14 @@ int MenuDiscList() { choice = WindowPrompt(0,linebuf, "txt","csv",tr("Back")); - if (choice==1) - { - if (save_gamelist(choice-1)) - WindowPrompt(0,tr("Saved"), tr("OK")); - else - WindowPrompt(tr("Error"),tr("Could not save."), tr("OK")); - menu = MENU_DISCLIST; - break; - } + if (save_gamelist(choice-1)) + WindowPrompt(0,tr("Saved"), tr("OK")); + else + WindowPrompt(tr("Error"),tr("Could not save."), tr("OK")); + menu = MENU_DISCLIST; + break; - - gamecntBtn.ResetState(); + //gamecntBtn.ResetState(); } else if (homeBtn.GetState() == STATE_CLICKED) { s32 thetimeofbg = bgMusic->GetPlayTime();