From 05a220110d38c839679cc1c128badfee21aa7028 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Mon, 29 May 2023 21:50:01 +0200 Subject: [PATCH] added a hopfully temp hack for DCE --- src/kernel/DCEHack.hx | 21 +++++++++++++++++++++ src/kernel/Init.hx | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 src/kernel/DCEHack.hx diff --git a/src/kernel/DCEHack.hx b/src/kernel/DCEHack.hx new file mode 100644 index 0000000..7582ed5 --- /dev/null +++ b/src/kernel/DCEHack.hx @@ -0,0 +1,21 @@ +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(), + ]; + } +} diff --git a/src/kernel/Init.hx b/src/kernel/Init.hx index 766eeb3..3edad9b 100644 --- a/src/kernel/Init.hx +++ b/src/kernel/Init.hx @@ -15,6 +15,8 @@ import kernel.ui.WindowManager; import kernel.peripherals.Peripherals.Peripheral; import kernel.net.Net; +import kernel.DCEHack; // Important for DCE hack + class Init { @:allow(kernel.KernelEvents)