From 4f24d22a68e209727fb8eaae31f87580e5956fbe Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Fri, 27 May 2016 00:01:23 +0100 Subject: [PATCH] lilypad: Disable close hacks when loaded by PCSX2 The close hacks don't work with PCSX2 - the WM_CLOSE message can't actually be triggered for the rendering window. The hacks were also designed as a workaround for some PSX emulator close window bugs, which don't affect us. --- plugins/LilyPad/Config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/LilyPad/Config.cpp b/plugins/LilyPad/Config.cpp index d92739ada4..cc5af9ef73 100644 --- a/plugins/LilyPad/Config.cpp +++ b/plugins/LilyPad/Config.cpp @@ -43,6 +43,7 @@ void PCSX2_overrideConfig(GeneralConfig& config_in_out) { config_in_out.disableScreenSaver = 0; // Not required - handled internally by PCSX2 config_in_out.escapeFullscreenHack = 0; // Not required - handled internally by PCSX2 config_in_out.saveStateTitle = 0; // Not required - handled internally by PCSX2 + config_in_out.closeHacks = 0; // Cannot function when used by PCSX2 } // Dialog widgets which should be disabled - mostly matching PCSX2_overrideConfig @@ -52,6 +53,8 @@ const UINT* PCSX2_disabledWidgets() { IDC_ESCAPE_FULLSCREEN_HACK, IDC_SAVE_STATE_TITLE, IDC_ANALOG_START1, // start in analog mode - only useful for PS1 + IDC_CLOSE_HACK1, + IDC_CLOSE_HACK2, 0 }; return disabledWidgets;