Skip to content
Snippets Groups Projects
Commit c4ecdec8 authored by rswindell's avatar rswindell
Browse files

Use relative paths for xtrn startup_dir directories. And forward-slashes.

This makes the config files more portable/migratable.
parent 3d215714
Branches
Tags
No related merge requests found
......@@ -91,6 +91,7 @@ const REVISION = "$Revision$".split(' ')[1];
const ini_fname = "install-xtrn.ini";
load("sbbsdefs.js");
var relpath = load({}, "relpath.js");
var options = {
debug: false,
......@@ -160,7 +161,7 @@ function install_xtrn_item(cnf, type, name, desc, item)
var which;
while ((!which || which > xtrn_area.sec_list.length) && !aborted())
which = js.global.prompt("Install " + item.name + " into which External Program Section");
which = js.global.prompt("Install " + item.name + " into which section");
if(aborted())
return false;
which = parseInt(which, 10);
......@@ -232,7 +233,7 @@ function install(ini_fname)
return "Failed to read " + system.ctrl_dir + "xtrn.cnf";
var startup_dir = ini_fname.substr(0, Math.max(ini_fname.lastIndexOf("/"), ini_fname.lastIndexOf("\\"), 0));
startup_dir = backslash(startup_dir);
startup_dir = relpath.get(system.ctrl_dir, startup_dir);
const types = {
prog: { desc: "External Program", struct: "xtrn" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment