default terminate action
This commit is contained in:
parent
fd1428c749
commit
ec00115216
@ -1,5 +1,6 @@
|
|||||||
package kernel;
|
package kernel;
|
||||||
|
|
||||||
|
import cc.OS;
|
||||||
import util.Debug;
|
import util.Debug;
|
||||||
import kernel.ui.WindowManager;
|
import kernel.ui.WindowManager;
|
||||||
import kernel.peripherals.Peripherals.Peripheral;
|
import kernel.peripherals.Peripherals.Peripheral;
|
||||||
@ -13,9 +14,14 @@ class Init {
|
|||||||
|
|
||||||
WindowManager.instance = new WindowManager();
|
WindowManager.instance = new WindowManager();
|
||||||
MainTerm.instance = new MainTerm();
|
MainTerm.instance = new MainTerm();
|
||||||
|
Log.init();
|
||||||
Net.instance = new Net();
|
Net.instance = new Net();
|
||||||
|
|
||||||
Log.init();
|
|
||||||
|
// Register default terminate handler
|
||||||
|
KernelEvents.instance.onTerminate.handle(_->{
|
||||||
|
OS.reboot();
|
||||||
|
});
|
||||||
|
|
||||||
Debug.printBuildInfo();
|
Debug.printBuildInfo();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user