From cade4f832b5a648ca8cdb49aabfcda346113a5d6 Mon Sep 17 00:00:00 2001 From: Yimura Date: Sun, 12 Jun 2022 21:24:35 +0200 Subject: [PATCH] Removed detected stuff (#275) --- BigBaseV2/src/backend/backend.cpp | 1 - BigBaseV2/src/backend/looped/looped.hpp | 3 +-- .../looped/system/disable_sigscanner.cpp | 21 ------------------- BigBaseV2/src/crossmap.hpp | 1 - BigBaseV2/src/pointers.cpp | 13 ------------ BigBaseV2/src/pointers.hpp | 1 - .../settings/view_notification_settings.cpp | 2 +- 7 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 BigBaseV2/src/backend/looped/system/disable_sigscanner.cpp diff --git a/BigBaseV2/src/backend/backend.cpp b/BigBaseV2/src/backend/backend.cpp index 6377bd60..38b28a23 100644 --- a/BigBaseV2/src/backend/backend.cpp +++ b/BigBaseV2/src/backend/backend.cpp @@ -8,7 +8,6 @@ namespace big void backend::loop() { g->attempt_save(); - looped::system_disable_sigscanner(); looped::system_self_globals(); looped::system_update_pointers(); diff --git a/BigBaseV2/src/backend/looped/looped.hpp b/BigBaseV2/src/backend/looped/looped.hpp index 73d93605..87f90510 100644 --- a/BigBaseV2/src/backend/looped/looped.hpp +++ b/BigBaseV2/src/backend/looped/looped.hpp @@ -32,8 +32,7 @@ namespace big static void self_super_run(); static void session_local_time(); - - static void system_disable_sigscanner(); + static void system_self_globals(); static void system_update_pointers(); diff --git a/BigBaseV2/src/backend/looped/system/disable_sigscanner.cpp b/BigBaseV2/src/backend/looped/system/disable_sigscanner.cpp deleted file mode 100644 index cdc834fe..00000000 --- a/BigBaseV2/src/backend/looped/system/disable_sigscanner.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "backend/looped/looped.hpp" -#include "pointers.hpp" - -namespace big -{ - // credits: @brunph - void looped::system_disable_sigscanner() - { - if (g_pointers->m_tunables->isValid()) - { - if (const auto ptr = g_pointers->m_tunables->getInstance(); ptr) - { - // sets the signature counter to 0 - // preventing the array from being looped - // this is just an alternative protection - // to the one found in pointers.cpp - ptr->m_bCount = 0; - } - } - } -} diff --git a/BigBaseV2/src/crossmap.hpp b/BigBaseV2/src/crossmap.hpp index ebb13701..8e76f96e 100644 --- a/BigBaseV2/src/crossmap.hpp +++ b/BigBaseV2/src/crossmap.hpp @@ -730,7 +730,6 @@ namespace big { 0x02A0C9720B854BFA, 0x80476B7F23BCBB1B }, { 0x6B7A646C242A7059, 0xB83D9F54C7F8C2BE }, { 0x2F3C3D9F50681DE4, 0x1A9E4C03AB189860 }, -{ 0x9DE327631295B4C2, 0xDA664493ACCDBE81 }, { 0xC024869A53992F34, 0x35D4F23CB8A63EDB }, { 0x1C86D8AEF8254B78, 0xED99779C40AEE6C4 }, { 0xB50C0B0CEDC6CE84, 0x6F0299ED3CEB4E5D }, diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 484741e4..93dba57d 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -284,22 +284,9 @@ namespace big m_get_net_object_for_player = ptr.as(); }); - // CTunables - main_batch.add("T", "BF 02 00 00 00 44 8B C7", [this](memory::handle ptr) - { - m_tunables = ptr.sub(4).rip().as(); - }); - auto mem_region = memory::module(nullptr); main_batch.run(mem_region); - // Credits: @brunph - if (auto bonus_string = mem_region.scan("62 6F 6E 75 73 00"); bonus_string) - { - const auto patch = "nyeee"; - std::memcpy(bonus_string.as(), patch, sizeof(patch)); - } - /** * Freemode thread restorer through VM patch */ diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index 04794cd2..4b6a7489 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -26,7 +26,6 @@ namespace big CPedFactory** m_ped_factory{}; CNetworkPlayerMgr** m_network_player_mgr{}; CNetworkObjectMgr** m_network_object_mgr{}; - rage::atSingleton* m_tunables{}; rage::CReplayInterface** m_replay_interface{}; functions::ptr_to_handle* m_ptr_to_handle{}; diff --git a/BigBaseV2/src/views/settings/view_notification_settings.cpp b/BigBaseV2/src/views/settings/view_notification_settings.cpp index b3603f43..d43f3f8d 100644 --- a/BigBaseV2/src/views/settings/view_notification_settings.cpp +++ b/BigBaseV2/src/views/settings/view_notification_settings.cpp @@ -41,7 +41,7 @@ namespace big ImGui::BeginGroup(); draw_pair_option("Clear Ped Tasks", received_event.clear_ped_task); - draw_pair_option("Modder Detection", received_event.modder_detect); + draw_pair_option("Detect Modder Events", received_event.modder_detect); draw_pair_option("Report Cash Spawn", received_event.report_cash_spawn); ImGui::EndGroup();