File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments