mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
26 lines
No EOL
709 B
C#
26 lines
No EOL
709 B
C#
using System;
|
|
using Cosmos.Compiler.Builder;
|
|
|
|
namespace CosmosBoot {
|
|
class Program {
|
|
#region Cosmos Builder logic
|
|
// Most users wont touch this. This will call the Cosmos Build tool
|
|
[STAThread]
|
|
static void Main(string[] args) {
|
|
BuildUI.Run();
|
|
}
|
|
#endregion
|
|
|
|
// Main entry point of the kernel
|
|
public static void Init() {
|
|
var xBoot = new Cosmos.Sys.Boot();
|
|
xBoot.Execute();
|
|
|
|
Console.WriteLine("Congratulations! You just booted C# code.");
|
|
Console.WriteLine("Edit Program.cs to create your own Operating System.");
|
|
while (true) {
|
|
// Put your code here
|
|
}
|
|
}
|
|
}
|
|
} |