Oops, forgot to commit this.
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "AnnouncerManager.h"
|
#include "AnnouncerManager.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
|
#include "arch/arch.h" /* for default driver specs */
|
||||||
|
|
||||||
|
|
||||||
PrefsManager* PREFSMAN = NULL; // global and accessable from anywhere in our program
|
PrefsManager* PREFSMAN = NULL; // global and accessable from anywhere in our program
|
||||||
@@ -68,6 +69,8 @@ PrefsManager::PrefsManager()
|
|||||||
m_bHiddenSongs = false;
|
m_bHiddenSongs = false;
|
||||||
m_bVsync = true;
|
m_bVsync = true;
|
||||||
|
|
||||||
|
m_bSoundDrivers = DEFAULT_SOUND_DRIVER_LIST;
|
||||||
|
|
||||||
ReadGlobalPrefsFromDisk( true );
|
ReadGlobalPrefsFromDisk( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,6 +116,7 @@ PrefsManager::~PrefsManager()
|
|||||||
ini.GetValue ( "Options", "DWIPath", m_DWIPath );
|
ini.GetValue ( "Options", "DWIPath", m_DWIPath );
|
||||||
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
ini.GetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
||||||
ini.GetValueB( "Options", "CoinOpMode", m_bCoinOpMode );
|
ini.GetValueB( "Options", "CoinOpMode", m_bCoinOpMode );
|
||||||
|
ini.GetValue ( "Options", "SoundDrivers", m_bSoundDrivers );
|
||||||
|
|
||||||
m_asAdditionalSongFolders.clear();
|
m_asAdditionalSongFolders.clear();
|
||||||
CString sAdditionalSongFolders;
|
CString sAdditionalSongFolders;
|
||||||
@@ -164,6 +168,7 @@ void PrefsManager::SaveGlobalPrefsToDisk()
|
|||||||
ini.SetValue ( "Options", "DWIPath", m_DWIPath );
|
ini.SetValue ( "Options", "DWIPath", m_DWIPath );
|
||||||
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
ini.SetValueI( "Options", "UnloadTextureDelaySeconds", m_iUnloadTextureDelaySeconds );
|
||||||
ini.SetValueB( "Options", "CoinOpMode", m_bCoinOpMode );
|
ini.SetValueB( "Options", "CoinOpMode", m_bCoinOpMode );
|
||||||
|
ini.SetValue ( "Options", "SoundDrivers", m_bSoundDrivers );
|
||||||
|
|
||||||
ini.SetValue( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );
|
ini.SetValue( "Options", "AdditionalSongFolders", join(",", m_asAdditionalSongFolders) );
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ public:
|
|||||||
CStringArray m_asAdditionalSongFolders;
|
CStringArray m_asAdditionalSongFolders;
|
||||||
CString m_DWIPath;
|
CString m_DWIPath;
|
||||||
|
|
||||||
|
CString m_bSoundDrivers;
|
||||||
|
|
||||||
void ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame );
|
void ReadGlobalPrefsFromDisk( bool bSwitchToLastPlayedGame );
|
||||||
void SaveGlobalPrefsToDisk();
|
void SaveGlobalPrefsToDisk();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user