diff --git a/src/client/game/game.cpp b/src/client/game/game.cpp index 95fb0793..9045761b 100644 --- a/src/client/game/game.cpp +++ b/src/client/game/game.cpp @@ -3,14 +3,6 @@ namespace game { - uint64_t base_address; - - void load_base_address() - { - const auto module = GetModuleHandle(NULL); - base_address = uint64_t(module); - } - int Cmd_Argc() { return cmd_args->argc[cmd_args->nesting]; @@ -110,8 +102,3 @@ namespace game } } } - -uintptr_t operator"" _b(const uintptr_t ptr) -{ - return game::base_address + ptr; -} \ No newline at end of file diff --git a/src/client/game/game.hpp b/src/client/game/game.hpp index 0442fece..47041ca9 100644 --- a/src/client/game/game.hpp +++ b/src/client/game/game.hpp @@ -9,9 +9,6 @@ namespace game { - extern uint64_t base_address; - void load_base_address(); - namespace environment { launcher::mode get_mode(); @@ -40,10 +37,10 @@ namespace game { if (environment::is_sp()) { - return reinterpret_cast((uint64_t)sp_object_ + base_address); + return sp_object_; } - return reinterpret_cast((uint64_t)mp_object_ + base_address); + return mp_object_; } operator T* () const @@ -70,6 +67,4 @@ namespace game bool VirtualLobby_Loaded(); } -uintptr_t operator"" _b(const uintptr_t ptr); - #include "symbols.hpp"