idk routing stuff i guess

This commit is contained in:
2022-02-24 19:47:27 +01:00
parent ebd9709c3d
commit c96d06653a
25 changed files with 338 additions and 399 deletions

View File

@@ -1,5 +1,7 @@
package kernel;
import haxe.MainLoop;
import kernel.net.Routing;
import cc.OS;
import util.Debug;
import kernel.ui.WindowManager;
@@ -10,13 +12,20 @@ class Init {
public static function initKernel() {
// Init singeltons here because haxe is confused about the order to create them.
KernelEvents.instance = new KernelEvents();
MainLoop.add(() -> {
KernelEvents.instance.startEventLoop();
},1);
Peripheral.instance = new Peripheral();
WindowManager.instance = new WindowManager();
MainTerm.instance = new MainTerm();
Log.init();
Routing.instance = new Routing();
Net.instance = new Net();
Routing.instance.init();
// Register default terminate handler
KernelEvents.instance.onTerminate.handle(_->{
@@ -24,5 +33,8 @@ class Init {
});
Debug.printBuildInfo();
Log.moveToOutput("main");
}
}