automatic add Process to DCEHack

This commit is contained in:
2023-07-09 15:29:26 +02:00
parent c390519393
commit 10a061c41b
3 changed files with 48 additions and 21 deletions

View File

@@ -3,26 +3,7 @@ package kernel;
@:keep
class DCEHack {
// Dont actually call this
public static function load() {
return [
new bin.Disk(),
new bin.GPS(),
new bin.HelloWorld(),
new bin.KernelLog(),
new bin.LSPS(),
new bin.Net(),
new bin.Redstone(),
new bin.Service(),
new bin.Terminal(),
new bin.Turtle(),
new bin.HelloWorldService(),
new bin.srsc.SiteRessourceController(),
new bin.srsc.CLI(),
new bin.Perf(),
new bin.KSettings(),
new bin.exporter.ResManager(),
new bin.exporter.Res(),
new bin.ID(),
];
public static function load():Array<kernel.ps.Process>{
macros.DCEHack.dceGenerateCreate();
}
}

View File

@@ -3,6 +3,7 @@ package kernel.ps;
/**
Defines an independent process that can be run by the kernel.
**/
@:autoBuild(macros.DCEHack.DCEHack.dceInclude())
interface Process {
public function run(handle: ProcessHandle): Void;
}