Cosmos/Users/Sentinel/SentinelKernel/Kernel.cs
Matthijs ter Woord a419c9bd9a Add extra code.
2015-05-05 13:57:07 +02:00

37 lines
904 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using SentinelKernel.System.FileSystem.VFS;
using Sys = Cosmos.System;
namespace SentinelKernel
{
public class Kernel : Sys.Kernel
{
private VFSBase myVFS;
protected override void BeforeRun()
{
Console.WriteLine("Cosmos booted successfully.");
myVFS = new SentinelVFS();
VFSManager.RegisterVFS(myVFS);
}
protected override void Run()
{
Console.WriteLine("Run");
bool xTest = Directory.Exists("0:\\test");
Console.WriteLine("After test");
if (xTest)
{
Console.WriteLine("Folder exists!");
}
else
{
Console.WriteLine("Folder does not exist!");
}
Stop();
}
}
}