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
This commit is contained in:
arcum42 2009-12-01 14:32:20 +00:00
parent a34c09fe01
commit 4bdb1e1dee
1 changed files with 4 additions and 0 deletions

View File

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