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