broadcast on Preference changes
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "RageLog.h"
|
||||
#include "LuaFunctions.h"
|
||||
#include "LuaManager.h"
|
||||
#include "MessageManager.h"
|
||||
|
||||
static const CString PrefsGroupNames[] = {
|
||||
"Debug",
|
||||
@@ -84,6 +85,12 @@ void IPreference::WriteTo( IniFile &ini ) const
|
||||
ini.SetValue( PrefsGroupToString(m_PrefsGroup), m_sName, ToString() );
|
||||
}
|
||||
|
||||
void BroadcastPreferenceChanged( const CString& sPreferenceName )
|
||||
{
|
||||
if( MESSAGEMAN )
|
||||
MESSAGEMAN->Broadcast( sPreferenceName+"Changed" );
|
||||
}
|
||||
|
||||
/*
|
||||
* (c) 2001-2004 Chris Danford, Chris Gomez
|
||||
* All rights reserved.
|
||||
|
||||
Reference in New Issue
Block a user