This should be a good way to handle ksm compilation in the code.

This commit is contained in:
Kenwood 2021-04-09 02:53:24 -04:00
parent c6d965e473
commit 68939d48bc
1 changed files with 1 additions and 3 deletions

View File

@ -22,9 +22,7 @@ clearscreen.
NOTIFY("Boot sequence complete, prepare to load and compile the flight scripts.").
IF true { // Set this to false to avoid compiling ascent code.
SWITCH TO 0.
COPYPATH("0:/RadarrSeries/radarr.kerbin.ks", ""). // Copy over our launch script from the archive at ksc
COMPILE "radarr.kerbin.ks" to "ascent.ksm". // Compile the flight code into a ksm object.
COMPILE "0:/RadarrSeries/radarr.kerbin.ks" to "1:/ascent.ksm". // Compile the flight code into a ksm object.
} ELSE {
COPYPATH("0:/RadarrSeries/radarr.kerbin.ks", "1:/ascent.ks"). // Copy over our launch script from the archive at ksc
}