Skip to content

Commit

Permalink
Load all default libs
Browse files Browse the repository at this point in the history
Load all default libs including os.
Closes #1267
  • Loading branch information
chreden committed Aug 15, 2024
1 parent 9f0c6b9 commit 42ffd54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trview.app/Lua/Lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ namespace trview
{LUA_LOADLIBNAME, luaopen_package},
{LUA_COLIBNAME, luaopen_coroutine},
{LUA_TABLIBNAME, luaopen_table},
{LUA_IOLIBNAME, luaopen_io},
{LUA_OSLIBNAME, luaopen_os},
{LUA_STRLIBNAME, luaopen_string},
{LUA_MATHLIBNAME, luaopen_math},
{LUA_UTF8LIBNAME, luaopen_utf8},
{LUA_DBLIBNAME, luaopen_debug}
{LUA_DBLIBNAME, luaopen_debug},
{NULL, NULL}
};
}

Expand Down

0 comments on commit 42ffd54

Please sign in to comment.