diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-02 00:29:12 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-02 00:29:12 +0000 |
commit | f33bab4fb3586fd06896a7730bce8913c2616b78 (patch) | |
tree | 484bc51055c9ad810fa4bfd1c0b1b0e35ae03096 /NorthstarDedicatedTest/hookutils.cpp | |
parent | ac0c658516d8eaef2c788624f94e974ef47acbb8 (diff) | |
download | NorthstarLauncher-f33bab4fb3586fd06896a7730bce8913c2616b78.tar.gz NorthstarLauncher-f33bab4fb3586fd06896a7730bce8913c2616b78.zip |
tier0 code cleanup and loadlibrary hook fix
Diffstat (limited to 'NorthstarDedicatedTest/hookutils.cpp')
-rw-r--r-- | NorthstarDedicatedTest/hookutils.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/NorthstarDedicatedTest/hookutils.cpp b/NorthstarDedicatedTest/hookutils.cpp index 1623c481..e86c671c 100644 --- a/NorthstarDedicatedTest/hookutils.cpp +++ b/NorthstarDedicatedTest/hookutils.cpp @@ -1,6 +1,5 @@ #include "pch.h" #include "hookutils.h" -#include "tier0.h" #include <iostream> @@ -39,9 +38,9 @@ void HookEnabler::CreateHook(LPVOID ppTarget, LPVOID ppDetour, LPVOID* ppOrigina else { if (targetName != nullptr) - Error("MH_CreateHook failed for function %s", targetName); + spdlog::error("MH_CreateHook failed for function %s", targetName); else - Error("MH_CreateHook failed for unknown function"); + spdlog::error("MH_CreateHook failed for unknown function"); } } @@ -52,9 +51,9 @@ HookEnabler::~HookEnabler() if (MH_EnableHook(hook->targetAddress) != MH_OK) { if (hook->targetName != nullptr) - Error("MH_EnableHook failed for function %s", hook->targetName); + spdlog::error("MH_EnableHook failed for function %s", hook->targetName); else - Error("MH_EnableHook failed for unknown function"); + spdlog::error("MH_EnableHook failed for unknown function"); } else spdlog::info("Enabling hook {}", hook->targetName); |