Bumped GTAV-Classes, removed unused declarations and other stuff (#638)
This commit is contained in:
parent
88aa1f8e56
commit
d927a58b1d
@ -3,7 +3,7 @@ include(FetchContent)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
gtav_classes
|
gtav_classes
|
||||||
GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git
|
GIT_REPOSITORY https://github.com/Yimura/GTAV-Classes.git
|
||||||
GIT_TAG 6d8c0e6edef4ddef3f8b55f7cbf572743ba18ff3
|
GIT_TAG 257115997e5ecea9fafbc820a746d9c6f5889e57
|
||||||
GIT_PROGRESS TRUE
|
GIT_PROGRESS TRUE
|
||||||
CONFIGURE_COMMAND ""
|
CONFIGURE_COMMAND ""
|
||||||
BUILD_COMMAND ""
|
BUILD_COMMAND ""
|
||||||
|
@ -11,9 +11,10 @@ namespace big
|
|||||||
{
|
{
|
||||||
register_script_patches();
|
register_script_patches();
|
||||||
|
|
||||||
while (true)
|
while (g_running)
|
||||||
{
|
{
|
||||||
g->attempt_save();
|
g->attempt_save();
|
||||||
|
looped::system_disable_sigscanner();
|
||||||
looped::system_self_globals();
|
looped::system_self_globals();
|
||||||
looped::system_update_pointers();
|
looped::system_update_pointers();
|
||||||
looped::system_desync_kick_protection();
|
looped::system_desync_kick_protection();
|
||||||
|
@ -8,9 +8,6 @@ namespace big
|
|||||||
{
|
{
|
||||||
class looped {
|
class looped {
|
||||||
public:
|
public:
|
||||||
static void api_login_session();
|
|
||||||
|
|
||||||
static void context_menu();
|
|
||||||
static void hud_transition_state();
|
static void hud_transition_state();
|
||||||
|
|
||||||
static void tunables_disable_phone();
|
static void tunables_disable_phone();
|
||||||
@ -19,8 +16,6 @@ namespace big
|
|||||||
static void player_spectate();
|
static void player_spectate();
|
||||||
static void player_remote_control_vehicle();
|
static void player_remote_control_vehicle();
|
||||||
|
|
||||||
static void protections_replay_interface();
|
|
||||||
|
|
||||||
static void self_clean_player();
|
static void self_clean_player();
|
||||||
static void self_free_cam_disable_control_action();
|
static void self_free_cam_disable_control_action();
|
||||||
static void self_free_cam();
|
static void self_free_cam();
|
||||||
@ -40,6 +35,7 @@ namespace big
|
|||||||
|
|
||||||
static void session_local_time();
|
static void session_local_time();
|
||||||
|
|
||||||
|
static void system_disable_sigscanner();
|
||||||
static void system_self_globals();
|
static void system_self_globals();
|
||||||
static void system_update_pointers();
|
static void system_update_pointers();
|
||||||
static void system_desync_kick_protection();
|
static void system_desync_kick_protection();
|
||||||
|
15
src/backend/looped/system/disable_sigscanner.cpp
Normal file
15
src/backend/looped/system/disable_sigscanner.cpp
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include "backend/looped/looped.hpp"
|
||||||
|
#include "pointers.hpp"
|
||||||
|
#include "rage/atSingleton.hpp"
|
||||||
|
#include "security/RageSecurity.hpp"
|
||||||
|
|
||||||
|
namespace big
|
||||||
|
{
|
||||||
|
void looped::system_disable_sigscanner()
|
||||||
|
{
|
||||||
|
if (g_pointers->m_security->isValid())
|
||||||
|
{
|
||||||
|
g_pointers->m_security->getInstance()->m_interval = std::numeric_limits<std::uint32_t>::max();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,8 @@
|
|||||||
#include "common.hpp"
|
#include "common.hpp"
|
||||||
#include "pointers.hpp"
|
#include "pointers.hpp"
|
||||||
#include "memory/all.hpp"
|
#include "memory/all.hpp"
|
||||||
|
#include "rage/atSingleton.hpp"
|
||||||
|
#include "security/RageSecurity.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
@ -584,6 +586,12 @@ namespace big
|
|||||||
memory::byte_patch::make(ptr.add(1).rip().as<void*>(), std::to_array({ 0xB0, 0x01, 0xC3 }))->apply(); // has no observable side effects
|
memory::byte_patch::make(ptr.add(1).rip().as<void*>(), std::to_array({ 0xB0, 0x01, 0xC3 }))->apply(); // has no observable side effects
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Rage Security
|
||||||
|
main_batch.add("RS", "48 8B ? ? ? ? ? 33 F6 E9 ? ? ? ? 55 48 8D ? ? ? ? ? 48 87 2C 24 C3 48 8B 45 50 0F B6 00", [this](memory::handle ptr)
|
||||||
|
{
|
||||||
|
m_security = ptr.add(3).rip().as<rage::atSingleton<rage::RageSecurity>*>();
|
||||||
|
});
|
||||||
|
|
||||||
auto mem_region = memory::module("GTA5.exe");
|
auto mem_region = memory::module("GTA5.exe");
|
||||||
main_batch.run(mem_region);
|
main_batch.run(mem_region);
|
||||||
|
|
||||||
|
@ -11,6 +11,13 @@ class FriendRegistry;
|
|||||||
class CNetworkPlayerMgr;
|
class CNetworkPlayerMgr;
|
||||||
class Network;
|
class Network;
|
||||||
|
|
||||||
|
namespace rage
|
||||||
|
{
|
||||||
|
template<typename T>
|
||||||
|
class atSingleton;
|
||||||
|
class RageSecurity;
|
||||||
|
}
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
class pointers
|
class pointers
|
||||||
@ -176,6 +183,8 @@ namespace big
|
|||||||
// PVOID m_apply_join_request_data;
|
// PVOID m_apply_join_request_data;
|
||||||
|
|
||||||
PVOID m_serialize_join_request_message;
|
PVOID m_serialize_join_request_message;
|
||||||
|
|
||||||
|
rage::atSingleton<rage::RageSecurity>* m_security;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline pointers* g_pointers{};
|
inline pointers* g_pointers{};
|
||||||
|
Reference in New Issue
Block a user