Use Lua modules in tests from the source directory

pull/3236/head
elsid 7 months ago
parent 5553b00b84
commit 6d43aedec8
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -14,7 +14,8 @@ namespace
sol::protected_function mNew;
LuaUiContentTest()
{
mLuaState.addInternalLibSearchPath("resources/lua_libs");
mLuaState.addInternalLibSearchPath(
std::filesystem::path{ OPENMW_PROJECT_SOURCE_DIR } / "components" / "lua_ui");
mNew = LuaUi::loadContentConstructor(&mLuaState);
}

Loading…
Cancel
Save