Accept extended GC 4.75 stage catalogs

This commit is contained in:
2026-08-15 16:28:18 +02:00
parent 777331d034
commit 66e74c58a7
+3 -10
View File
@@ -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;
} }