Mesen-X/GUI/MainWindow.h

44 lines
1,005 B
C
Raw Normal View History

#include "stdafx.h"
#include "Renderer.h"
#include "SoundManager.h"
#include "../Core/Console.h"
namespace NES {
class MainWindow
{
private:
static MainWindow *Instance;
HINSTANCE _hInstance;
HWND _hWnd;
int _nCmdShow;
Renderer _renderer;
SoundManager _soundManager;
unique_ptr<Console> _console;
2014-06-21 19:03:13 -04:00
unique_ptr<thread> _emuThread;
bool Initialize();
HRESULT InitWindow();
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
static INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
2014-06-22 08:38:42 -04:00
static MainWindow* GetInstance() { return MainWindow::Instance; }
void SaveTestResult();
void RunTests();
vector<wstring> GetFilesInFolder(wstring folderMask);
2014-06-21 19:03:13 -04:00
void LimitFPS_Click();
bool ToggleMenuCheck(int resourceID);
public:
MainWindow(HINSTANCE hInstance, int nCmdShow) : _hInstance(hInstance), _nCmdShow(nCmdShow)
{
MainWindow::Instance = this;
}
int Run();
void OpenROM();
void Stop();
};
}