diff options
author | Northstar <northstar@northstar.tf> | 2022-02-03 22:09:08 -0300 |
---|---|---|
committer | Barichello <artur@barichello.me> | 2022-02-03 22:09:08 -0300 |
commit | 75bf194b2fca06de805a7bc025c6dd8379250fa5 (patch) | |
tree | c9327ac7921ae80bb2d91381bb7db11b47ca2403 /NorthstarDedicatedTest/securitypatches.cpp | |
parent | e9f93ba2e8b9df280aed20131a1606d731d2dbbe (diff) | |
download | NorthstarLauncher-75bf194b2fca06de805a7bc025c6dd8379250fa5.tar.gz NorthstarLauncher-75bf194b2fca06de805a7bc025c6dd8379250fa5.zip |
Format project
Diffstat (limited to 'NorthstarDedicatedTest/securitypatches.cpp')
-rw-r--r-- | NorthstarDedicatedTest/securitypatches.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/securitypatches.cpp b/NorthstarDedicatedTest/securitypatches.cpp index 3664e96a..3531ffa5 100644 --- a/NorthstarDedicatedTest/securitypatches.cpp +++ b/NorthstarDedicatedTest/securitypatches.cpp @@ -5,7 +5,7 @@ #include "dedicated.h" #include "gameutils.h" -typedef bool(*IsValveModType)(); +typedef bool (*IsValveModType)(); IsValveModType IsValveMod; bool IsValveModHook() @@ -25,7 +25,7 @@ void InitialiseClientEngineSecurityPatches(HMODULE baseAddress) // note: this could break some things ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x1C6360, &IsValveModHook, reinterpret_cast<LPVOID*>(&IsValveMod)); - + // patches to make commands run from client/ui script still work // note: this is likely preventable in a nicer way? test prolly { @@ -49,7 +49,7 @@ void InitialiseClientEngineSecurityPatches(HMODULE baseAddress) // disconnect concommand void* ptr = (char*)baseAddress + 0x5ADA2D; TempReadWrite rw(ptr); - + *((int*)ptr) |= FCVAR_SERVER_CAN_EXECUTE; } }
\ No newline at end of file |