2012-11-01 15:19:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2013-07-29 04:01:49 +00:00
|
|
|
#include "Common/CommonWindows.h"
|
2013-03-28 19:26:24 +00:00
|
|
|
#include <string>
|
2013-03-29 19:51:14 +00:00
|
|
|
|
|
|
|
#include "Core/System.h"
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
namespace MainWindow
|
|
|
|
{
|
2013-07-28 00:47:06 +00:00
|
|
|
enum {
|
|
|
|
WM_USER_SAVESTATE_FINISH = WM_USER + 100,
|
|
|
|
WM_USER_LOG_STATUS_CHANGED = WM_USER + 200,
|
2013-08-17 11:37:34 +00:00
|
|
|
WM_USER_ATRAC_STATUS_CHANGED = WM_USER + 300,
|
2013-07-28 00:47:06 +00:00
|
|
|
};
|
2013-07-30 07:36:32 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
FRAMESKIP_OFF = 0,
|
2013-08-21 11:44:08 +00:00
|
|
|
FRAMESKIP_AUTO = 1,
|
2013-07-30 07:36:32 +00:00
|
|
|
FRAMESKIP_2 = 2,
|
|
|
|
FRAMESKIP_3 = 3,
|
|
|
|
FRAMESKIP_4 = 4,
|
|
|
|
FRAMESKIP_5 = 5,
|
|
|
|
FRAMESKIP_6 = 6,
|
|
|
|
FRAMESKIP_7 = 7,
|
|
|
|
FRAMESKIP_8 = 8,
|
2013-08-21 11:44:08 +00:00
|
|
|
FRAMESKIP_MAX = FRAMESKIP_8,
|
2013-07-30 07:36:32 +00:00
|
|
|
|
|
|
|
ZOOM_NATIVE = 1,
|
|
|
|
ZOOM_2X = 2,
|
|
|
|
ZOOM_3X = 3,
|
2013-07-30 07:52:05 +00:00
|
|
|
ZOOM_4X = 4,
|
|
|
|
ZOOM_MAX = ZOOM_4X,
|
2013-07-30 07:36:32 +00:00
|
|
|
|
|
|
|
TEXSCALING_OFF = 1,
|
|
|
|
TEXSCALING_2X = 2,
|
|
|
|
TEXSCALING_3X = 3,
|
|
|
|
TEXSCALING_4X = 4,
|
2013-07-30 07:52:05 +00:00
|
|
|
TEXSCALING_5X = 5,
|
|
|
|
TEXSCALING_MAX = TEXSCALING_5X,
|
2013-07-30 07:36:32 +00:00
|
|
|
};
|
|
|
|
|
2012-11-01 15:19:01 +00:00
|
|
|
void Init(HINSTANCE hInstance);
|
|
|
|
BOOL Show(HINSTANCE hInstance, int nCmdShow);
|
2013-08-26 12:19:46 +00:00
|
|
|
void CreateDebugWindows();
|
2012-11-01 15:19:01 +00:00
|
|
|
void Close();
|
|
|
|
void UpdateMenus();
|
2013-05-13 08:08:10 +00:00
|
|
|
void UpdateCommands();
|
2012-11-01 15:19:01 +00:00
|
|
|
void Update();
|
|
|
|
void Redraw();
|
|
|
|
HWND GetHWND();
|
|
|
|
HINSTANCE GetHInstance();
|
|
|
|
HWND GetDisplayHWND();
|
2013-07-23 15:24:33 +00:00
|
|
|
void BrowseAndBoot(std::string defaultPath, bool browseDirectory = false);
|
2013-01-02 20:00:10 +00:00
|
|
|
void SaveStateActionFinished(bool result, void *userdata);
|
2012-12-05 06:32:32 +00:00
|
|
|
void _ViewFullScreen(HWND hWnd);
|
|
|
|
void _ViewNormal(HWND hWnd);
|
2012-11-01 15:19:01 +00:00
|
|
|
}
|