Skip to content

Commit

Permalink
small stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Joelrau committed Jul 13, 2024
1 parent 9191b6a commit 6ab1e4f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/client/component/arxan/arxan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ namespace arxan

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)
{
auto* orig = static_cast<decltype(NtClose)*>(nt_close_hook.get_original());
Expand Down Expand Up @@ -429,7 +429,7 @@ namespace arxan
fake_record.ExceptionAddress = reinterpret_cast<void*>(reinterpret_cast<std::uint64_t>(address) + 3);
fake_record.ExceptionCode = exception;

for (auto handler : handle_handler)
for (auto& handler : handle_handler)
{
if (handler.second)
{
Expand Down
7 changes: 1 addition & 6 deletions src/client/component/ranked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace ranked
{
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)
utils::hook::set(0x140C50BC0, 0xC300B0);
Expand All @@ -29,11 +29,6 @@ namespace ranked
dvars::override::register_bool("xblive_privatematch", true, game::DVAR_FLAG_REPLICATED);
}
}

component_priority priority() override
{
return component_priority::ranked;
}
};
}

Expand Down
4 changes: 2 additions & 2 deletions src/client/component/updater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@ namespace updater
run_update();
}

void post_unpack() override
component_priority priority() override
{

return component_priority::updater;
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/client/loader/component_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ enum class component_priority
{
min = 0,
dvars,
ranked,
steam_proxy,
arxan,
updater,
};

class component_interface
Expand Down

0 comments on commit 6ab1e4f

Please sign in to comment.