-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernel.cs
More file actions
58 lines (43 loc) · 1.1 KB
/
Kernel.cs
File metadata and controls
58 lines (43 loc) · 1.1 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using Cosmos.System;
using Cosmos.System.FileSystem;
using Cosmos.System.FileSystem.VFS;
using Cosmos.System.Graphics;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using Sys = Cosmos.System;
namespace PerfexiOS
{
public class Kernel : Sys.Kernel
{
protected override void BeforeRun()
{
var fs = new CosmosVFS();
VFSManager.RegisterVFS(fs);
Globals.FSinitalised = true;
if (KeyboardManager.ControlPressed)
{
Globals.mode = 2;
}
else
{
try
{
Mirage.DE.DesktopEnvironment.Start("Perfexi OS", "HARDCHAIR1");
}
catch (Exception ex)
{
Globals.mode = 2;
}
}
}
protected override void Run()
{
if(Globals.mode ==2)
{
Commands.TextTerminal.loop();
}
}
}
}