2
0
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:
Jan Laupetin
2026-03-16 00:46:14 +01:00
parent 58ab46413a
commit 914cdda360
4 changed files with 47 additions and 1 deletions

View File

@@ -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;
};