Skip to content

Commit

Permalink
1.Expose ServerBrowser_KeyValues hook to VGUI2Extension.
Browse files Browse the repository at this point in the history
2.Add hook transaction on DllLoadNotification callbacks.
  • Loading branch information
hzqst committed Feb 1, 2024
1 parent def6a68 commit bc3a5e3
Show file tree
Hide file tree
Showing 12 changed files with 477 additions and 137 deletions.
6 changes: 3 additions & 3 deletions Plugins/VGUI2Extension/BaseUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void CBaseUIProxy::Shutdown(void)
vgui::ivgui()->RunFrame();

VGUI2ExtensionInternal()->ClientVGUI_Shutdown();

GameUI_UninstallHooks();

//GameUI.dll and vgui2.dll will be unloaded by engine!CBaseUI::Shutdown
Expand Down Expand Up @@ -499,7 +499,7 @@ void CBaseUILegacyProxy::ShowConsole(void)
VGUI2ExtensionInternal()->BaseUI_ShowConsole(&CallbackContext);
}

void BaseUI_InstallHook(void)
void BaseUI_InstallHooks(void)
{
CreateInterfaceFn fnCreateInterface = g_pMetaHookAPI->GetEngineFactory();

Expand Down Expand Up @@ -572,7 +572,7 @@ void BaseUI_InstallHook(void)
Install_InlineHook(EngineVGUI2_Panel_Init);
}

void BaseUI_UninstallHook(void)
void BaseUI_UninstallHooks(void)
{
Uninstall_Hook(EngineVGUI2_Panel_Init);
}
Loading

0 comments on commit bc3a5e3

Please sign in to comment.