High-level preferences that pull in other dependencies should be

moved out of PrefsManager; add GamePreferences for when we don't
have a convenient place to put it.
This commit is contained in:
Glenn Maynard
2006-11-21 04:54:50 +00:00
parent 6fd5f47bfb
commit e386583dc8
7 changed files with 79 additions and 16 deletions
+4 -3
View File
@@ -3,6 +3,7 @@
#include "ScreenDimensions.h"
#include "ScreenManager.h"
#include "PrefsManager.h"
#include "GamePreferences.h"
#include "RageLog.h"
#include "GameState.h"
#include "PlayerState.h"
@@ -524,13 +525,13 @@ class DebugLineAutosync : public IDebugLine
class DebugLineCoinMode : public IDebugLine
{
virtual RString GetDescription() { return COIN_MODE.GetValue(); }
virtual RString GetValue() { return CoinModeToString(PREFSMAN->m_CoinMode); }
virtual RString GetValue() { return CoinModeToString(GamePreferences::m_CoinMode); }
virtual bool IsEnabled() { return true; }
virtual void Do( RString &sMessageOut )
{
int cm = PREFSMAN->m_CoinMode+1;
int cm = GamePreferences::m_CoinMode+1;
wrap( cm, NUM_CoinMode );
PREFSMAN->m_CoinMode.Set( CoinMode(cm) );
GamePreferences::m_CoinMode.Set( CoinMode(cm) );
SCREENMAN->RefreshCreditsMessages();
IDebugLine::Do( sMessageOut );
}