SaveGamePrefsToDisk / ReadGamePrefsFromDisk have been moved...

This commit is contained in:
Ben Anderson
2003-10-04 01:30:14 +00:00
parent 73165ce3f0
commit cab3ed795f
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -178,7 +178,7 @@ void ScreenAppearanceOptions::ImportOptions()
void ScreenAppearanceOptions::ExportOptions()
{
PREFSMAN->SaveGamePrefsToDisk();
SaveGamePrefsToDisk();
PREFSMAN->SaveGlobalPrefsToDisk();
int iSelectedAnnouncer = m_iSelectedOption[0][AO_ANNOUNCER];
@@ -225,7 +225,7 @@ void ScreenAppearanceOptions::ExportOptions()
(int&)PREFSMAN->m_iCourseSortOrder = m_iSelectedOption[0][AO_COURSE_SORT];
PREFSMAN->m_bMoveRandomToEnd = !!m_iSelectedOption[0][AO_COURSE_MOVE_RANDOM];
PREFSMAN->SaveGamePrefsToDisk();
SaveGamePrefsToDisk();
PREFSMAN->SaveGlobalPrefsToDisk();
}
@@ -236,6 +236,6 @@ void ScreenAppearanceOptions::GoToPrevState()
void ScreenAppearanceOptions::GoToNextState()
{
PREFSMAN->SaveGamePrefsToDisk();
SaveGamePrefsToDisk();
GoToPrevState();
}
+2 -2
View File
@@ -80,7 +80,7 @@ void ScreenSelectGame::ExportOptions()
LOG->Trace("ScreenSelectGame::ExportOptions()");
INPUTMAPPER->SaveMappingsToDisk(); // save mappings before switching the game
PREFSMAN->SaveGamePrefsToDisk();
SaveGamePrefsToDisk();
// Switch the current style to the frist style of the selected game
int iSelection = m_iSelectedOption[0][SG_GAME];
@@ -90,7 +90,7 @@ void ScreenSelectGame::ExportOptions()
Game game = aGames[iSelection];
GAMESTATE->m_CurGame = game;
PREFSMAN->ReadGamePrefsFromDisk();
ReadGamePrefsFromDisk();
INPUTMAPPER->ReadMappingsFromDisk();
}