-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKernel.cs
More file actions
47 lines (38 loc) · 1.09 KB
/
Kernel.cs
File metadata and controls
47 lines (38 loc) · 1.09 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
using Sys = Cosmos.System;
using Cosmos.System.Graphics;
using BiscuitOS.FileExplorer;
using S = BiscuitOS.Shell;
using BiscuitOS.FileExplorer.Application;
using System;
using System.IO;
using BiscuitOS.ExceptionHandling;
namespace BiscuitOS
{
public class Kernel : Sys.Kernel
{
Sys.FileSystem.CosmosVFS fs = new Sys.FileSystem.CosmosVFS();
public static Canvas canvas;
protected override void BeforeRun()
{
Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
Console.Clear();
Guts.System.OSStartUp();
try
{
File.WriteAllText("Bob/bob/bob.txt", "Nope");
}
catch (Exception ex)
{
BConsole.WriteLine("Error");
OSException.CreateErrorLog(ErrorTypes.Unknown, ex, "This is a message");
}
//Renderer.StartGUIMode();
}
protected override void Run()
{
//AppManager.TickHandlers();
S.Shell.TickShell();
//Renderer.RenderScreen();
}
}
}