Skip to content

Commit

Permalink
Lua: Possible fix for C loader (.dll) not working
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Aug 22, 2024
1 parent 2ce21ce commit 2773e43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua-api/lib/src/ScriptState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ void ScriptState::run_script(const std::string& p) {
cpath = old_cpath + ";" + dir.string() + "/?.dll";

m_lua["package"]["path"] = package_path;
m_lua["package"]["cpath"] = cpath;
m_lua.safe_script_file(p);
} catch (const std::exception& e) {
//LuaLoader::get()->spew_error(e.what());
Expand Down

0 comments on commit 2773e43

Please sign in to comment.