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

23 lines
597 B
C++

#include "stdafx.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);
}