diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-10-04 00:09:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-04 00:09:44 +0200 |
commit | dc0934d29caacc8da1e7df8b775d24b4e99c381c (patch) | |
tree | 9cc4bc7fb9ffc441e47ea3c13b1fcac4c5244c9c /NorthstarDLL/exploitfixes.cpp | |
parent | c3b61514eeaebe0d6e592437081f10d2f757cba1 (diff) | |
download | NorthstarLauncher-dc0934d29caacc8da1e7df8b775d24b4e99c381c.tar.gz NorthstarLauncher-dc0934d29caacc8da1e7df8b775d24b4e99c381c.zip |
Clear token when not needed anymore (#282)
Also blocks migrateme
Diffstat (limited to 'NorthstarDLL/exploitfixes.cpp')
-rw-r--r-- | NorthstarDLL/exploitfixes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/exploitfixes.cpp b/NorthstarDLL/exploitfixes.cpp index aa5adae3..0aa0a3bf 100644 --- a/NorthstarDLL/exploitfixes.cpp +++ b/NorthstarDLL/exploitfixes.cpp @@ -548,6 +548,8 @@ void ExploitFixes::LoadCallback_Full(HMODULE baseAddress) ns_exploitfixes_log = new ConVar("ns_exploitfixes_log", "1", FCVAR_GAMEDLL, "Whether to log whenever exploitfixes.cpp blocks/corrects something"); + g_pCVar->FindCommand("migrateme")->m_nFlags &= ~FCVAR_SERVER_CAN_EXECUTE; + HookEnabler hook; ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x2a8a50, &GetEntByIndexHook, reinterpret_cast<LPVOID*>(&GetEntByIndex)); } |