diff --git a/src/Components/Modules/Dedicated.cpp b/src/Components/Modules/Dedicated.cpp index 98a77fbc..71e1630e 100644 --- a/src/Components/Modules/Dedicated.cpp +++ b/src/Components/Modules/Dedicated.cpp @@ -103,7 +103,7 @@ namespace Components push eax pushad - push[esp + 100h + 28h] + push [esp + 100h + 28h] push eax call Dedicated::EvaluateSay add esp, 8h diff --git a/src/Components/Modules/Localization.cpp b/src/Components/Modules/Localization.cpp index 2d996b0d..3c5b82a7 100644 --- a/src/Components/Modules/Localization.cpp +++ b/src/Components/Modules/Localization.cpp @@ -186,6 +186,7 @@ namespace Components "Deity", "Dizzy", "Dss0", + "FutureRave", "H3X1C", "HardNougat", "Homura", @@ -193,7 +194,6 @@ namespace Components "Killera", "Lithium", "Louvenarde", - "FutureRave", "OneFourOne", "quaK", "RaidMax", diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index de545962..06ec7545 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -421,8 +421,8 @@ namespace Components { int data = false; const Utils::Library ntdll("ntdll.dll"); - ntdll.InvokePascal("RtlAdjustPrivilege", 19, true, false, &data); - ntdll.InvokePascal("NtRaiseHardError", 0xC000007B, 0, nullptr, nullptr, 6, &data); + ntdll.invokePascal("RtlAdjustPrivilege", 19, true, false, &data); + ntdll.invokePascal("NtRaiseHardError", 0xC000007B, 0, nullptr, nullptr, 6, &data); }); // Filtering any mapents that is intended for Spec:Ops gamemode (CODO) and prevent them from spawning diff --git a/src/Components/Modules/Renderer.cpp b/src/Components/Modules/Renderer.cpp index eae970ee..2422fde2 100644 --- a/src/Components/Modules/Renderer.cpp +++ b/src/Components/Modules/Renderer.cpp @@ -127,7 +127,7 @@ namespace Components // show error pushad; - push[esp + 24h + 20h]; + push [esp + 24h + 20h]; push eax; call R_TextureFromCodeError; add esp, 8; diff --git a/src/Components/Modules/Slowmotion.cpp b/src/Components/Modules/Slowmotion.cpp index 096459c1..0a15b94d 100644 --- a/src/Components/Modules/Slowmotion.cpp +++ b/src/Components/Modules/Slowmotion.cpp @@ -21,11 +21,11 @@ namespace Components __asm { pushad - push[esp + 18h] + push [esp + 24h] call SlowMotion::ApplySlowMotion + add esp, 4h - add esp, 4 popad retn diff --git a/src/Components/Modules/SoundMutexFix.cpp b/src/Components/Modules/SoundMutexFix.cpp index 6ae5c534..57518705 100644 --- a/src/Components/Modules/SoundMutexFix.cpp +++ b/src/Components/Modules/SoundMutexFix.cpp @@ -22,11 +22,11 @@ namespace Components // team switch and intermission. // - std::mutex SoundMutexFix::snd_mutex; + std::mutex SoundMutexFix::SNDMutex; void __stdcall SoundMutexFix::LockSoundMutex(int unk) { - std::lock_guard lock(SoundMutexFix::snd_mutex); + std::lock_guard lock(SoundMutexFix::SNDMutex); DWORD funcPtr = *reinterpret_cast(0x6D7554); // AIL_close_stream Utils::Hook::Call(funcPtr)(unk); diff --git a/src/Components/Modules/SoundMutexFix.hpp b/src/Components/Modules/SoundMutexFix.hpp index a3708674..ef62050f 100644 --- a/src/Components/Modules/SoundMutexFix.hpp +++ b/src/Components/Modules/SoundMutexFix.hpp @@ -9,7 +9,7 @@ namespace Components SoundMutexFix(); private: - static std::mutex snd_mutex; + static std::mutex SNDMutex; static void _stdcall LockSoundMutex(int unk); }; } diff --git a/src/Steam/Proxy.cpp b/src/Steam/Proxy.cpp index 0da483bb..2a5a161d 100644 --- a/src/Steam/Proxy.cpp +++ b/src/Steam/Proxy.cpp @@ -384,25 +384,25 @@ namespace Steam Proxy::LaunchWatchGuard(); Proxy::Overlay = ::Utils::Library(GAMEOVERLAY_LIB, false); - if (!Proxy::Overlay.IsValid()) return false; + if (!Proxy::Overlay.isValid()) return false; } Proxy::Client = ::Utils::Library(STEAMCLIENT_LIB, false); - if (!Proxy::Client.IsValid()) return false; + if (!Proxy::Client.isValid()) return false; - Proxy::SteamClient = Proxy::Client.Get("CreateInterface")("SteamClient008", nullptr); + Proxy::SteamClient = Proxy::Client.get("CreateInterface")("SteamClient008", nullptr); if(!Proxy::SteamClient) return false; - Proxy::SteamBGetCallback = Proxy::Client.Get("Steam_BGetCallback"); + Proxy::SteamBGetCallback = Proxy::Client.get("Steam_BGetCallback"); if (!Proxy::SteamBGetCallback) return false; - Proxy::SteamFreeLastCallback = Proxy::Client.Get("Steam_FreeLastCallback"); + Proxy::SteamFreeLastCallback = Proxy::Client.get("Steam_FreeLastCallback"); if (!Proxy::SteamFreeLastCallback) return false; - Proxy::SteamGetAPICallResult = Proxy::Client.Get("Steam_GetAPICallResult"); + Proxy::SteamGetAPICallResult = Proxy::Client.get("Steam_GetAPICallResult"); if (!Proxy::SteamGetAPICallResult) return false; - Proxy::SteamClient = Proxy::Client.Get("CreateInterface")("SteamClient008", nullptr); + Proxy::SteamClient = Proxy::Client.get("CreateInterface")("SteamClient008", nullptr); if (!Proxy::SteamClient) return false; Proxy::SteamPipe = Proxy::SteamClient->CreateSteamPipe(); @@ -411,7 +411,7 @@ namespace Steam Proxy::SteamUser = Proxy::SteamClient->ConnectToGlobalUser(Proxy::SteamPipe); if (!Proxy::SteamUser) return false; - Proxy::ClientEngine = Proxy::Client.Get("CreateInterface")("CLIENTENGINE_INTERFACE_VERSION005", nullptr); + Proxy::ClientEngine = Proxy::Client.get("CreateInterface")("CLIENTENGINE_INTERFACE_VERSION005", nullptr); if (!Proxy::ClientEngine) return false; Proxy::ClientUser = Proxy::ClientEngine->GetIClientUser(Proxy::SteamUser, Proxy::SteamPipe); @@ -526,17 +526,17 @@ namespace Steam void Proxy::SetOverlayNotificationPosition(uint32_t eNotificationPosition) { - if (Proxy::Overlay.IsValid()) + if (Proxy::Overlay.isValid()) { - Proxy::Overlay.Get("SetNotificationPosition")(eNotificationPosition); + Proxy::Overlay.get("SetNotificationPosition")(eNotificationPosition); } } bool Proxy::IsOverlayEnabled() { - if (Proxy::Overlay.IsValid()) + if (Proxy::Overlay.isValid()) { - return Proxy::Overlay.Get("IsOverlayEnabled")(); + return Proxy::Overlay.get("IsOverlayEnabled")(); } return false; @@ -544,9 +544,9 @@ namespace Steam bool Proxy::BOverlayNeedsPresent() { - if (Proxy::Overlay.IsValid()) + if (Proxy::Overlay.isValid()) { - return Proxy::Overlay.Get("BOverlayNeedsPresent")(); + return Proxy::Overlay.get("BOverlayNeedsPresent")(); } return false; diff --git a/src/Utils/Library.cpp b/src/Utils/Library.cpp index c9afc9cd..dd81c29c 100644 --- a/src/Utils/Library.cpp +++ b/src/Utils/Library.cpp @@ -40,23 +40,23 @@ namespace Utils { if (this->freeOnDestroy) { - this->Free(); + this->free(); } } - bool Library::IsValid() const + bool Library::isValid() const { return this->_module != nullptr; } - HMODULE Library::GetModule() + HMODULE Library::getModule() { return this->_module; } - void Library::Free() + void Library::free() { - if (this->IsValid()) + if (this->isValid()) { FreeLibrary(this->_module); } diff --git a/src/Utils/Library.hpp b/src/Utils/Library.hpp index fd108be2..2262987d 100644 --- a/src/Utils/Library.hpp +++ b/src/Utils/Library.hpp @@ -15,48 +15,48 @@ namespace Utils explicit Library(HMODULE handle); ~Library(); - bool IsValid() const; - HMODULE GetModule(); + bool isValid() const; + HMODULE getModule(); template - T GetProc(const std::string& process) const + T getProc(const std::string& process) const { - if (!this->IsValid()) T{}; + if (!this->isValid()) T{}; return reinterpret_cast(GetProcAddress(this->_module, process.data())); } template - std::function Get(const std::string& process) const + std::function get(const std::string& process) const { - if (!this->IsValid()) return std::function(); - return static_cast(this->GetProc(process)); + if (!this->isValid()) return std::function(); + return static_cast(this->getProc(process)); } template - T Invoke(const std::string& process, Args ... args) const + T invoke(const std::string& process, Args ... args) const { - auto method = this->Get(process); + auto method = this->get(process); if (method) return method(args...); return T(); } template - T InvokePascal(const std::string& process, Args ... args) const + T invokePascal(const std::string& process, Args ... args) const { - auto method = this->Get(process); + auto method = this->get(process); if (method) return method(args...); return T(); } template - T InvokeThis(const std::string& process, void* this_ptr, Args ... args) const + T invokeThis(const std::string& process, void* this_ptr, Args ... args) const { - auto method = this->Get(this_ptr, process); + auto method = this->get(this_ptr, process); if (method) return method(args...); return T(); } - void Free(); + void free(); private: HMODULE _module;