diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f661550..214ae48 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,7 +41,7 @@ jobs: - name: Checkout HL2SDK uses: actions/checkout@v7 with: - repository: alliedmodders/hl2sdk + repository: alliedmodders/s2sdk ref: cs2 path: hl2sdk-cs2 diff --git a/src/cleanercs2.cpp b/src/cleanercs2.cpp index 43af433..aad1839 100644 --- a/src/cleanercs2.cpp +++ b/src/cleanercs2.cpp @@ -19,7 +19,9 @@ #include #include "cleanercs2.h" -#include +#include +#include +#include #include "khook.hpp" #include "utils/module.h" #include @@ -48,13 +50,13 @@ IVEngineServer *engine = NULL; IGameEventManager2 *gameevents = NULL; ICvar *icvar = NULL; -typedef int (*LogDirect_t)(void* loggingSystem, int channel, int severity, LeafCodeInfo_t*, char const*, va_list*); +typedef int (*LogDirect_t)(void* loggingSystem, int channel, int severity, LoggingRareOptions_t*, char const*, va_list*); std::vector g_RegexList; std::shared_mutex g_RegexMutex; thread_local bool g_BypassFilter = false; -KHook::Return Detour_LogDirect(void* loggingSystem, int channel, int severity, LeafCodeInfo_t* leafCode, char const* str, va_list* args) +KHook::Return Detour_LogDirect(void* loggingSystem, int channel, int severity, LoggingRareOptions_t* leafCode, char const* str, va_list* args) { if (g_BypassFilter) return {KHook::Action::Ignore}; @@ -81,7 +83,7 @@ KHook::Return Detour_LogDirect(void* loggingSystem, int channel, int severi return {KHook::Action::Ignore}; } -KHook::Function logDirectHook(Detour_LogDirect, nullptr); +KHook::Function logDirectHook(Detour_LogDirect, nullptr); bool SetupHook() { diff --git a/src/utils/module.h b/src/utils/module.h index ff151c6..3c20481 100644 --- a/src/utils/module.h +++ b/src/utils/module.h @@ -20,7 +20,7 @@ #pragma once #include "dbg.h" #include "interface.h" -#include "strtools.h" +#include "tier0_strtools.h" #include "plat.h" #ifdef _WIN32 diff --git a/src/utils/plat_win.cpp b/src/utils/plat_win.cpp index d64b637..769c581 100644 --- a/src/utils/plat_win.cpp +++ b/src/utils/plat_win.cpp @@ -17,6 +17,7 @@ * this program. If not, see . */ +#include "module.h" #include "plat.h" #include "tier0/memdbgon.h" diff --git a/xmake.lua b/xmake.lua index 089ca8b..97656cb 100644 --- a/xmake.lua +++ b/xmake.lua @@ -14,7 +14,7 @@ target("CleanerCS2-Xmake") set_symbols("hidden") add_files({ - SDK_PATH.."/tier1/convar.cpp", + SDK_PATH.."/tier0_perproject/convar.cpp", SDK_PATH.."/public/tier0/memoverride.cpp", })