diff --git a/boot/helicopter.ks b/boot/helicopter.ks index 1440a86..c3ea3a0 100644 --- a/boot/helicopter.ks +++ b/boot/helicopter.ks @@ -4,7 +4,7 @@ parameter debug is false. Bootstrap( "/boot/helicopter", -"/init/helicopter", +"/prog/helicopter", list("/lib/stabilize_helicopter"), list("/lib/ui"), debug diff --git a/boot/rocket.ks b/boot/rocket.ks index 832a92d..a4e0a52 100644 --- a/boot/rocket.ks +++ b/boot/rocket.ks @@ -16,7 +16,7 @@ local copied is list( Bootstrap( "/boot/rocket", -"/init/rocket", +"/prog/rocket", compiled, copied, debug diff --git a/lib/boot.ks b/lib/boot.ks index a2143ff..14a0eec 100644 --- a/lib/boot.ks +++ b/lib/boot.ks @@ -8,11 +8,17 @@ function Bootstrap { if debug { // Open a terminal and run init. CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). - run "/init". + if init <> "" { + run "/init". + } } else { DeletePath("1:" + bootfile). // Set OS to boot and restart. - set core:bootfilename to "/init". + if init = "" { + set CORE:BOOTFILENAME to init. + } else { + set CORE:BOOTFILENAME to "/init". + } reboot. } } @@ -38,6 +44,11 @@ function copyLibs { function compileInit { parameter init, debug is false. + + if init = "" { + return. + } + if debug { copypath("0:" + init, "1:/init"). return. diff --git a/init/helicopter.ks b/prog/helicopter.ks similarity index 100% rename from init/helicopter.ks rename to prog/helicopter.ks diff --git a/init/rocket.ks b/prog/rocket.ks similarity index 100% rename from init/rocket.ks rename to prog/rocket.ks