mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-08 18:33:37 +08:00
Removed detected stuff (#275)
This commit is contained in:
parent
2083f66d94
commit
cade4f832b
@ -8,7 +8,6 @@ namespace big
|
||||
void backend::loop()
|
||||
{
|
||||
g->attempt_save();
|
||||
looped::system_disable_sigscanner();
|
||||
looped::system_self_globals();
|
||||
looped::system_update_pointers();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -730,7 +730,6 @@ namespace big
|
||||
{ 0x02A0C9720B854BFA, 0x80476B7F23BCBB1B },
|
||||
{ 0x6B7A646C242A7059, 0xB83D9F54C7F8C2BE },
|
||||
{ 0x2F3C3D9F50681DE4, 0x1A9E4C03AB189860 },
|
||||
{ 0x9DE327631295B4C2, 0xDA664493ACCDBE81 },
|
||||
{ 0xC024869A53992F34, 0x35D4F23CB8A63EDB },
|
||||
{ 0x1C86D8AEF8254B78, 0xED99779C40AEE6C4 },
|
||||
{ 0xB50C0B0CEDC6CE84, 0x6F0299ED3CEB4E5D },
|
||||
|
@ -284,22 +284,9 @@ namespace big
|
||||
m_get_net_object_for_player = ptr.as<decltype(m_get_net_object_for_player)>();
|
||||
});
|
||||
|
||||
// CTunables
|
||||
main_batch.add("T", "BF 02 00 00 00 44 8B C7", [this](memory::handle ptr)
|
||||
{
|
||||
m_tunables = ptr.sub(4).rip().as<decltype(m_tunables)>();
|
||||
});
|
||||
|
||||
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<void*>(), patch, sizeof(patch));
|
||||
}
|
||||
|
||||
/**
|
||||
* Freemode thread restorer through VM patch
|
||||
*/
|
||||
|
@ -26,7 +26,6 @@ namespace big
|
||||
CPedFactory** m_ped_factory{};
|
||||
CNetworkPlayerMgr** m_network_player_mgr{};
|
||||
CNetworkObjectMgr** m_network_object_mgr{};
|
||||
rage::atSingleton<rage::CTunables>* m_tunables{};
|
||||
|
||||
rage::CReplayInterface** m_replay_interface{};
|
||||
functions::ptr_to_handle* m_ptr_to_handle{};
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user