tentative debugging

This commit is contained in:
Quentin E. / iDeath 2023-07-26 18:02:55 +02:00
parent 31c601658f
commit 84070b1a4b
2 changed files with 8 additions and 12 deletions

View File

@ -154,6 +154,13 @@ namespace big
const auto file_version = memory::module("GTA5.exe").size();
const auto ped_count = m_peds_cache.data_size() / sizeof(ped_item);
const auto vehicle_count = m_vehicles_cache.data_size() / sizeof(vehicle_item);
if (ped_count == 0 || vehicle_count == 0)
{
return false;
}
return m_peds_cache.up_to_date(file_version) && m_vehicles_cache.up_to_date(file_version) && m_weapons_cache.up_to_date(file_version);
}

View File

@ -20,18 +20,7 @@ namespace big
static bool safe_open_pack_file(rage::fiPackfile& packfile, const std::u8string& path)
{
bool success = false;
__try
{
success = packfile.OpenPackfile(reinterpret_cast<const char*>(path.c_str()), true, 0, 0);
}
__except (EXCEPTION_EXECUTE_HANDLER)
{
return false;
}
return success;
return packfile.OpenPackfile(reinterpret_cast<const char*>(path.c_str()), true, 0, 0);
}
void yim_fipackfile::traverse_rpf_file(const std::u8string& path, int depth)