File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1220,14 +1220,11 @@ void ScriptRunner::reset_scripts() {
1220
1220
std::filesystem::create_directories (autorun_path);
1221
1221
spdlog::info (" [ScriptRunner] Loading scripts..." );
1222
1222
1223
- auto path = std::filesystem::path (autorun_path);
1224
- auto dir = path.parent_path ();
1225
-
1226
1223
std::string old_path = m_main_state->lua ()[" package" ][" path" ];
1227
1224
1228
- std::string package_path = old_path + " ;" + dir .string () + " /?.lua" ;
1229
- package_path = package_path + " ;" + dir .string () + " /?/init.lua" ;
1230
- package_path = package_path + " ;" + dir .string () + " /?.dll" ;
1225
+ std::string package_path = old_path + " ;" + autorun_path .string () + " /?.lua" ;
1226
+ package_path = package_path + " ;" + autorun_path .string () + " /?/init.lua" ;
1227
+ package_path = package_path + " ;" + autorun_path .string () + " /?.dll" ;
1231
1228
1232
1229
m_main_state->lua ()[" package" ][" path" ] = package_path;
1233
1230
You can’t perform that action at this time.
0 commit comments