Accept extended GC 4.75 stage catalogs
This commit is contained in:
+3
-10
@@ -115,16 +115,9 @@ bool ParseStageCatalog(const std::vector<uint8_t>& bytes,
|
|||||||
entries->push_back(std::move(entry));
|
entries->push_back(std::move(entry));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r.tell() != bytes.size()) {
|
// game471's loader trusts the leading count and stops after that many
|
||||||
if (error) {
|
// records. GC 4.75 appends a version-specific metadata block, so requiring
|
||||||
std::ostringstream message;
|
// EOF here rejects a catalog whose complete declared record array is valid.
|
||||||
message << "stage_param.dat has " << (bytes.size() - r.tell())
|
|
||||||
<< " trailing bytes after " << count << " records";
|
|
||||||
*error = message.str();
|
|
||||||
}
|
|
||||||
entries->clear();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user