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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user