ALL NEW improved Binstore
also automaticly inlcude everything in src/bin
This commit is contained in:
@@ -31,7 +31,7 @@ class HomeContext {
|
||||
private var selectedOutput:String = "main";
|
||||
private var selectedOutputIndex:Int = -1;
|
||||
|
||||
private final listedApps:Array<String> = ["terminal", "log", "pfclient"];
|
||||
private final listedApps:Array<String> = ["terminal", "log", "tprint", "hello-gui"];
|
||||
|
||||
public function new() {}
|
||||
|
||||
@@ -101,14 +101,13 @@ class HomeContext {
|
||||
}
|
||||
|
||||
private function spawnPs(binName:String) {
|
||||
var bin = BinStore.getBinByAlias(binName);
|
||||
var ps = BinStore.instantiate(binName);
|
||||
|
||||
if (bin == null) {
|
||||
if (ps == null) {
|
||||
Log.error('Could not find bin: ${binName}');
|
||||
return;
|
||||
}
|
||||
|
||||
var ps = Type.createInstance(bin.c, []);
|
||||
var pid = ProcessManager.run(ps, {});
|
||||
var lastContextID = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user