Skip to content

Commit

Permalink
Modify the ShowSettingsDialog method in the auto-generated Unpacker p…
Browse files Browse the repository at this point in the history
…lugin from the EditorScript plugin to call the original plugin's ShowSettingsDialog method.
  • Loading branch information
sdottaka committed May 19, 2024
1 parent b4a64f7 commit 5ed0515
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Src/InternalPlugins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ class UnpackerGeneratedFromEditorScript : public WinMergePluginBase
return S_OK;
}

HRESULT STDMETHODCALLTYPE ShowSettingsDialog(VARIANT_BOOL* pbHandled) override
{
*pbHandled = plugin::InvokeShowSettingsDialog(m_pDispatch) ? VARIANT_TRUE : VARIANT_FALSE;
return S_OK;
}

private:
IDispatch* m_pDispatch;
int m_funcid;
Expand Down Expand Up @@ -654,6 +660,12 @@ class EditorScriptGeneratedFromUnpacker: public WinMergePluginBase
return S_OK;
}

HRESULT STDMETHODCALLTYPE ShowSettingsDialog(VARIANT_BOOL* pbHandled) override
{
*pbHandled = plugin::InvokeShowSettingsDialog(m_pDispatch) ? VARIANT_TRUE : VARIANT_FALSE;
return S_OK;
}

private:
bool m_hasArgumentsProperty;
IDispatch* m_pDispatch;
Expand Down

0 comments on commit 5ed0515

Please sign in to comment.