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 *
|
|
|
|
* *
|
|
|
|
****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2015-12-04 06:49:31 +00:00
|
|
|
#include <Project64/N64System/N64Types.h>
|
2012-09-28 20:07:45 +00:00
|
|
|
|
|
|
|
class CDebugSettings
|
|
|
|
{
|
|
|
|
public:
|
2015-11-14 21:32:57 +00:00
|
|
|
CDebugSettings();
|
|
|
|
virtual ~CDebugSettings();
|
2012-09-28 20:07:45 +00:00
|
|
|
|
2015-11-14 21:32:57 +00:00
|
|
|
static inline bool bHaveDebugger(void) { return m_bHaveDebugger; }
|
|
|
|
static inline bool bLogX86Code(void) { return m_bLogX86Code; }
|
|
|
|
static inline bool bShowTLBMisses(void) { return m_bShowTLBMisses; }
|
|
|
|
static inline bool bShowDivByZero(void) { return m_bShowDivByZero; }
|
2012-09-28 20:07:45 +00:00
|
|
|
|
|
|
|
private:
|
2015-11-14 21:32:57 +00:00
|
|
|
static void StaticRefreshSettings(CDebugSettings * _this)
|
|
|
|
{
|
|
|
|
_this->RefreshSettings();
|
|
|
|
}
|
2012-09-28 20:07:45 +00:00
|
|
|
|
2015-11-14 21:32:57 +00:00
|
|
|
void RefreshSettings(void);
|
2012-09-28 20:07:45 +00:00
|
|
|
|
2015-11-14 21:32:57 +00:00
|
|
|
//Settings that can be changed on the fly
|
|
|
|
static bool m_bHaveDebugger;
|
|
|
|
static bool m_bLogX86Code;
|
|
|
|
static bool m_bShowTLBMisses;
|
|
|
|
static bool m_bShowDivByZero;
|
2012-09-28 20:07:45 +00:00
|
|
|
|
2015-11-14 21:49:08 +00:00
|
|
|
static int32_t m_RefCount;
|
2015-11-14 21:32:57 +00:00
|
|
|
static bool m_Registered;
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|