[Project64] Clean up N64System Settings.cpp
This commit is contained in:
parent
ce062e70ed
commit
bf9fad6737
|
@ -24,14 +24,14 @@ CN64SystemSettings::CN64SystemSettings()
|
||||||
m_RefCount += 1;
|
m_RefCount += 1;
|
||||||
if (m_RefCount == 1)
|
if (m_RefCount == 1)
|
||||||
{
|
{
|
||||||
g_Settings->RegisterChangeCB(UserInterface_BasicMode,NULL,RefreshSettings);
|
g_Settings->RegisterChangeCB(UserInterface_BasicMode, NULL, RefreshSettings);
|
||||||
g_Settings->RegisterChangeCB(UserInterface_ShowCPUPer,NULL,RefreshSettings);
|
g_Settings->RegisterChangeCB(UserInterface_ShowCPUPer, NULL, RefreshSettings);
|
||||||
g_Settings->RegisterChangeCB(UserInterface_DisplayFrameRate,NULL,RefreshSettings);
|
g_Settings->RegisterChangeCB(UserInterface_DisplayFrameRate, NULL, RefreshSettings);
|
||||||
|
|
||||||
g_Settings->RegisterChangeCB(Debugger_ProfileCode,NULL,RefreshSettings);
|
g_Settings->RegisterChangeCB(Debugger_ProfileCode, NULL, RefreshSettings);
|
||||||
g_Settings->RegisterChangeCB(Debugger_ShowDListAListCount,NULL,RefreshSettings);
|
g_Settings->RegisterChangeCB(Debugger_ShowDListAListCount, NULL, RefreshSettings);
|
||||||
|
|
||||||
g_Settings->RegisterChangeCB(GameRunning_LimitFPS,NULL,RefreshSettings);
|
g_Settings->RegisterChangeCB(GameRunning_LimitFPS, NULL, RefreshSettings);
|
||||||
|
|
||||||
RefreshSettings(NULL);
|
RefreshSettings(NULL);
|
||||||
}
|
}
|
||||||
|
@ -42,14 +42,14 @@ CN64SystemSettings::~CN64SystemSettings()
|
||||||
m_RefCount -= 1;
|
m_RefCount -= 1;
|
||||||
if (m_RefCount == 0)
|
if (m_RefCount == 0)
|
||||||
{
|
{
|
||||||
g_Settings->UnregisterChangeCB(UserInterface_BasicMode,NULL,RefreshSettings);
|
g_Settings->UnregisterChangeCB(UserInterface_BasicMode, NULL, RefreshSettings);
|
||||||
g_Settings->UnregisterChangeCB(UserInterface_DisplayFrameRate,NULL,RefreshSettings);
|
g_Settings->UnregisterChangeCB(UserInterface_DisplayFrameRate, NULL, RefreshSettings);
|
||||||
g_Settings->UnregisterChangeCB(UserInterface_ShowCPUPer,NULL,RefreshSettings);
|
g_Settings->UnregisterChangeCB(UserInterface_ShowCPUPer, NULL, RefreshSettings);
|
||||||
|
|
||||||
g_Settings->UnregisterChangeCB(Debugger_ProfileCode,NULL,RefreshSettings);
|
g_Settings->UnregisterChangeCB(Debugger_ProfileCode, NULL, RefreshSettings);
|
||||||
g_Settings->UnregisterChangeCB(Debugger_ShowDListAListCount,NULL,RefreshSettings);
|
g_Settings->UnregisterChangeCB(Debugger_ShowDListAListCount, NULL, RefreshSettings);
|
||||||
|
|
||||||
g_Settings->UnregisterChangeCB(GameRunning_LimitFPS,NULL,RefreshSettings);
|
g_Settings->UnregisterChangeCB(GameRunning_LimitFPS, NULL, RefreshSettings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,15 +16,15 @@ protected:
|
||||||
CN64SystemSettings();
|
CN64SystemSettings();
|
||||||
virtual ~CN64SystemSettings();
|
virtual ~CN64SystemSettings();
|
||||||
|
|
||||||
inline static bool bBasicMode ( void ) { return m_bBasicMode; }
|
inline static bool bBasicMode(void) { return m_bBasicMode; }
|
||||||
inline static bool bDisplayFrameRate ( void ) { return m_bDisplayFrameRate; }
|
inline static bool bDisplayFrameRate(void) { return m_bDisplayFrameRate; }
|
||||||
inline static bool bShowCPUPer ( void ) { return m_bShowCPUPer; }
|
inline static bool bShowCPUPer(void) { return m_bShowCPUPer; }
|
||||||
inline static bool bProfiling ( void ) { return m_bProfiling; }
|
inline static bool bProfiling(void) { return m_bProfiling; }
|
||||||
inline static bool bShowDListAListCount ( void ) { return m_bShowDListAListCount; }
|
inline static bool bShowDListAListCount(void) { return m_bShowDListAListCount; }
|
||||||
inline static bool bLimitFPS ( void ) { return m_bLimitFPS; }
|
inline static bool bLimitFPS(void) { return m_bLimitFPS; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void RefreshSettings ( void * );
|
static void RefreshSettings(void *);
|
||||||
|
|
||||||
static bool m_bShowCPUPer;
|
static bool m_bShowCPUPer;
|
||||||
static bool m_bProfiling;
|
static bool m_bProfiling;
|
||||||
|
@ -34,5 +34,4 @@ private:
|
||||||
static bool m_bDisplayFrameRate;
|
static bool m_bDisplayFrameRate;
|
||||||
|
|
||||||
static int m_RefCount;
|
static int m_RefCount;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue