add option to reload songs and courses w/o restarting

This commit is contained in:
Chris Danford
2003-08-06 05:28:58 +00:00
parent 9904bf5f4d
commit 9375422396
5 changed files with 60 additions and 29 deletions
+8
View File
@@ -23,6 +23,7 @@
#include "GameManager.h"
#include "GameState.h"
#include "ThemeManager.h"
#include "SongManager.h"
enum {
@@ -35,6 +36,7 @@ enum {
OM_GRAPHIC,
OM_MACHINE,
// OM_SOUND,
OM_RELOAD,
NUM_OPTIONS_MENU_LINES
};
@@ -48,6 +50,7 @@ OptionRow g_OptionsMenuLines[NUM_OPTIONS_MENU_LINES] = {
OptionRow( "", "Graphic Options" ),
OptionRow( "", "Machine Options" ),
// OptionRow( "", "Sound Options" ),
OptionRow( "", "Reload Songs/Courses" ),
};
ScreenOptionsMenu::ScreenOptionsMenu() :
@@ -103,6 +106,11 @@ void ScreenOptionsMenu::GoToNextState()
case OM_INPUT: SCREENMAN->SetNewScreen("ScreenInputOptions"); break;
case OM_MACHINE: SCREENMAN->SetNewScreen("ScreenMachineOptions"); break;
// case OM_SOUND: SCREENMAN->SetNewScreen("ScreenSoundOptions"); break;
case OM_RELOAD:
SONGMAN->ReloadSongs();
SONGMAN->ReloadCourses();
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );
break;
default: // Exit
SCREENMAN->SetNewScreen("ScreenTitleMenu");
}