mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 08:08:53 -05:00
support LUS::Archive::LoadFileRaw
no longer being exposed (#3999)
This commit is contained in:
parent
9fb2f26f1b
commit
ef690e2ceb
@ -1 +1 @@
|
||||
Subproject commit d70fd7de2315388c9a99742fd6c634b2cd8be138
|
||||
Subproject commit f79b19a73293c572867eb816377d14c3dbded6e8
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user