From 4bb9779abd580d25a63a4959ef1e4564d906b047 Mon Sep 17 00:00:00 2001 From: ThirteenAG Date: Mon, 15 May 2023 16:38:06 +0300 Subject: [PATCH] added WM_USER_GET_EMULATION_STATE message --- Windows/MainWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Windows/MainWindow.cpp b/Windows/MainWindow.cpp index f02d771a7566..b37bcbf48fe7 100644 --- a/Windows/MainWindow.cpp +++ b/Windows/MainWindow.cpp @@ -91,6 +91,7 @@ int verysleepy__useSendMessage = 1; const UINT WM_VERYSLEEPY_MSG = WM_APP + 0x3117; const UINT WM_USER_GET_BASE_POINTER = WM_APP + 0x3118; // 0xB118 +const UINT WM_USER_GET_EMULATION_STATE = WM_APP + 0x3119; // 0xB119 // Respond TRUE to a message with this param value to indicate support. const WPARAM VERYSLEEPY_WPARAM_SUPPORTED = 0; @@ -789,6 +790,9 @@ namespace MainWindow } break; + case WM_USER_GET_EMULATION_STATE: + return (u32)(Core_IsActive() && GetUIState() == UISTATE_INGAME); + // Hack to kill the white line underneath the menubar. // From https://stackoverflow.com/questions/57177310/how-to-paint-over-white-line-between-menu-bar-and-client-area-of-window case WM_NCPAINT: