2012-11-01 15:19:01 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-02-24 23:25:46 +00:00
|
|
|
#include "ppsspp_config.h"
|
|
|
|
|
|
|
|
#if !PPSSPP_PLATFORM(UWP)
|
|
|
|
|
2013-07-29 04:01:49 +00:00
|
|
|
#include "Common/CommonWindows.h"
|
2013-03-29 19:51:14 +00:00
|
|
|
|
|
|
|
#include "Core/System.h"
|
2015-09-19 12:43:50 +00:00
|
|
|
#include "MainWindowMenu.h"
|
2012-11-01 15:19:01 +00:00
|
|
|
|
2017-02-24 23:25:46 +00:00
|
|
|
|
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,
|
2013-10-13 18:14:28 +00:00
|
|
|
WM_USER_UPDATE_UI = WM_USER + 101,
|
|
|
|
WM_USER_WINDOW_TITLE_CHANGED = WM_USER + 103,
|
2015-02-15 22:07:24 +00:00
|
|
|
WM_USER_TOGGLE_FULLSCREEN = WM_USER + 105,
|
2017-04-15 23:33:30 +00:00
|
|
|
WM_USER_RESTART_EMUTHREAD = WM_USER + 106,
|
2024-04-06 10:14:29 +00:00
|
|
|
WM_USER_SWITCHUMD_UPDATED = WM_USER + 107,
|
|
|
|
WM_USER_RUN_CALLBACK = WM_USER + 108,
|
2013-07-28 00:47:06 +00:00
|
|
|
};
|
2013-07-30 07:36:32 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
FRAMESKIP_OFF = 0,
|
2014-01-25 16:41:39 +00:00
|
|
|
FRAMESKIP_1 = 1,
|
|
|
|
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
|
|
|
|
2018-11-04 01:59:37 +00:00
|
|
|
FRAMESKIPTYPE_COUNT = 0,
|
|
|
|
FRAMESKIPTYPE_PRCNT = 1,
|
2018-11-03 01:33:41 +00:00
|
|
|
|
2013-09-20 01:18:26 +00:00
|
|
|
RESOLUTION_AUTO = 0,
|
|
|
|
RESOLUTION_NATIVE = 1,
|
|
|
|
RESOLUTION_2X = 2,
|
|
|
|
RESOLUTION_3X = 3,
|
|
|
|
RESOLUTION_4X = 4,
|
|
|
|
RESOLUTION_5X = 5,
|
|
|
|
RESOLUTION_6X = 6,
|
|
|
|
RESOLUTION_7X = 7,
|
|
|
|
RESOLUTION_8X = 8,
|
|
|
|
RESOLUTION_9X = 9,
|
|
|
|
RESOLUTION_MAX = 10,
|
2013-10-11 06:49:45 +00:00
|
|
|
|
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);
|
2014-07-17 04:06:52 +00:00
|
|
|
BOOL Show(HINSTANCE hInstance);
|
2021-11-13 21:10:37 +00:00
|
|
|
void CreateDisasmWindow();
|
|
|
|
void CreateGeDebuggerWindow();
|
|
|
|
void CreateMemoryWindow();
|
2021-11-13 21:24:30 +00:00
|
|
|
void CreateVFPUWindow();
|
2021-12-31 17:10:40 +00:00
|
|
|
void NotifyDebuggerMapLoaded();
|
2014-02-15 05:17:36 +00:00
|
|
|
void DestroyDebugWindows();
|
2017-04-05 03:33:22 +00:00
|
|
|
void UpdateMenus(bool isMenuSelect = false);
|
2013-05-13 08:08:10 +00:00
|
|
|
void UpdateCommands();
|
2020-10-22 09:14:35 +00:00
|
|
|
void UpdateSwitchUMD();
|
2013-09-13 19:17:55 +00:00
|
|
|
void SetWindowTitle(const wchar_t *title);
|
2012-11-01 15:19:01 +00:00
|
|
|
void Redraw();
|
|
|
|
HWND GetHWND();
|
|
|
|
HINSTANCE GetHInstance();
|
2014-06-29 20:13:53 +00:00
|
|
|
HWND GetDisplayHWND();
|
2014-07-17 03:50:46 +00:00
|
|
|
void ToggleFullscreen(HWND hWnd, bool goingFullscreen);
|
2015-12-26 03:18:32 +00:00
|
|
|
void Minimize();
|
2015-09-20 21:57:24 +00:00
|
|
|
void SendToggleFullscreen(bool fullscreen); // To be used off-thread
|
2021-01-09 22:17:41 +00:00
|
|
|
bool IsFullscreen();
|
2013-10-13 18:25:59 +00:00
|
|
|
void ToggleDebugConsoleVisibility();
|
2015-09-19 11:11:06 +00:00
|
|
|
void SetInternalResolution(int res = -1);
|
|
|
|
void SetWindowSize(int zoom);
|
2024-04-06 10:14:29 +00:00
|
|
|
void RunCallbackInWndProc(void (*callback)(void *window, void *userdata), void *userdata);
|
2024-05-20 12:03:54 +00:00
|
|
|
void SetKeepScreenBright(bool keepBright);
|
2012-11-01 15:19:01 +00:00
|
|
|
}
|
2017-02-24 23:25:46 +00:00
|
|
|
|
2017-04-02 17:50:09 +00:00
|
|
|
#endif
|