ALL NEW improved Binstore

also automaticly inlcude everything in src/bin
This commit is contained in:
2024-01-22 03:34:19 +01:00
parent 92deb7177f
commit 295d284bc1
13 changed files with 172 additions and 126 deletions

View File

@@ -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;