mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
Feat ptr cache continued (#1227)
This commit is contained in:

committed by
GitHub

parent
a3b8e780ec
commit
5a4dc03121
@ -93,7 +93,7 @@ namespace big
|
||||
ImGui::InputScalar("Local CAutomobile", ImGuiDataType_U64, &local_vehicle, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
}
|
||||
|
||||
if (auto mgr = *g_pointers->m_network_player_mgr)
|
||||
if (auto mgr = *g_pointers->m_gta.m_network_player_mgr)
|
||||
{
|
||||
uint64_t local_netplayer = (uint64_t)mgr->m_local_net_player;
|
||||
ImGui::InputScalar("Local CNetGamePlayer", ImGuiDataType_U64, &local_netplayer, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
@ -105,13 +105,13 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
if (auto network = *g_pointers->m_network)
|
||||
if (auto network = *g_pointers->m_gta.m_network)
|
||||
{
|
||||
uint64_t nw = (uint64_t)network;
|
||||
ImGui::InputScalar("Network", ImGuiDataType_U64, &nw, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
}
|
||||
|
||||
if (auto omgr = *g_pointers->m_network_object_mgr)
|
||||
if (auto omgr = *g_pointers->m_gta.m_network_object_mgr)
|
||||
{
|
||||
uint64_t nw = (uint64_t)omgr;
|
||||
ImGui::InputScalar("Network Object Mgr", ImGuiDataType_U64, &nw, NULL, NULL, "%p", ImGuiInputTextFlags_CharsHexadecimal);
|
||||
|
@ -56,7 +56,7 @@ namespace big
|
||||
|
||||
components::button("DEBUG_SCRIPT_EVENT_SEND_EVENT"_T, [] {
|
||||
args[1] = self::id;// prevent detection from AC
|
||||
g_pointers->m_trigger_script_event(1, args, event_arg_count, event_everyone ? -1 : 1 << event_player_bits);
|
||||
g_pointers->m_gta.m_trigger_script_event(1, args, event_arg_count, event_everyone ? -1 : 1 << event_player_bits);
|
||||
});
|
||||
|
||||
ImGui::EndTabItem();
|
||||
|
@ -36,7 +36,7 @@ namespace big
|
||||
{
|
||||
if (ImGui::BeginTabItem("Threads"))
|
||||
{
|
||||
if (!g_pointers->m_script_threads)
|
||||
if (!g_pointers->m_gta.m_script_threads)
|
||||
{
|
||||
selected_thread = nullptr;
|
||||
ImGui::EndTabItem();
|
||||
@ -47,7 +47,7 @@ namespace big
|
||||
|
||||
if (ImGui::BeginCombo("Thread", selected_thread ? selected_thread->m_name : "NONE"))
|
||||
{
|
||||
for (auto script : *g_pointers->m_script_threads)
|
||||
for (auto script : *g_pointers->m_gta.m_script_threads)
|
||||
{
|
||||
if (script)
|
||||
{
|
||||
@ -161,7 +161,7 @@ namespace big
|
||||
update_free_stacks_count();
|
||||
});
|
||||
|
||||
if (*g_pointers->m_game_state != eGameState::Invalid && std::chrono::high_resolution_clock::now() - last_stack_update_time > 100ms)
|
||||
if (*g_pointers->m_gta.m_game_state != eGameState::Invalid && std::chrono::high_resolution_clock::now() - last_stack_update_time > 100ms)
|
||||
{
|
||||
last_stack_update_time = std::chrono::high_resolution_clock::now();
|
||||
g_fiber_pool->queue_job([] {
|
||||
|
Reference in New Issue
Block a user