Skip to content

Commit

Permalink
Post merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
3vcloud committed Dec 17, 2024
1 parent 4c9679f commit ee4c213
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/ExamplePlugin/ExamplePlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace {
bool redirect_slash_ee_to_eee = false;
GW::HookEntry ChatCmd_HookEntry;
}

DLLAPI ToolboxPlugin* ToolboxPluginInstance()
Expand Down Expand Up @@ -47,13 +48,13 @@ void EeCmd(GW::HookStatus*, const wchar_t*, const int, const LPWSTR*)
void ExamplePlugin::Initialize(ImGuiContext* ctx, const ImGuiAllocFns allocator_fns, const HMODULE toolbox_dll)
{
ToolboxUIPlugin::Initialize(ctx, allocator_fns, toolbox_dll);
GW::Chat::CreateCommand(L"ee", EeCmd);
GW::Chat::CreateCommand(&ChatCmd_HookEntry, L"ee", EeCmd);
}

void ExamplePlugin::SignalTerminate()
{
ToolboxUIPlugin::SignalTerminate();
GW::Chat::DeleteCommand(L"ee", EeCmd);
GW::Chat::DeleteCommand(&ChatCmd_HookEntry);
}

bool ExamplePlugin::CanTerminate() {
Expand Down

0 comments on commit ee4c213

Please sign in to comment.