mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-03-25 14:03:03 +00:00
feat: summarize warnings and errors after linking and unlinking
This commit is contained in:
@@ -42,6 +42,9 @@ namespace
|
||||
const auto result = UnlinkZones(paths);
|
||||
|
||||
UnloadZones();
|
||||
|
||||
Summarize(result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -307,6 +310,12 @@ namespace
|
||||
return true;
|
||||
}
|
||||
|
||||
static void Summarize(const bool result)
|
||||
{
|
||||
const char* resultStr = result ? "Finished" : "Failed";
|
||||
con::info("{} with {} warnings, {} errors", resultStr, con::warning_count(), con::error_count());
|
||||
}
|
||||
|
||||
UnlinkerArgs m_args;
|
||||
std::vector<std::unique_ptr<Zone>> m_loaded_zones;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user