mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 09:02:38 +08:00
feat(logger): use AsyncLogger instead of g3log (#882)
* feat(exception_handler): skip certain exception codes * feat(zydis): Disable BUILD_DOXYGEN and FEATURE_ENCODER * feat(cmake): link dbghelp * feat(exception_handler): implement stack dumper * feat(logger): differentiate between wine and non-wine * feat(logger): add NO_COLOR env var support * fix(logger): fix wine logging (#960) * feat(exception_handler): added string logging of exception * fix(logger): exception access violation NO_COLOR -------- Co-authored-by: Aure7138 <100095051+Aure7138@users.noreply.github.com> Co-authored-by: tupoy-ya <72797377+tupoy-ya@users.noreply.github.com>
This commit is contained in:
@ -131,13 +131,13 @@ namespace big
|
||||
|
||||
void gta_data_service::load_data()
|
||||
{
|
||||
LOG(G3LOG_DEBUG) << "Loading data from cache.";
|
||||
LOG(VERBOSE) << "Loading data from cache.";
|
||||
|
||||
load_peds();
|
||||
load_vehicles();
|
||||
load_weapons();
|
||||
|
||||
LOG(G3LOG_DEBUG) << "Loaded all data from cache.";
|
||||
LOG(VERBOSE) << "Loaded all data from cache.";
|
||||
}
|
||||
|
||||
void gta_data_service::load_peds()
|
||||
@ -256,7 +256,7 @@ namespace big
|
||||
|
||||
if (dlc_name == "mpG9EC")
|
||||
{
|
||||
LOG(G3LOG_DEBUG) << "Bad DLC, skipping...";
|
||||
LOG(VERBOSE) << "Bad DLC, skipping...";
|
||||
|
||||
return std::size_t(0);
|
||||
}
|
||||
@ -410,7 +410,7 @@ skip:
|
||||
m_update_state = eGtaDataUpdateState::IDLE;
|
||||
LOG(INFO) << "Cache has been rebuilt.\n\tPeds: " << peds.size() << "\n\tVehicles: " << vehicles.size() << "\n\tWeapons: " << weapons.size();
|
||||
|
||||
LOG(G3LOG_DEBUG) << "Starting cache saving procedure...";
|
||||
LOG(VERBOSE) << "Starting cache saving procedure...";
|
||||
g_thread_pool->push([this, peds = std::move(peds), vehicles = std::move(vehicles), weapons = std::move(weapons)]
|
||||
{
|
||||
const auto game_version = std::strtoul(g_pointers->m_game_version, nullptr, 10);
|
||||
|
Reference in New Issue
Block a user