diff --git a/Core/Config.cpp b/Core/Config.cpp index 6740b8b3ac34..c0822f9ad0d7 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -849,6 +849,7 @@ static ConfigSetting systemParamSettings[] = { ConfigSetting("WlanAdhocChannel", &g_Config.iWlanAdhocChannel, PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC, true, true), #if defined(USING_WIN_UI) ConfigSetting("BypassOSKWithKeyboard", &g_Config.bBypassOSKWithKeyboard, false, true, true), + ConfigSetting("DisableWinMenu", &g_Config.bDisableWinMenu, false, true, true), #endif ConfigSetting("WlanPowerSave", &g_Config.bWlanPowerSave, (bool) PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF, true, true), ReportedConfigSetting("EncryptSave", &g_Config.bEncryptSave, true, true, true), diff --git a/Core/Config.h b/Core/Config.h index 9936d84a2a1e..8aa54bc3ad7c 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -380,6 +380,7 @@ struct Config { // TODO: Make this work with your platform, too! #if defined(USING_WIN_UI) bool bBypassOSKWithKeyboard; + bool bDisableWinMenu; #endif // Debugger diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 559fb6e7f718..a72543368a28 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -1500,6 +1500,7 @@ void OtherSettingsScreen::CreateViews() { list->Add(new CheckBox(&g_Config.bSimpleFrameStats, gr->T("Display simple frame stats(heavy!)"))); list->Add(new CheckBox(&g_Config.bSavestateScreenshotResLimit, gr->T("Limit resolution of savestates screenshots"))); list->Add(new CheckBox(&g_Config.bDiscordPresence, n->T("Send Discord(3rd party software) Presence information"))); + list->Add(new CheckBox(&g_Config.bDisableWinMenu, n->T("Disable Windows menu bar"))); } void OtherSettingsScreen::onFinish(DialogResult result) { diff --git a/Windows/MainWindow.cpp b/Windows/MainWindow.cpp index 9cf3eedfd3bd..09555849a4b8 100644 --- a/Windows/MainWindow.cpp +++ b/Windows/MainWindow.cpp @@ -372,6 +372,9 @@ namespace MainWindow if (graphicsContext) { graphicsContext->Resume(); } + + if (g_Config.bDisableWinMenu) + SetMenu(hwndMain, NULL); } void Minimize() { @@ -503,6 +506,9 @@ namespace MainWindow WindowsRawInput::Init(); + if (g_Config.bDisableWinMenu) + SetMenu(hwndMain, NULL); + SetFocus(hwndMain); return TRUE;