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.
This commit is contained in:
Jonathan Li 2016-05-27 00:01:23 +01:00
parent d33bdc7da1
commit 4f24d22a68
1 changed files with 3 additions and 0 deletions

View File

@ -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;