2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-17 07:21:43 +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
+9 -1
View File
@@ -155,7 +155,7 @@ namespace
class LinkerImpl final : public Linker
{
public:
LinkerImpl(LinkerArgs args)
explicit LinkerImpl(LinkerArgs args)
: m_args(std::move(args))
{
}
@@ -187,6 +187,8 @@ namespace
UnloadZones();
Summarize(result);
return result;
}
@@ -464,6 +466,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());
}
LinkerArgs m_args;
std::vector<std::unique_ptr<Zone>> m_loaded_zones;
};