Move *.ini.
This commit is contained in:
@@ -70,7 +70,7 @@ void InputMapper::ReadMappingsFromDisk()
|
|||||||
ClearAllMappings();
|
ClearAllMappings();
|
||||||
|
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
ini.SetPath( "Keymaps.ini" );
|
ini.SetPath( "data/Keymaps.ini" );
|
||||||
if( !ini.ReadFile() )
|
if( !ini.ReadFile() )
|
||||||
LOG->Warn( "could not input mapping file \"Keymaps.ini\"." );
|
LOG->Warn( "could not input mapping file \"Keymaps.ini\"." );
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ void InputMapper::ReadMappingsFromDisk()
|
|||||||
void InputMapper::SaveMappingsToDisk()
|
void InputMapper::SaveMappingsToDisk()
|
||||||
{
|
{
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
ini.SetPath( "Keymaps.ini" );
|
ini.SetPath( "data/Keymaps.ini" );
|
||||||
ini.ReadFile();
|
ini.ReadFile();
|
||||||
|
|
||||||
// erase the key so that we overwrite everything for this game
|
// erase the key so that we overwrite everything for this game
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ PrefsManager::~PrefsManager()
|
|||||||
void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
||||||
{
|
{
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
ini.SetPath( "StepMania.ini" );
|
ini.SetPath( "data/StepMania.ini" );
|
||||||
if( !ini.ReadFile() )
|
if( !ini.ReadFile() )
|
||||||
return; // could not read config file, load nothing
|
return; // could not read config file, load nothing
|
||||||
|
|
||||||
@@ -208,7 +208,7 @@ void PrefsManager::ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame )
|
|||||||
void PrefsManager::SaveGlobalPrefsToDisk()
|
void PrefsManager::SaveGlobalPrefsToDisk()
|
||||||
{
|
{
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
ini.SetPath( "StepMania.ini" );
|
ini.SetPath( "data/StepMania.ini" );
|
||||||
|
|
||||||
ini.SetValueB( "Options", "Windowed", m_bWindowed );
|
ini.SetValueB( "Options", "Windowed", m_bWindowed );
|
||||||
ini.SetValueI( "Options", "DisplayWidth", m_iDisplayWidth );
|
ini.SetValueI( "Options", "DisplayWidth", m_iDisplayWidth );
|
||||||
@@ -295,7 +295,7 @@ void PrefsManager::ReadGamePrefsFromDisk()
|
|||||||
|
|
||||||
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
|
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
ini.SetPath( "GamePrefs.ini" );
|
ini.SetPath( "data/GamePrefs.ini" );
|
||||||
ini.ReadFile(); // it's OK if this fails
|
ini.ReadFile(); // it's OK if this fails
|
||||||
|
|
||||||
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
|
CString sAnnouncer = sGameName, sTheme = sGameName, sNoteSkin = sGameName;
|
||||||
@@ -324,7 +324,7 @@ void PrefsManager::SaveGamePrefsToDisk()
|
|||||||
|
|
||||||
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
|
CString sGameName = GAMESTATE->GetCurrentGameDef()->m_szName;
|
||||||
IniFile ini;
|
IniFile ini;
|
||||||
ini.SetPath( "GamePrefs.ini" );
|
ini.SetPath( "data/GamePrefs.ini" );
|
||||||
ini.ReadFile(); // it's OK if this fails
|
ini.ReadFile(); // it's OK if this fails
|
||||||
|
|
||||||
ini.SetValue( sGameName, "Announcer", ANNOUNCER->GetCurAnnouncerName() );
|
ini.SetValue( sGameName, "Announcer", ANNOUNCER->GetCurAnnouncerName() );
|
||||||
|
|||||||
@@ -296,7 +296,11 @@ RMDir "$INSTDIR\Themes"
|
|||||||
Delete "$INSTDIR\Visualizations\instructions.txt"
|
Delete "$INSTDIR\Visualizations\instructions.txt"
|
||||||
RMDir "$INSTDIR\Visualizations"
|
RMDir "$INSTDIR\Visualizations"
|
||||||
|
|
||||||
|
; Don't delete high scores.
|
||||||
Delete "$INSTDIR\Data\Translation.dat"
|
Delete "$INSTDIR\Data\Translation.dat"
|
||||||
|
Delete "$INSTDIR\Data\stepmania.ini"
|
||||||
|
Delete "$INSTDIR\Data\Keymaps.ini"
|
||||||
|
Delete "$INSTDIR\Data\GamePrefs.ini"
|
||||||
RMDir "$INSTDIR\Data"
|
RMDir "$INSTDIR\Data"
|
||||||
|
|
||||||
Delete "$INSTDIR\msvcr70.dll"
|
Delete "$INSTDIR\msvcr70.dll"
|
||||||
@@ -308,9 +312,6 @@ Delete "$INSTDIR\COPYING.txt"
|
|||||||
Delete "$INSTDIR\README-FIRST.html"
|
Delete "$INSTDIR\README-FIRST.html"
|
||||||
Delete "$INSTDIR\NEWS"
|
Delete "$INSTDIR\NEWS"
|
||||||
Delete "$INSTDIR\stepmania.exe"
|
Delete "$INSTDIR\stepmania.exe"
|
||||||
Delete "$INSTDIR\stepmania.ini"
|
|
||||||
Delete "$INSTDIR\Keymaps.ini"
|
|
||||||
Delete "$INSTDIR\GamePrefs.ini"
|
|
||||||
Delete "$INSTDIR\smpackage.exe"
|
Delete "$INSTDIR\smpackage.exe"
|
||||||
Delete "$INSTDIR\StepMania.vdi"
|
Delete "$INSTDIR\StepMania.vdi"
|
||||||
Delete "$INSTDIR\log.txt"
|
Delete "$INSTDIR\log.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user