mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
chore: adjust log levels in linker
This commit is contained in:
parent
b3d59a3f28
commit
dd2c97f7a0
@ -90,7 +90,7 @@ class LinkerImpl final : public Linker
|
|||||||
const auto definitionStream = sourceSearchPath->Open(definitionFileName);
|
const auto definitionStream = sourceSearchPath->Open(definitionFileName);
|
||||||
if (!definitionStream.IsOpen())
|
if (!definitionStream.IsOpen())
|
||||||
{
|
{
|
||||||
std::cout << "Could not find zone definition file for project \"" << source << "\".\n";
|
std::cerr << "Could not find zone definition file for project \"" << source << "\".\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ class LinkerImpl final : public Linker
|
|||||||
|
|
||||||
if (!includeDefinition)
|
if (!includeDefinition)
|
||||||
{
|
{
|
||||||
std::cout << "Failed to read zone definition file for project \"" << source << "\".\n";
|
std::cerr << "Failed to read zone definition file for project \"" << source << "\".\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,7 +183,7 @@ class LinkerImpl final : public Linker
|
|||||||
{
|
{
|
||||||
if (name != i->second->m_value)
|
if (name != i->second->m_value)
|
||||||
{
|
{
|
||||||
std::cout << "Conflicting names in target \"" << targetName << "\": " << name << " != " << i->second << "\n";
|
std::cerr << "Conflicting names in target \"" << targetName << "\": " << name << " != " << i->second << "\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -203,7 +203,7 @@ class LinkerImpl final : public Linker
|
|||||||
const auto definitionStream = sourceSearchPath->Open(definitionFileName);
|
const auto definitionStream = sourceSearchPath->Open(definitionFileName);
|
||||||
if (!definitionStream.IsOpen())
|
if (!definitionStream.IsOpen())
|
||||||
{
|
{
|
||||||
std::cout << "Could not find zone definition file for target \"" << targetName << "\".\n";
|
std::cerr << "Could not find zone definition file for target \"" << targetName << "\".\n";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -213,7 +213,7 @@ class LinkerImpl final : public Linker
|
|||||||
|
|
||||||
if (!zoneDefinition)
|
if (!zoneDefinition)
|
||||||
{
|
{
|
||||||
std::cout << "Failed to read zone definition file for target \"" << targetName << "\".\n";
|
std::cerr << "Failed to read zone definition file for target \"" << targetName << "\".\n";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +248,7 @@ class LinkerImpl final : public Linker
|
|||||||
std::vector<AssetListEntry> assetList;
|
std::vector<AssetListEntry> assetList;
|
||||||
if (!ReadAssetList(ignore, context.m_ignored_assets, sourceSearchPath))
|
if (!ReadAssetList(ignore, context.m_ignored_assets, sourceSearchPath))
|
||||||
{
|
{
|
||||||
std::cout << "Failed to read asset listing for ignoring assets of project \"" << ignore << "\".\n";
|
std::cerr << "Failed to read asset listing for ignoring assets of project \"" << ignore << "\".\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -324,7 +324,7 @@ class LinkerImpl final : public Linker
|
|||||||
{
|
{
|
||||||
if (gameName != i->second->m_value)
|
if (gameName != i->second->m_value)
|
||||||
{
|
{
|
||||||
std::cout << "Conflicting game names in target \"" << targetName << "\": " << gameName << " != " << i->second << "\n";
|
std::cerr << "Conflicting game names in target \"" << targetName << "\": " << gameName << " != " << i->second << "\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -332,7 +332,7 @@ class LinkerImpl final : public Linker
|
|||||||
|
|
||||||
if (firstGameEntry)
|
if (firstGameEntry)
|
||||||
{
|
{
|
||||||
std::cout << "No game name was specified for target \"" << targetName << "\"\n";
|
std::cerr << "No game name was specified for target \"" << targetName << "\"\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -347,7 +347,7 @@ class LinkerImpl final : public Linker
|
|||||||
const auto gdtFile = gdtSearchPath->Open(i->second->m_value + ".gdt");
|
const auto gdtFile = gdtSearchPath->Open(i->second->m_value + ".gdt");
|
||||||
if (!gdtFile.IsOpen())
|
if (!gdtFile.IsOpen())
|
||||||
{
|
{
|
||||||
std::cout << "Failed to open file for gdt \"" << i->second->m_value << "\"\n";
|
std::cerr << "Failed to open file for gdt \"" << i->second->m_value << "\"\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -355,7 +355,7 @@ class LinkerImpl final : public Linker
|
|||||||
auto gdt = std::make_unique<Gdt>();
|
auto gdt = std::make_unique<Gdt>();
|
||||||
if (!gdtReader.Read(*gdt))
|
if (!gdtReader.Read(*gdt))
|
||||||
{
|
{
|
||||||
std::cout << "Failed to read gdt file \"" << i->second << "\"\n";
|
std::cerr << "Failed to read gdt file \"" << i->second << "\"\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -402,7 +402,7 @@ class LinkerImpl final : public Linker
|
|||||||
|
|
||||||
if (!ZoneWriting::WriteZone(stream, zone))
|
if (!ZoneWriting::WriteZone(stream, zone))
|
||||||
{
|
{
|
||||||
std::cout << "Writing zone failed.\n";
|
std::cerr << "Writing zone failed.\n";
|
||||||
stream.close();
|
stream.close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -454,7 +454,7 @@ class LinkerImpl final : public Linker
|
|||||||
|
|
||||||
if (!ipakWriter->Write())
|
if (!ipakWriter->Write())
|
||||||
{
|
{
|
||||||
std::cout << "Writing ipak failed.\n";
|
std::cerr << "Writing ipak failed.\n";
|
||||||
stream.close();
|
stream.close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -534,7 +534,7 @@ class LinkerImpl final : public Linker
|
|||||||
{
|
{
|
||||||
if (!fs::is_regular_file(zonePath))
|
if (!fs::is_regular_file(zonePath))
|
||||||
{
|
{
|
||||||
std::cout << "Could not find zone file to load \"" << zonePath << "\".\n";
|
std::cerr << "Could not find zone file to load \"" << zonePath << "\".\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -543,7 +543,7 @@ class LinkerImpl final : public Linker
|
|||||||
auto zone = std::unique_ptr<Zone>(ZoneLoading::LoadZone(zonePath));
|
auto zone = std::unique_ptr<Zone>(ZoneLoading::LoadZone(zonePath));
|
||||||
if (zone == nullptr)
|
if (zone == nullptr)
|
||||||
{
|
{
|
||||||
std::cout << "Failed to load zone \"" << zonePath << "\".\n";
|
std::cerr << "Failed to load zone \"" << zonePath << "\".\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user