From 6c2dd97e714c9d631abcc5ba475f213b4ad56274 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 21 Dec 2002 07:33:28 +0000 Subject: [PATCH] only write sound drivers to the ini if it's been changed --- stepmania/src/PrefsManager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/PrefsManager.cpp b/stepmania/src/PrefsManager.cpp index 404f64d4b9..02f5a6296b 100644 --- a/stepmania/src/PrefsManager.cpp +++ b/stepmania/src/PrefsManager.cpp @@ -174,7 +174,12 @@ void PrefsManager::SaveGlobalPrefsToDisk() ini.SetValue ( "Options", "DWIPath", m_DWIPath ); ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds ); ini.SetValueB( "Options", "CoinOpMode", m_bCoinOpMode ); - ini.SetValue ( "Options", "SoundDrivers", m_bSoundDrivers ); + + /* Only write this if it's been changed. This ensures that we can change + * the default and have it take effect for everyone (except people who + * tweaked this value). */ + if(m_bSoundDrivers != DEFAULT_SOUND_DRIVER_LIST) + ini.SetValue ( "Options", "SoundDrivers", m_bSoundDrivers ); ini.SetValue( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );