feat(GTA Cache): removed unused old code (#1663)

This commit is contained in:
Andreas Maerten
2023-07-10 00:40:47 +02:00
committed by GitHub
parent ee61858489
commit 2f1f094b89
8 changed files with 6 additions and 131 deletions

View File

@ -16,18 +16,10 @@ namespace big
components::sub_title("GTA cache stats:");
ImGui::Text("Peds Cached: %d\nVehicles Cached: %d\nWeapons Cached: %d", ped_count, veh_count, wep_count);
if (components::button("Rebuild Cache in Online"))
if (components::button("Rebuild Cache"))
{
g_gta_data_service->set_state(eGtaDataUpdateState::NEEDS_UPDATE);
if (!*g_pointers->m_gta.m_is_session_started)
{
g_gta_data_service->update_in_online();
}
else
{
g_gta_data_service->update_now();
}
g_gta_data_service->update_now();
}
}
}