Skip to content

Commit

Permalink
Renamed disabled steam offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Rex109 committed Jul 27, 2024
1 parent fccdba8 commit 966bd80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cod4qol/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ void commands::ToggleSteamAuthUpdate()
static const offsets::data_t steam_auth_a_bytes = offsets::GetData("steam_auth_a");
static const offsets::data_t steam_auth_b_bytes = offsets::GetData("steam_auth_b");

static const offsets::data_t steam_auth_a_bytes_disabled = offsets::GetData("steam_auth_a_disabled");
static const offsets::data_t steam_auth_b_bytes_disabled = offsets::GetData("steam_auth_b_disabled");
static const offsets::data_t steam_auth_a_bytes_original = offsets::GetData("steam_auth_a_original");
static const offsets::data_t steam_auth_b_bytes_original = offsets::GetData("steam_auth_b_original");


if (commands::qol_disable_steam_auth->current.enabled)
Expand All @@ -239,8 +239,8 @@ void commands::ToggleSteamAuthUpdate()
}
else
{
hooks::write_addr(steam_auth_a, steam_auth_a_bytes_disabled.data.c_str(), steam_auth_a_bytes_disabled.size);
hooks::write_addr(steam_auth_b, steam_auth_b_bytes_disabled.data.c_str(), steam_auth_b_bytes_disabled.size);
hooks::write_addr(steam_auth_a, steam_auth_a_bytes_original.data.c_str(), steam_auth_a_bytes_original.size);
hooks::write_addr(steam_auth_b, steam_auth_b_bytes_original.data.c_str(), steam_auth_b_bytes_original.size);
}
}

Expand Down
4 changes: 2 additions & 2 deletions cod4qol/offsets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ void offsets::InitOffsets()
//Strings
AddData("steam_auth_a", { {COD4QOL_COD4X_CRC32_212, {"\x90\x90", 2}}, {COD4QOL_COD4X_CRC32_211, {"\x90\x90\x90\x90\x90\x90", 6}} });
AddData("steam_auth_b", { {COD4QOL_COD4X_CRC32_212, {"\xE9\xC0\x01\x00\x00\x90", 6}}, {COD4QOL_COD4X_CRC32_211, {"\x90\x90\x90\x90\x90\x90", 6}} });
AddData("steam_auth_a_disabled", { {COD4QOL_COD4X_CRC32_212, {"\x75\x0D", 2}}, {COD4QOL_COD4X_CRC32_211, {"\x0F\x85\xDB\x00\x00\x00", 6}} });
AddData("steam_auth_b_disabled", { {COD4QOL_COD4X_CRC32_212, {"\x0F\x84\xBF\x01\x00\x00", 6}}, {COD4QOL_COD4X_CRC32_211, {"\x0F\x85\xCE\x00\x00\x00", 6}} });
AddData("steam_auth_a_original", { {COD4QOL_COD4X_CRC32_212, {"\x75\x0D", 2}}, {COD4QOL_COD4X_CRC32_211, {"\x0F\x85\xDB\x00\x00\x00", 6}} });
AddData("steam_auth_b_original", { {COD4QOL_COD4X_CRC32_212, {"\x0F\x84\xBF\x01\x00\x00", 6}}, {COD4QOL_COD4X_CRC32_211, {"\x0F\x85\xCE\x00\x00\x00", 6}} });
}

void offsets::AddOffset(std::string id, offsets::offset_set offset)
Expand Down

0 comments on commit 966bd80

Please sign in to comment.