Skip to content

Commit

Permalink
make the topmost entry "exit"
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovic committed Dec 15, 2011
1 parent a8ddbf5 commit 584e94c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions unix/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ void menu_dispupdate(void)
strcpy(disptxt[0],"Snes9x4P v20111213");

strcpy(disptxt[1],"");
strcpy(disptxt[2],"Reset Game");
strcpy(disptxt[3],"Exit Emulator");
strcpy(disptxt[2],"Exit Emulator");
strcpy(disptxt[3],"Reset Game");
strcpy(disptxt[4],"Credits");
strcpy(disptxt[5],"------------------");
strcpy(disptxt[6],"Save State");
Expand Down Expand Up @@ -423,7 +423,11 @@ void menu_loop(void)
{
switch(cursor)
{
case 2: //reset snes9x
case 2: //exit snes9x
if (keyssnes[sfc_key[A_1]] == SDL_PRESSED)
S9xExit();
break;
case 3: //reset snes9x
if ((keyssnes[sfc_key[A_1]] == SDL_PRESSED))
{
//make sure the sram is stored before resetting the console
Expand All @@ -433,10 +437,6 @@ void menu_loop(void)
exit_loop = TRUE;
}
break;
case 3: //exit snes9x
if (keyssnes[sfc_key[A_1]] == SDL_PRESSED)
S9xExit();
break;
case 4:
if (keyssnes[sfc_key[A_1]] == SDL_PRESSED)
ShowCredit();
Expand Down

0 comments on commit 584e94c

Please sign in to comment.