Skip to content

Commit

Permalink
support LUS::Archive::LoadFileRaw no longer being exposed (HarbourM…
Browse files Browse the repository at this point in the history
  • Loading branch information
briaguya-ai authored Mar 6, 2024
1 parent 9fb2f26 commit ef690e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion soh/soh/OTRGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef690e2

Please sign in to comment.