support LUS::Archive::LoadFileRaw no longer being exposed (#3999)
This commit is contained in:
Submodule libultraship updated: d70fd7de23...f79b19a732
@@ -872,7 +872,7 @@ OTRVersion ReadPortVersionFromOTR(std::string otrPath) {
|
|||||||
// Use a temporary archive instance to load the otr and read the version file
|
// Use a temporary archive instance to load the otr and read the version file
|
||||||
auto archive = LUS::OtrArchive(otrPath);
|
auto archive = LUS::OtrArchive(otrPath);
|
||||||
if (archive.Open()) {
|
if (archive.Open()) {
|
||||||
auto t = archive.LoadFileRaw("portVersion");
|
auto t = archive.LoadFile("portVersion", std::make_shared<LUS::ResourceInitData>());
|
||||||
if (t != nullptr && t->IsLoaded) {
|
if (t != nullptr && t->IsLoaded) {
|
||||||
auto stream = std::make_shared<LUS::MemoryStream>(t->Buffer->data(), t->Buffer->size());
|
auto stream = std::make_shared<LUS::MemoryStream>(t->Buffer->data(), t->Buffer->size());
|
||||||
auto reader = std::make_shared<LUS::BinaryReader>(stream);
|
auto reader = std::make_shared<LUS::BinaryReader>(stream);
|
||||||
|
|||||||
Reference in New Issue
Block a user