respect headeronly
This commit is contained in:
1 parent
be61daa95a
commit
b16f721b39
1 file changed
+3
@@ -608,6 +608,9 @@ std::vector< std::vector<ui8> > CampaignHandler::getFile(std::unique_ptr<CInputS
|
||||
auto data = loader.load(resource)->readAll();
|
||||
ret.push_back(std::vector<ui8>(data.first.get(), data.first.get() + data.second));
|
||||
|
||||
if(headerOnly)
|
||||
return ret;
|
||||
|
||||
// load scenarios
|
||||
JsonNode header(reinterpret_cast<const std::byte*>(data.first.get()), data.second, VCMP_HEADER_FILE_NAME);
|
||||
for(auto scenario : header["scenarios"].Vector())
|
||||
|
||||
Reference in new issue
Block a user