2010-05-23 10:05:41 +00:00
|
|
|
#pragma once
|
|
|
|
|
2008-09-18 03:15:49 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "..\\..\\N64 System.h"
|
|
|
|
#include "..\\..\\User Interface.h"
|
|
|
|
#include "..\\..\\Multilanguage.h"
|
|
|
|
#include "..\\..\\Plugin.h"
|
|
|
|
|
|
|
|
class CC_Core
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void SetSettings ( );
|
|
|
|
static void RunRsp (void );
|
|
|
|
static void ApplyCheats (CN64System * System );
|
|
|
|
static void ApplyGSButtonCheats (CN64System * System );
|
|
|
|
static void PauseExecution ( void );
|
|
|
|
static bool LoadState (CN64System * System ) { return System->LoadState(); }
|
|
|
|
static bool SaveState (CN64System * System ) { return System->SaveState(); }
|
|
|
|
static void GenerateProfileLog ( void );
|
|
|
|
static void ResetTimer ( void );
|
|
|
|
static DWORD StartTimer ( DWORD Address );
|
|
|
|
static DWORD StopTimer ( void );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#include <common/memtest.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "..\\Types.h"
|
|
|
|
|
|
|
|
const char * GetAppName ( void );
|
|
|
|
|
|
|
|
void PauseExecution ( void );
|
|
|
|
void DisplayError ( const char * Message, ... );
|
|
|
|
void DisplayMessage ( int DisplayTime, const char * Message, ... );
|
|
|
|
void DisplayMessage2 ( const char * Message, ... );
|
|
|
|
void GetAutoSaveDir ( char * Directory );
|
|
|
|
void GetInstantSaveDir ( char * Directory );
|
|
|
|
void SetFpuLocations ( void );
|
|
|
|
BOOL Limit_FPS ( void );
|
|
|
|
void ChangePluginFunc ( void );
|
|
|
|
void ApplyGSButtonCheats ( void );
|
|
|
|
void ChangeFullScreenFunc ( void );
|
2010-05-25 09:15:19 +00:00
|
|
|
void StartInterpreterCPU ( void );
|
2008-09-18 03:15:49 +00:00
|
|
|
void SyncSystem ( void );
|
|
|
|
BOOL Machine_LoadState ( void );
|
|
|
|
BOOL Machine_SaveState ( void );
|
|
|
|
void BreakPoint ( LPCSTR FileName, int LineNumber );
|
|
|
|
void ApplyCheats ( void );
|
|
|
|
void RunRsp ( void );
|
|
|
|
void RefreshScreen ( void );
|
|
|
|
void ResetX86Logs ( void );
|
|
|
|
void SyncToPC ( void );
|
|
|
|
void CloseSaveChips ( void );
|
|
|
|
|
|
|
|
//Timer functions
|
|
|
|
void ResetTimer ( void );
|
|
|
|
void GenerateProfileLog ( void );
|
|
|
|
DWORD StartTimer ( DWORD Address );
|
|
|
|
DWORD StopTimer ( void );
|
|
|
|
|
|
|
|
//settings
|
2010-06-29 02:11:22 +00:00
|
|
|
extern BOOL g_ShowCPUPer, g_ShowTLBMisses, g_UseTlb,
|
|
|
|
g_HaveDebugger, g_AudioSignal,
|
2008-09-18 03:15:49 +00:00
|
|
|
g_UseLinking, g_FixedAudio, g_LogX86Code;
|
|
|
|
extern DWORD g_RomFileSize, g_CountPerOp;
|
|
|
|
extern enum CPU_TYPE g_CPU_Type;
|
|
|
|
extern enum SAVE_CHIP_TYPE g_SaveUsing;
|
|
|
|
extern enum FUNC_LOOKUP_METHOD g_LookUpMode;
|
|
|
|
extern char g_RomName [300];
|
|
|
|
|
|
|
|
//Plugins
|
|
|
|
extern DWORD * g_AudioIntrReg;
|
|
|
|
extern enum SystemType g_SystemType;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|