Skip to content

Commit db60c43

Browse files
committed
Fix package path not including the scripts folder
1 parent 65beeb1 commit db60c43

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

UE4SS/src/Mod/LuaMod.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ namespace RC
10041004
std::string scripts_path_utf8 = normalize_path_for_lua(m_scripts_path);
10051005

10061006
// Create path strings with forward slashes for Lua
1007-
std::string script_path = fmt::format(";{}/{}/?.lua", mods_dir_utf8, mod_name_utf8);
1007+
std::string script_path = fmt::format(";{}/?.lua", scripts_path_utf8);
10081008
std::string shared_path = fmt::format(";{}/shared/?.lua", mods_dir_utf8);
10091009
std::string shared_nested_path = fmt::format(";{}/shared/?/?.lua", mods_dir_utf8);
10101010

@@ -1021,7 +1021,7 @@ namespace RC
10211021
lua_pop(lua_state, 1);
10221022

10231023
// Create cpath strings
1024-
std::string script_dll_path = fmt::format(";{}/{}/?.dll", mods_dir_utf8, mod_name_utf8);
1024+
std::string script_dll_path = fmt::format(";{}/?.dll", scripts_path_utf8);
10251025
std::string mod_dll_path = fmt::format(";{}/{}/?/?.dll", mods_dir_utf8, mod_name_utf8);
10261026

10271027
current_cpaths.append(script_dll_path);

0 commit comments

Comments
 (0)