support `LUS::Archive::LoadFileRaw` no longer being exposed (#3999)

This commit is contained in:
briaguya 2024-03-05 23:09:05 -05:00 committed by GitHub
parent 9fb2f26f1b
commit ef690e2ceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit d70fd7de2315388c9a99742fd6c634b2cd8be138
Subproject commit f79b19a73293c572867eb816377d14c3dbded6e8

View File

@ -872,7 +872,7 @@ OTRVersion ReadPortVersionFromOTR(std::string otrPath) {
// Use a temporary archive instance to load the otr and read the version file
auto archive = LUS::OtrArchive(otrPath);
if (archive.Open()) {
auto t = archive.LoadFileRaw("portVersion");
auto t = archive.LoadFile("portVersion", std::make_shared<LUS::ResourceInitData>());
if (t != nullptr && t->IsLoaded) {
auto stream = std::make_shared<LUS::MemoryStream>(t->Buffer->data(), t->Buffer->size());
auto reader = std::make_shared<LUS::BinaryReader>(stream);