mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
a34c09fe01
commit
4bdb1e1dee
|
@ -266,6 +266,10 @@ void MainEmuFrame::Menu_ConfigPlugin_Click(wxCommandEvent &event)
|
||||||
const int eventId = event.GetId() - MenuId_PluginBase_Settings;
|
const int eventId = event.GetId() - MenuId_PluginBase_Settings;
|
||||||
|
|
||||||
PluginsEnum_t pid = (PluginsEnum_t)(eventId / PluginMenuId_Interval);
|
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;
|
if( !pxAssertDev( (eventId >= 0) || (pid < PluginId_Count), "Invalid plugin identifier passed to ConfigPlugin event handler." ) ) return;
|
||||||
|
|
||||||
LoadPluginsImmediate();
|
LoadPluginsImmediate();
|
||||||
|
|
Loading…
Reference in New Issue