Skip to content

Commit

Permalink
Lua: Add debug library
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed May 1, 2024
1 parent 1ec771c commit 6cd87ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/ScriptRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ ScriptState::ScriptState(const ScriptState::GarbageCollectionData& gc_data,bool
m_is_main_state = is_main_state;
m_lua.registry()["state"] = this;
m_lua.open_libraries(sol::lib::base, sol::lib::package, sol::lib::string, sol::lib::math, sol::lib::table, sol::lib::bit32,
sol::lib::utf8, sol::lib::os, sol::lib::coroutine);
sol::lib::utf8, sol::lib::os, sol::lib::coroutine, sol::lib::debug);

// Disable garbage collection. We will manually do it at the end of each frame.
gc_data_changed(gc_data);
Expand Down

0 comments on commit 6cd87ef

Please sign in to comment.