Fix compile for VC6
This commit is contained in:
@@ -380,11 +380,43 @@ void PrefsManager::SaveGlobalPrefsToIni( IniFile &ini ) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// wrappers
|
// wrappers
|
||||||
CString PrefsManager::GetSoundDrivers() { return m_sSoundDrivers.Get().empty() ? (CString)DEFAULT_SOUND_DRIVER_LIST : m_sSoundDrivers; }
|
CString PrefsManager::GetSoundDrivers()
|
||||||
float PrefsManager::GetSoundVolume() { return m_fSoundVolume==-1 ? DEFAULT_SOUND_VOLUME : m_fSoundVolume; }
|
{
|
||||||
CString PrefsManager::GetInputDrivers() { return m_sInputDrivers.Get().empty() ? (CString)DEFAULT_INPUT_DRIVER_LIST : m_sInputDrivers; }
|
if ( m_sSoundDrivers.Get().empty() )
|
||||||
CString PrefsManager::GetMovieDrivers() { return m_sMovieDrivers.Get().empty() ? (CString)DEFAULT_MOVIE_DRIVER_LIST : m_sMovieDrivers; }
|
return (CString)DEFAULT_SOUND_DRIVER_LIST;
|
||||||
CString PrefsManager::GetLightsDriver() { return m_sLightsDriver.Get().empty() ? (CString)DEFAULT_LIGHTS_DRIVER : m_sLightsDriver; }
|
else
|
||||||
|
return m_sSoundDrivers;
|
||||||
|
}
|
||||||
|
|
||||||
|
float PrefsManager::GetSoundVolume()
|
||||||
|
{
|
||||||
|
if ( m_fSoundVolume==-1 )
|
||||||
|
return DEFAULT_SOUND_VOLUME;
|
||||||
|
else
|
||||||
|
return m_fSoundVolume;
|
||||||
|
}
|
||||||
|
|
||||||
|
CString PrefsManager::GetInputDrivers() {
|
||||||
|
if( m_sInputDrivers.Get().empty() )
|
||||||
|
return (CString)DEFAULT_INPUT_DRIVER_LIST;
|
||||||
|
else
|
||||||
|
return m_sInputDrivers;
|
||||||
|
}
|
||||||
|
|
||||||
|
CString PrefsManager::GetMovieDrivers()
|
||||||
|
{
|
||||||
|
if ( m_sMovieDrivers.Get().empty() )
|
||||||
|
return (CString)DEFAULT_MOVIE_DRIVER_LIST;
|
||||||
|
else
|
||||||
|
return m_sMovieDrivers;
|
||||||
|
}
|
||||||
|
|
||||||
|
CString PrefsManager::GetLightsDriver() {
|
||||||
|
if ( m_sLightsDriver.Get().empty() )
|
||||||
|
return (CString)DEFAULT_LIGHTS_DRIVER;
|
||||||
|
else
|
||||||
|
return m_sLightsDriver;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// lua start
|
// lua start
|
||||||
|
|||||||
@@ -295,9 +295,9 @@ public:
|
|||||||
Preference<RageSoundReader_Resample::ResampleQuality> m_SoundResampleQuality;
|
Preference<RageSoundReader_Resample::ResampleQuality> m_SoundResampleQuality;
|
||||||
private:
|
private:
|
||||||
Preference<CString> m_sInputDrivers; // "" == default
|
Preference<CString> m_sInputDrivers; // "" == default
|
||||||
Preference<CString> m_sMovieDrivers; // "" == default
|
|
||||||
Preference<CString> m_sLightsDriver; // "" == default
|
Preference<CString> m_sLightsDriver; // "" == default
|
||||||
public:
|
public:
|
||||||
|
Preference<CString> m_sMovieDrivers; // "" == default
|
||||||
Preference<CString> m_sLightsStepsDifficulty;
|
Preference<CString> m_sLightsStepsDifficulty;
|
||||||
Preference<bool> m_bBlinkGameplayButtonLightsOnNote;
|
Preference<bool> m_bBlinkGameplayButtonLightsOnNote;
|
||||||
Preference<bool> m_bAllowUnacceleratedRenderer;
|
Preference<bool> m_bAllowUnacceleratedRenderer;
|
||||||
|
|||||||
Reference in New Issue
Block a user