mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-09-09 07:27:05 +00:00
wip: multiple variants in zonecode
This commit is contained in:
@@ -89,6 +89,12 @@ bool CommandsFileReader::ReadCommandsFile(IDataRepository* repository)
|
||||
const auto result = parser->Parse();
|
||||
const auto end = std::chrono::steady_clock::now();
|
||||
|
||||
if (repository->GetGameVariants().empty())
|
||||
{
|
||||
con::error("Commands must specify at least one variant");
|
||||
return false;
|
||||
}
|
||||
|
||||
con::debug("Processing commands took {}ms", std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count());
|
||||
|
||||
if (!result)
|
||||
|
||||
Reference in New Issue
Block a user