SaveGamePrefsToDisk / ReadGamePrefsFromDisk have been moved...
This commit is contained in:
@@ -178,7 +178,7 @@ void ScreenAppearanceOptions::ImportOptions()
|
|||||||
|
|
||||||
void ScreenAppearanceOptions::ExportOptions()
|
void ScreenAppearanceOptions::ExportOptions()
|
||||||
{
|
{
|
||||||
PREFSMAN->SaveGamePrefsToDisk();
|
SaveGamePrefsToDisk();
|
||||||
PREFSMAN->SaveGlobalPrefsToDisk();
|
PREFSMAN->SaveGlobalPrefsToDisk();
|
||||||
|
|
||||||
int iSelectedAnnouncer = m_iSelectedOption[0][AO_ANNOUNCER];
|
int iSelectedAnnouncer = m_iSelectedOption[0][AO_ANNOUNCER];
|
||||||
@@ -225,7 +225,7 @@ void ScreenAppearanceOptions::ExportOptions()
|
|||||||
(int&)PREFSMAN->m_iCourseSortOrder = m_iSelectedOption[0][AO_COURSE_SORT];
|
(int&)PREFSMAN->m_iCourseSortOrder = m_iSelectedOption[0][AO_COURSE_SORT];
|
||||||
PREFSMAN->m_bMoveRandomToEnd = !!m_iSelectedOption[0][AO_COURSE_MOVE_RANDOM];
|
PREFSMAN->m_bMoveRandomToEnd = !!m_iSelectedOption[0][AO_COURSE_MOVE_RANDOM];
|
||||||
|
|
||||||
PREFSMAN->SaveGamePrefsToDisk();
|
SaveGamePrefsToDisk();
|
||||||
PREFSMAN->SaveGlobalPrefsToDisk();
|
PREFSMAN->SaveGlobalPrefsToDisk();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,6 +236,6 @@ void ScreenAppearanceOptions::GoToPrevState()
|
|||||||
|
|
||||||
void ScreenAppearanceOptions::GoToNextState()
|
void ScreenAppearanceOptions::GoToNextState()
|
||||||
{
|
{
|
||||||
PREFSMAN->SaveGamePrefsToDisk();
|
SaveGamePrefsToDisk();
|
||||||
GoToPrevState();
|
GoToPrevState();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ void ScreenSelectGame::ExportOptions()
|
|||||||
LOG->Trace("ScreenSelectGame::ExportOptions()");
|
LOG->Trace("ScreenSelectGame::ExportOptions()");
|
||||||
|
|
||||||
INPUTMAPPER->SaveMappingsToDisk(); // save mappings before switching the game
|
INPUTMAPPER->SaveMappingsToDisk(); // save mappings before switching the game
|
||||||
PREFSMAN->SaveGamePrefsToDisk();
|
SaveGamePrefsToDisk();
|
||||||
|
|
||||||
// Switch the current style to the frist style of the selected game
|
// Switch the current style to the frist style of the selected game
|
||||||
int iSelection = m_iSelectedOption[0][SG_GAME];
|
int iSelection = m_iSelectedOption[0][SG_GAME];
|
||||||
@@ -90,7 +90,7 @@ void ScreenSelectGame::ExportOptions()
|
|||||||
Game game = aGames[iSelection];
|
Game game = aGames[iSelection];
|
||||||
|
|
||||||
GAMESTATE->m_CurGame = game;
|
GAMESTATE->m_CurGame = game;
|
||||||
PREFSMAN->ReadGamePrefsFromDisk();
|
ReadGamePrefsFromDisk();
|
||||||
INPUTMAPPER->ReadMappingsFromDisk();
|
INPUTMAPPER->ReadMappingsFromDisk();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user