2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
2015-11-10 05:21:49 +00:00
|
|
|
* Project64 - A Nintendo 64 emulator. *
|
2012-12-19 09:30:18 +00:00
|
|
|
* http://www.pj64-emu.com/ *
|
|
|
|
* Copyright (C) 2012 Project64. All rights reserved. *
|
|
|
|
* *
|
|
|
|
* License: *
|
|
|
|
* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
2010-06-07 02:23:58 +00:00
|
|
|
#include "stdafx.h"
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
bool CNotificationSettings::m_bInFullScreen = false;
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
CNotificationSettings::CNotificationSettings()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CNotificationSettings::~CNotificationSettings()
|
|
|
|
{
|
2012-11-17 01:02:04 +00:00
|
|
|
if (g_Settings)
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2012-11-17 01:02:04 +00:00
|
|
|
g_Settings->UnregisterChangeCB(UserInterface_InFullScreen,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-25 11:40:21 +00:00
|
|
|
void CNotificationSettings::RegisterNotifications()
|
|
|
|
{
|
|
|
|
g_Settings->RegisterChangeCB(UserInterface_InFullScreen, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
|
|
|
|
RefreshSettings();
|
|
|
|
}
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
void CNotificationSettings::RefreshSettings()
|
2008-09-18 03:15:49 +00:00
|
|
|
{
|
2012-11-17 01:02:04 +00:00
|
|
|
m_bInFullScreen = g_Settings->LoadBool(UserInterface_InFullScreen);
|
2008-09-18 03:15:49 +00:00
|
|
|
}
|