-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.ks
27 lines (22 loc) · 802 Bytes
/
update.ks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
parameter fromBin is false.
local dir is "0:/".
if fromBin {
runPath("0:/compile").
set dir to "0:/bin/".
}
// load libraries
if not exists("lib") {createDir("lib"). }
copyPath(dir + "lib/terminal", "lib/").
copyPath(dir + "lib/engine", "lib/").
// load standard boot script
if not exists("boot") {createDir("boot"). }
copyPath(dir + "boot/standard", "boot/").
// load node scripts and libs
if career():canMakeNodes {copyPath(dir + "lib/node", "lib/").}.
if career():canMakeNodes {copyPath(dir + "lib/burn", "lib/").}.
if career():canMakeNodes {copyPath(dir + "maneuver", "").}.
if career():canMakeNodes {copyPath(dir + "transfer", "").}.
if career():canMakeNodes {copyPath(dir + "capture", "").}.
// load launch and landing script
copyPath(dir + "launch", "").
copyPath(dir + "land", "").