diff --git a/src/bin/ID.hx b/src/bin/ID.hx new file mode 100644 index 0000000..c81df48 --- /dev/null +++ b/src/bin/ID.hx @@ -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(); + } +} diff --git a/src/kernel/DCEHack.hx b/src/kernel/DCEHack.hx index 2a64a20..94a67c4 100644 --- a/src/kernel/DCEHack.hx +++ b/src/kernel/DCEHack.hx @@ -22,6 +22,7 @@ class DCEHack { new bin.KSettings(), new bin.exporter.ResManager(), new bin.exporter.Res(), + new bin.ID(), ]; } } diff --git a/src/kernel/binstore/BinStore.hx b/src/kernel/binstore/BinStore.hx index eedacdf..06a19bc 100644 --- a/src/kernel/binstore/BinStore.hx +++ b/src/kernel/binstore/BinStore.hx @@ -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)