added ID bin
This commit is contained in:
parent
3a2613d916
commit
07ad65d5cf
13
src/bin/ID.hx
Normal file
13
src/bin/ID.hx
Normal 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();
|
||||
}
|
||||
}
|
@ -22,6 +22,7 @@ class DCEHack {
|
||||
new bin.KSettings(),
|
||||
new bin.exporter.ResManager(),
|
||||
new bin.exporter.Res(),
|
||||
new bin.ID(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
package kernel.binstore;
|
||||
|
||||
import bin.ID;
|
||||
import bin.exporter.Res;
|
||||
import bin.exporter.ResManager;
|
||||
import bin.KSettings;
|
||||
@ -39,7 +40,8 @@ class BinStore {
|
||||
{c: Perf, name: "Perf", aliases: ["perf"]},
|
||||
{c: KSettings, name: "KSettings", aliases: ["ksettings","ks"]},
|
||||
{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)
|
||||
|
Loading…
Reference in New Issue
Block a user