From b3f1c8b5d497ec2b9c5e90385bebcd02ae034cc9 Mon Sep 17 00:00:00 2001 From: Mr-X-GTA <110748953+Mr-X-GTA@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:32:16 +0200 Subject: [PATCH] Update for b3323 (#3691) --- cmake/gtav-classes.cmake | 2 +- src/backend/looped/spoofing/spoof_game_data_hash.cpp | 10 +++++----- src/core/settings.hpp | 2 +- src/pointers.cpp | 4 ++-- src/views/network/view_spoofing.cpp | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cmake/gtav-classes.cmake b/cmake/gtav-classes.cmake index 7ed82c43..d1d028ad 100644 --- a/cmake/gtav-classes.cmake +++ b/cmake/gtav-classes.cmake @@ -3,7 +3,7 @@ include(FetchContent) FetchContent_Declare( gtav_classes GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git - GIT_TAG b98cf8d4dafbde003bfbde27707574da77c01134 + GIT_TAG e45f7f505ac2394c9213f1577831ab100cc74fa2 GIT_PROGRESS TRUE CONFIGURE_COMMAND "" BUILD_COMMAND "" diff --git a/src/backend/looped/spoofing/spoof_game_data_hash.cpp b/src/backend/looped/spoofing/spoof_game_data_hash.cpp index 54e3aac6..cd0e7954 100644 --- a/src/backend/looped/spoofing/spoof_game_data_hash.cpp +++ b/src/backend/looped/spoofing/spoof_game_data_hash.cpp @@ -4,19 +4,19 @@ namespace { - static std::array orig_hash; + static std::array orig_hash; - void store_data(std::array& data) + void store_data(std::array& data) { - for (int i = 0; i < 15; i++) + for (int i = 0; i < 16; i++) { data[i] = (*big::g_pointers->m_gta.m_game_data_hash)->m_data[i]; } } - void load_data(const std::array& data) + void load_data(const std::array& data) { - for (int i = 0; i < 15; i++) + for (int i = 0; i < 16; i++) { (*big::g_pointers->m_gta.m_game_data_hash)->m_data[i] = data[i]; } diff --git a/src/core/settings.hpp b/src/core/settings.hpp index b8df82f1..7c609f83 100644 --- a/src/core/settings.hpp +++ b/src/core/settings.hpp @@ -731,7 +731,7 @@ namespace big bool voice_chat_audio = false; bool spoof_game_data_hash = false; - std::array game_data_hash{}; + std::array game_data_hash{}; bool spoof_dlc_hash = false; std::uint32_t dlc_hash; diff --git a/src/pointers.cpp b/src/pointers.cpp index 85f68ca8..697c80d8 100644 --- a/src/pointers.cpp +++ b/src/pointers.cpp @@ -747,7 +747,7 @@ namespace big // Serialize Join Request Message 2 { "SJRM2", - "E8 ? ? ? ? 48 8D 8D 08 01 00 00 8A D8", + "E8 ? ? ? ? 48 8D 8D 18 01 00 00 8A D8", [](memory::handle ptr) { g_pointers->m_gta.m_serialize_join_request_message_2 = ptr.add(1).rip().as(); @@ -1817,7 +1817,7 @@ namespace big // Session Request Patch { "SRP", - "48 8B BD 70 01 00 00 E9 FF 00 00 00", + "48 8B BD 80 01 00 00 E9 FF 00 00 00", [](memory::handle ptr) { g_pointers->m_gta.m_session_request_patch = ptr.add(0x13).as(); diff --git a/src/views/network/view_spoofing.cpp b/src/views/network/view_spoofing.cpp index 24f5d8f0..890f0a3e 100644 --- a/src/views/network/view_spoofing.cpp +++ b/src/views/network/view_spoofing.cpp @@ -175,7 +175,7 @@ namespace big if (ImGui::TreeNode("DATA_HASHES"_T.data())) { - for (int i = 0; i < 15; i++) + for (int i = 0; i < 16; i++) { ImGui::PushID(i); ImGui::SetNextItemWidth(200);