From 4bdb1e1deecf2d13e9af60ebf89c0b7ea775e731 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Tue, 1 Dec 2009 14:32:20 +0000 Subject: [PATCH] Intercept calling the Patch configuration dialog until we actually have one. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2280 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/gui/MainMenuClicks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/gui/MainMenuClicks.cpp b/pcsx2/gui/MainMenuClicks.cpp index 231f692340..49b0fad77c 100644 --- a/pcsx2/gui/MainMenuClicks.cpp +++ b/pcsx2/gui/MainMenuClicks.cpp @@ -266,6 +266,10 @@ void MainEmuFrame::Menu_ConfigPlugin_Click(wxCommandEvent &event) const int eventId = event.GetId() - MenuId_PluginBase_Settings; PluginsEnum_t pid = (PluginsEnum_t)(eventId / PluginMenuId_Interval); + + // Don't try to call the Patches config dialog until we write one. + if (event.GetId() == MenuId_Config_Patches) return; + if( !pxAssertDev( (eventId >= 0) || (pid < PluginId_Count), "Invalid plugin identifier passed to ConfigPlugin event handler." ) ) return; LoadPluginsImmediate();