small stuff
This commit is contained in:
parent
9191b6a436
commit
6ab1e4f7d4
@ -298,7 +298,7 @@ namespace arxan
|
|||||||
|
|
||||||
NTSTATUS NTAPI nt_close_stub(const HANDLE handle)
|
NTSTATUS NTAPI nt_close_stub(const HANDLE handle)
|
||||||
{
|
{
|
||||||
char info[16];
|
char info[16]{};
|
||||||
if (NtQueryObject(handle, OBJECT_INFORMATION_CLASS(4), &info, 2, nullptr) >= 0 && size_t(handle) != 0x12345)
|
if (NtQueryObject(handle, OBJECT_INFORMATION_CLASS(4), &info, 2, nullptr) >= 0 && size_t(handle) != 0x12345)
|
||||||
{
|
{
|
||||||
auto* orig = static_cast<decltype(NtClose)*>(nt_close_hook.get_original());
|
auto* orig = static_cast<decltype(NtClose)*>(nt_close_hook.get_original());
|
||||||
@ -429,7 +429,7 @@ namespace arxan
|
|||||||
fake_record.ExceptionAddress = reinterpret_cast<void*>(reinterpret_cast<std::uint64_t>(address) + 3);
|
fake_record.ExceptionAddress = reinterpret_cast<void*>(reinterpret_cast<std::uint64_t>(address) + 3);
|
||||||
fake_record.ExceptionCode = exception;
|
fake_record.ExceptionCode = exception;
|
||||||
|
|
||||||
for (auto handler : handle_handler)
|
for (auto& handler : handle_handler)
|
||||||
{
|
{
|
||||||
if (handler.second)
|
if (handler.second)
|
||||||
{
|
{
|
||||||
|
@ -19,7 +19,7 @@ namespace ranked
|
|||||||
{
|
{
|
||||||
dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED | game::DVAR_FLAG_WRITE);
|
dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED | game::DVAR_FLAG_WRITE);
|
||||||
|
|
||||||
game::Dvar_RegisterBool("onlinegame", true, game::DVAR_FLAG_READ, "Current game is an online game with stats, custom classes, unlocks");
|
dvars::override::register_bool("onlinegame", true, game::DVAR_FLAG_READ);
|
||||||
|
|
||||||
// Fix sessionteam always returning none (SV_ClientMP_HasAssignedTeam_Internal)
|
// Fix sessionteam always returning none (SV_ClientMP_HasAssignedTeam_Internal)
|
||||||
utils::hook::set(0x140C50BC0, 0xC300B0);
|
utils::hook::set(0x140C50BC0, 0xC300B0);
|
||||||
@ -29,11 +29,6 @@ namespace ranked
|
|||||||
dvars::override::register_bool("xblive_privatematch", true, game::DVAR_FLAG_REPLICATED);
|
dvars::override::register_bool("xblive_privatematch", true, game::DVAR_FLAG_REPLICATED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
component_priority priority() override
|
|
||||||
{
|
|
||||||
return component_priority::ranked;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -424,9 +424,9 @@ namespace updater
|
|||||||
run_update();
|
run_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void post_unpack() override
|
component_priority priority() override
|
||||||
{
|
{
|
||||||
|
return component_priority::updater;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,9 @@ enum class component_priority
|
|||||||
{
|
{
|
||||||
min = 0,
|
min = 0,
|
||||||
dvars,
|
dvars,
|
||||||
ranked,
|
|
||||||
steam_proxy,
|
steam_proxy,
|
||||||
arxan,
|
arxan,
|
||||||
|
updater,
|
||||||
};
|
};
|
||||||
|
|
||||||
class component_interface
|
class component_interface
|
||||||
|
Loading…
Reference in New Issue
Block a user