2012-12-19 09:30:18 +00:00
|
|
|
/****************************************************************************
|
|
|
|
* *
|
|
|
|
* Project 64 - A Nintendo 64 emulator. *
|
|
|
|
* 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
|
|
|
|
|
2012-09-24 01:14:02 +00:00
|
|
|
#include <N64 System/N64 Types.h>
|
|
|
|
|
|
|
|
class CGameSettings
|
|
|
|
{
|
|
|
|
public:
|
2012-11-29 11:23:35 +00:00
|
|
|
void RefreshGameSettings ( void );
|
2012-09-24 01:14:02 +00:00
|
|
|
|
2012-11-29 11:23:35 +00:00
|
|
|
inline static bool bRomInMemory ( void ) { return m_bRomInMemory; }
|
|
|
|
inline static bool bRegCaching ( void ) { return m_RegCaching; }
|
|
|
|
inline static bool bLinkBlocks ( void ) { return m_bLinkBlocks; }
|
|
|
|
inline static FUNC_LOOKUP_METHOD LookUpMode ( void ) { return (FUNC_LOOKUP_METHOD)m_LookUpMode; }
|
2015-04-19 22:50:07 +00:00
|
|
|
inline static bool bUseTlb ( void ) { return m_bUseTlb; }
|
2012-11-29 11:23:35 +00:00
|
|
|
inline static DWORD CountPerOp ( void ) { return m_CountPerOp; }
|
|
|
|
inline static DWORD ViRefreshRate ( void ) { return m_ViRefreshRate; }
|
|
|
|
inline static DWORD AiCountPerBytes ( void ) { return m_AiCountPerBytes; }
|
|
|
|
inline static bool bDelayDP ( void ) { return m_DelayDP; }
|
|
|
|
inline static bool bDelaySI ( void ) { return m_DelaySI; }
|
|
|
|
inline static DWORD RdramSize ( void ) { return m_RdramSize; }
|
|
|
|
inline static bool bFixedAudio ( void ) { return m_bFixedAudio; }
|
2012-12-31 12:46:03 +00:00
|
|
|
inline static bool bSyncToAudio ( void ) { return m_bSyncingToAudio; }
|
2012-11-29 11:23:35 +00:00
|
|
|
inline static bool bFastSP ( void ) { return m_bFastSP; }
|
|
|
|
inline static bool b32BitCore ( void ) { return m_b32Bit; }
|
|
|
|
inline static bool RspAudioSignal ( void ) { return m_RspAudioSignal; }
|
2015-04-19 22:50:07 +00:00
|
|
|
inline static bool bSMM_StoreInstruc ( void ) { return m_bSMM_StoreInstruc; }
|
|
|
|
inline static bool bSMM_Protect ( void ) { return m_bSMM_Protect; }
|
|
|
|
inline static bool bSMM_ValidFunc ( void ) { return m_bSMM_ValidFunc; }
|
|
|
|
inline static bool bSMM_PIDMA ( void ) { return m_bSMM_PIDMA; }
|
|
|
|
inline static bool bSMM_TLB ( void ) { return m_bSMM_TLB; }
|
2015-01-26 03:43:37 +00:00
|
|
|
inline static SYSTEM_TYPE SystemType ( void ) { return m_SystemType; }
|
2015-04-19 22:50:07 +00:00
|
|
|
inline static CPU_TYPE CpuType ( void ) { return m_CpuType; }
|
2012-10-05 23:53:11 +00:00
|
|
|
|
2012-12-31 12:46:03 +00:00
|
|
|
protected:
|
|
|
|
static void SpeedChanged (int SpeedLimit );
|
|
|
|
|
2012-09-24 01:14:02 +00:00
|
|
|
private:
|
|
|
|
//Settings that can be changed on the fly
|
2012-11-29 11:23:35 +00:00
|
|
|
static bool m_bRomInMemory;
|
|
|
|
static bool m_RegCaching;
|
|
|
|
static bool m_bLinkBlocks;
|
|
|
|
static DWORD m_LookUpMode; //FUNC_LOOKUP_METHOD
|
2012-10-14 01:05:52 +00:00
|
|
|
static bool m_bUseTlb;
|
2012-09-28 20:07:45 +00:00
|
|
|
static DWORD m_CountPerOp;
|
2012-09-30 14:37:40 +00:00
|
|
|
static DWORD m_ViRefreshRate;
|
2012-11-13 05:44:13 +00:00
|
|
|
static DWORD m_AiCountPerBytes;
|
2012-10-05 23:53:11 +00:00
|
|
|
static bool m_DelayDP;
|
|
|
|
static bool m_DelaySI;
|
|
|
|
static DWORD m_RdramSize;
|
2012-10-14 01:05:52 +00:00
|
|
|
static bool m_bFixedAudio;
|
2012-12-31 12:46:03 +00:00
|
|
|
static bool m_bSyncingToAudio;
|
2012-10-14 01:05:52 +00:00
|
|
|
static bool m_bSyncToAudio;
|
|
|
|
static bool m_bFastSP;
|
|
|
|
static bool m_b32Bit;
|
2012-10-25 08:34:25 +00:00
|
|
|
static bool m_RspAudioSignal;
|
2012-11-29 11:23:35 +00:00
|
|
|
static bool m_bSMM_StoreInstruc;
|
|
|
|
static bool m_bSMM_Protect;
|
|
|
|
static bool m_bSMM_ValidFunc;
|
|
|
|
static bool m_bSMM_PIDMA;
|
|
|
|
static bool m_bSMM_TLB;
|
2015-01-26 03:43:37 +00:00
|
|
|
static SYSTEM_TYPE m_SystemType;
|
2015-04-19 22:50:07 +00:00
|
|
|
static CPU_TYPE m_CpuType;
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|