Add ability to load new LDM records into preexisting Ar2vFile objects for L2 chunks

This commit is contained in:
AdenKoperczak 2025-03-27 11:21:08 -04:00
parent f0ef6b35dd
commit 05335fad84
No known key found for this signature in database
GPG key ID: 9843017036F62EE7
2 changed files with 23 additions and 0 deletions

View file

@ -519,5 +519,25 @@ void Ar2vFileImpl::IndexFile()
}
}
bool Ar2vFile::LoadLDMRecords(std::istream& is) {
size_t decompressedRecords = p->DecompressLDMRecords(is);
if (decompressedRecords == 0)
{
p->ParseLDMRecord(is);
}
else
{
p->ParseLDMRecords();
}
return true;
}
bool Ar2vFile::IndexFile()
{
p->IndexFile();
return true;
}
} // namespace wsr88d
} // namespace scwx