broadcast on Preference changes

This commit is contained in:
Chris Danford
2005-05-06 20:41:05 +00:00
parent 5ebf6942f8
commit 820fb0b361
17 changed files with 80 additions and 74 deletions
+7
View File
@@ -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.