mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-05-11 06:54:56 +00:00
fix: log when a specified game is unsupported
This commit is contained in:
parent
dd2c97f7a0
commit
1117339542
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
|
#include <format>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <regex>
|
#include <regex>
|
||||||
#include <set>
|
#include <set>
|
||||||
@ -379,12 +380,13 @@ class LinkerImpl final : public Linker
|
|||||||
if (!LoadGdtFilesFromZoneDefinition(context->m_gdt_files, zoneDefinition, gdtSearchPath))
|
if (!LoadGdtFilesFromZoneDefinition(context->m_gdt_files, zoneDefinition, gdtSearchPath))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
for (const auto* assetLoader : ZONE_CREATORS)
|
for (const auto* zoneCreator : ZONE_CREATORS)
|
||||||
{
|
{
|
||||||
if (assetLoader->SupportsGame(context->m_game_name))
|
if (zoneCreator->SupportsGame(context->m_game_name))
|
||||||
return assetLoader->CreateZoneForDefinition(*context);
|
return zoneCreator->CreateZoneForDefinition(*context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cerr << std::format("Unsupported game: {}\n", context->m_game_name);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user