added ID bin

This commit is contained in:
Djeeberjr 2023-06-26 20:16:31 +02:00
parent 3a2613d916
commit 07ad65d5cf
3 changed files with 17 additions and 1 deletions

13
src/bin/ID.hx Normal file
View File

@ -0,0 +1,13 @@
package bin;
import kernel.ps.ProcessHandle;
import kernel.ps.Process;
class ID implements Process {
public function new() {}
public function run(handle:ProcessHandle) {
handle.writeLine("ID: " + kernel.net.Net.instance.networkID);
handle.close();
}
}

View File

@ -22,6 +22,7 @@ class DCEHack {
new bin.KSettings(), new bin.KSettings(),
new bin.exporter.ResManager(), new bin.exporter.ResManager(),
new bin.exporter.Res(), new bin.exporter.Res(),
new bin.ID(),
]; ];
} }
} }

View File

@ -1,5 +1,6 @@
package kernel.binstore; package kernel.binstore;
import bin.ID;
import bin.exporter.Res; import bin.exporter.Res;
import bin.exporter.ResManager; import bin.exporter.ResManager;
import bin.KSettings; import bin.KSettings;
@ -39,7 +40,8 @@ class BinStore {
{c: Perf, name: "Perf", aliases: ["perf"]}, {c: Perf, name: "Perf", aliases: ["perf"]},
{c: KSettings, name: "KSettings", aliases: ["ksettings","ks"]}, {c: KSettings, name: "KSettings", aliases: ["ksettings","ks"]},
{c: ResManager, name: "ResManager", aliases: ["resmanager","resmgr"]}, {c: ResManager, name: "ResManager", aliases: ["resmanager","resmgr"]},
{c: Res, name: "Res", aliases: ["res"]} {c: Res, name: "Res", aliases: ["res"]},
{c: ID , name: "ID", aliases: ["id"]}
]; ];
@:allow(kernel.Init) @:allow(kernel.Init)