-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kernel.cs
36 lines (33 loc) · 857 Bytes
/
Kernel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using Sys = Cosmos.System;
using ComobiOS.BootCore;
namespace ComobiOS
{
public class Kernel : Sys.Kernel
{
public static string version = "1.0";
private static Shell main;
public static bool rst = false;
protected override void BeforeRun()
{
IOsteram.Clear();
IOsteram.Out("Loading ComobiOS...\n", ConsoleColor.Green);
FileSystem.Init();
Console.Beep();
Console.Beep();
Console.Beep();
main = new();
main.Home();
}
protected override void Run()
{
if (rst)
{
rst = false;
IOsteram.Clear();
main.Home();
}
main.Start();
}
}
}