Skip to content

Commit

Permalink
refactor: save unluac instance ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Aug 29, 2023
1 parent 475614d commit 5a7b1a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ int main()
}

auto out_dir = fs::path(path.get());
auto &unluac = unluac::get();
auto extracted = 0u;

for (const auto &file : files)
Expand All @@ -179,7 +180,7 @@ int main()
saucer::make_args(extracted, files.size())));
}

auto lua = unluac::get().decompile(temp / file.name);
auto lua = unluac.decompile(temp / file.name);

if (!lua)
{
Expand Down

0 comments on commit 5a7b1a1

Please sign in to comment.