Skip to content
Snippets Groups Projects
Commit dcd3a7b9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix bug in previous commit to this file

find_startup_dir() returns an index, not a bool.
parent e5f90b44
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -449,7 +449,7 @@ var xtrn_dirs = fullpath(system.ctrl_dir + "../xtrn/*");
if(!ini_list.length) {
var dir_list = directory(xtrn_dirs);
for(var d in dir_list) {
if(!options.overwrite && find_startup_dir(dir_list[d]))
if(!options.overwrite && find_startup_dir(dir_list[d]) >= 0)
continue;
var fname = file_getcase(dir_list[d] + ini_fname);
if(fname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment