diff --git a/exec/update.js b/exec/update.js index 29bfbe455667453ce77acb570dbd506ee6b2b45c..7e8462d0c930f09e2b0453032a3f1dc98ae56e5c 100644 --- a/exec/update.js +++ b/exec/update.js @@ -141,6 +141,14 @@ if(!xtrn_area.prog["avatchoo"] && !xtrn_area.event["avat-out"]) { print("Updating [General] Text File Section indexes"); print(update_gfile_indexes() + " indexes updated."); +var src = system.exec_dir + "jsexec.ini"; +var dst = system.ctrl_dir + "jsexec.ini"; +if(file_exists(src) && !file_exists(dst)) { + print("Moving " + src + " to " + dst); + if(!file_rename(src, dst)) + alert("Could not move '" + src + "' to '" + dst + "'"); +} + print("Updating (compiling) Baja modules"); var src_files = directory(system.exec_dir + "*.src"); for(var i in src_files) {