tentative debugging
This commit is contained in:
parent
31c601658f
commit
84070b1a4b
@ -154,6 +154,13 @@ namespace big
|
|||||||
|
|
||||||
const auto file_version = memory::module("GTA5.exe").size();
|
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);
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,18 +20,7 @@ namespace big
|
|||||||
|
|
||||||
static bool safe_open_pack_file(rage::fiPackfile& packfile, const std::u8string& path)
|
static bool safe_open_pack_file(rage::fiPackfile& packfile, const std::u8string& path)
|
||||||
{
|
{
|
||||||
bool success = false;
|
return packfile.OpenPackfile(reinterpret_cast<const char*>(path.c_str()), true, 0, 0);
|
||||||
|
|
||||||
__try
|
|
||||||
{
|
|
||||||
success = packfile.OpenPackfile(reinterpret_cast<const char*>(path.c_str()), true, 0, 0);
|
|
||||||
}
|
|
||||||
__except (EXCEPTION_EXECUTE_HANDLER)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return success;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void yim_fipackfile::traverse_rpf_file(const std::u8string& path, int depth)
|
void yim_fipackfile::traverse_rpf_file(const std::u8string& path, int depth)
|
||||||
|
Reference in New Issue
Block a user