fix(Crash): Fixed crashes in SP Missions. (#1285)

chore(hooking.hpp): Removed useless declarations.
This commit is contained in:
tupoy-ya 2023-04-24 03:06:20 +05:00 committed by GitHub
parent 9bc99e18cc
commit a8133074ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -132,10 +132,6 @@ namespace big
static CGameScriptHandler* create_script_handler(CGameScriptHandlerMgr* this_, void* unk); static CGameScriptHandler* create_script_handler(CGameScriptHandlerMgr* this_, void* unk);
static bool script_handler_is_networked(CGameScriptHandler* this_); static bool script_handler_is_networked(CGameScriptHandler* this_);
static bool script_handler_dtor(CGameScriptHandler* this_, bool free_memory); static bool script_handler_dtor(CGameScriptHandler* this_, bool free_memory);
static void set_script_as_networked(void*, rage::scrThread* thread, int instance_id);
static bool write_bitbuffer_gamer_handle(rage::datBitBuffer* buffer, rage::rlGamerHandle* handle);
static bool read_bitbuffer_gamer_handle(rage::datBitBuffer* buffer, rage::rlGamerHandle* handle);
static int nt_query_virtual_memory(void* _this, HANDLE handle, PVOID base_addr, int info_class, MEMORY_BASIC_INFORMATION* info, int size, size_t* return_len); static int nt_query_virtual_memory(void* _this, HANDLE handle, PVOID base_addr, int info_class, MEMORY_BASIC_INFORMATION* info, int size, size_t* return_len);
static void queue_dependency(void* dependency); static void queue_dependency(void* dependency);

View File

@ -1,5 +1,6 @@
#include "gta/script_handler.hpp" #include "gta/script_handler.hpp"
#include "pointers.hpp"
#include "hooking.hpp" #include "hooking.hpp"
namespace big namespace big
@ -29,7 +30,7 @@ namespace big
bool hooks::script_handler_is_networked(CGameScriptHandler* _this) bool hooks::script_handler_is_networked(CGameScriptHandler* _this)
{ {
return true; return *g_pointers->m_gta.m_is_session_started;
} }
bool hooks::script_handler_dtor(CGameScriptHandler* _this, bool free_memory) bool hooks::script_handler_dtor(CGameScriptHandler* _this, bool free_memory)