project64/Source/Project64/Settings/Notification Settings.cpp

24 lines
638 B
C++
Raw Normal View History

#include "..\Settings.h"
#include "Notification Settings.h"
bool CNotificationSettings::m_bInFullScreen = false;
CNotificationSettings::CNotificationSettings()
{
_Settings->RegisterChangeCB(UserInterface_InFullScreen,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
RefreshSettings();
}
CNotificationSettings::~CNotificationSettings()
{
if (_Settings)
{
_Settings->UnregisterChangeCB(UserInterface_InFullScreen,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
}
}
void CNotificationSettings::RefreshSettings()
{
m_bInFullScreen = _Settings->LoadBool(UserInterface_InFullScreen);
}