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
+3 -3
View File
@@ -2,7 +2,7 @@
#include "ScreenTitleMenu.h"
#include "ScreenManager.h"
#include "RageUtil.h"
#include "PrefsManager.h"
#include "GamePreferences.h"
#include "RageLog.h"
#include "AnnouncerManager.h"
#include "GameState.h"
@@ -30,7 +30,7 @@ ScreenTitleMenu::ScreenTitleMenu()
// TRICKY: Do this after GameState::Reset.
LIGHTSMAN->SetLightsMode( LIGHTSMODE_JOINING );
this->SubscribeToMessage( PREFSMAN->m_CoinMode.GetName()+"Changed" );
this->SubscribeToMessage( GamePreferences::m_CoinMode.GetName()+"Changed" );
}
void ScreenTitleMenu::Init()
@@ -75,7 +75,7 @@ void ScreenTitleMenu::Input( const InputEventPlus &input )
void ScreenTitleMenu::HandleMessage( const Message &msg )
{
if( msg == PREFSMAN->m_CoinMode.GetName()+"Changed" )
if( msg == GamePreferences::m_CoinMode.GetName()+"Changed" )
{
/* If the CoinMode was changed, we need to reload this screen
* so that the right m_aGameCommands will show */