mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 21:36:42 +00:00
Use Lua modules in tests from the source directory
This commit is contained in:
parent
5553b00b84
commit
6d43aedec8
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ namespace
|
||||||
sol::protected_function mNew;
|
sol::protected_function mNew;
|
||||||
LuaUiContentTest()
|
LuaUiContentTest()
|
||||||
{
|
{
|
||||||
mLuaState.addInternalLibSearchPath("resources/lua_libs");
|
mLuaState.addInternalLibSearchPath(
|
||||||
|
std::filesystem::path{ OPENMW_PROJECT_SOURCE_DIR } / "components" / "lua_ui");
|
||||||
mNew = LuaUi::loadContentConstructor(&mLuaState);
|
mNew = LuaUi::loadContentConstructor(&mLuaState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue