This commit is contained in:
quaK 2022-10-18 07:39:24 +03:00
parent b131b28075
commit 9e156f95ce
2 changed files with 0 additions and 29 deletions

View File

@ -81,16 +81,6 @@ namespace dedicated
} }
} }
DWORD __stdcall wait_for_single_object_stub(HANDLE handle, DWORD ms)
{
if (handle == *reinterpret_cast<HANDLE*>(0x8B1BC98_b))
{
return 0;
}
return WaitForSingleObject(handle, ms);
}
void initialize() void initialize()
{ {
command::execute("onlinegame 1", true); command::execute("onlinegame 1", true);
@ -100,19 +90,6 @@ namespace dedicated
class component final : public component_interface class component final : public component_interface
{ {
public: 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 void post_unpack() override
{ {
if (!game::environment::is_dedi()) if (!game::environment::is_dedi())
@ -236,9 +213,6 @@ namespace dedicated
// image stream (pak) // image stream (pak)
utils::hook::set<uint8_t>(0xA7DB10_b, 0xC3); // DB_CreateGfxImageStreamInternal utils::hook::set<uint8_t>(0xA7DB10_b, 0xC3); // DB_CreateGfxImageStreamInternal
// sound stream (sabl, sabs)
//utils::hook::nop(0xCFDC03_b, 2);
// set game mode // set game mode
scheduler::once([]() scheduler::once([]()
{ {

View File

@ -26,11 +26,8 @@ namespace dvars
game::dvar_t* r_fullbright = nullptr; game::dvar_t* r_fullbright = nullptr;
game::dvar_t* bg_bounces = nullptr; game::dvar_t* bg_bounces = nullptr;
game::dvar_t* bg_gravity = nullptr;
game::dvar_t* bg_playerEjection = 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) std::string dvar_get_vector_domain(const int components, const game::DvarLimits& domain)
{ {
if (domain.vector.min == -FLT_MAX) if (domain.vector.min == -FLT_MAX)