diff --git a/src/client/component/dedicated.cpp b/src/client/component/dedicated.cpp index 0590ecee..49886ad9 100644 --- a/src/client/component/dedicated.cpp +++ b/src/client/component/dedicated.cpp @@ -81,16 +81,6 @@ namespace dedicated } } - DWORD __stdcall wait_for_single_object_stub(HANDLE handle, DWORD ms) - { - if (handle == *reinterpret_cast(0x8B1BC98_b)) - { - return 0; - } - - return WaitForSingleObject(handle, ms); - } - void initialize() { command::execute("onlinegame 1", true); @@ -100,19 +90,6 @@ namespace dedicated class component final : public component_interface { public: - void* load_import(const std::string& library, const std::string& function) override - { - if (game::environment::is_dedi()) - { - if (function == "WaitForSingleObject") - { - // return wait_for_single_object_stub; - } - } - - return nullptr; - } - void post_unpack() override { if (!game::environment::is_dedi()) @@ -236,9 +213,6 @@ namespace dedicated // image stream (pak) utils::hook::set(0xA7DB10_b, 0xC3); // DB_CreateGfxImageStreamInternal - // sound stream (sabl, sabs) - //utils::hook::nop(0xCFDC03_b, 2); - // set game mode scheduler::once([]() { diff --git a/src/client/game/dvars.cpp b/src/client/game/dvars.cpp index 621f201a..95812f34 100644 --- a/src/client/game/dvars.cpp +++ b/src/client/game/dvars.cpp @@ -26,11 +26,8 @@ namespace dvars game::dvar_t* r_fullbright = nullptr; game::dvar_t* bg_bounces = nullptr; - game::dvar_t* bg_gravity = nullptr; game::dvar_t* bg_playerEjection = nullptr; - game::dvar_t* g_speed = nullptr; - std::string dvar_get_vector_domain(const int components, const game::DvarLimits& domain) { if (domain.vector.min == -FLT_MAX)