mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-28 03:20:24 +00:00
43 lines
754 B
C++
43 lines
754 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include "CPU.h"
|
|
#include "PPU.h"
|
|
#include "BaseMapper.h"
|
|
#include "MemoryManager.h"
|
|
#include "ControlManager.h"
|
|
|
|
enum EmulationFlags
|
|
{
|
|
LimitFPS = 0x01,
|
|
};
|
|
|
|
class Console
|
|
{
|
|
private:
|
|
static uint32_t Flags;
|
|
|
|
unique_ptr<CPU> _cpu;
|
|
unique_ptr<PPU> _ppu;
|
|
unique_ptr<BaseMapper> _mapper;
|
|
unique_ptr<ControlManager> _controlManager;
|
|
unique_ptr<MemoryManager> _memoryManager;
|
|
|
|
bool _stop = false;
|
|
|
|
public:
|
|
Console(wstring filename);
|
|
~Console();
|
|
void Run();
|
|
void Stop();
|
|
void RunTest(bool callback(Console*));
|
|
void Reset();
|
|
|
|
static bool CheckFlag(int flag);
|
|
static void SetFlags(int flags);
|
|
static void ClearFlags(int flags);
|
|
|
|
static void RunTests();
|
|
static void Load(wstring filename);
|
|
};
|