Beispiel #1
0
        // Here is where your Cosmos code goes. This is the code that will be executed during Cosmos boot.
        // Write your code, and run. Cosmos build console will appear, select your target, and thats it!
        public static void Init() {
			try {
                var xBoot = new Cosmos.Sys.Boot();
                xBoot.Execute();
                //System.Console.WriteLine("Sorry - the Cosmos.Shell.Console is currently not working.");
                Prompter pmt = new Prompter();
                pmt.Initialize();
				//stages.Enqueue(new Prompter());

			} catch (Exception E) {
                System.Console.WriteLine("Error occurred:");
                System.Console.Write("    ");
                System.Console.WriteLine(E.Message);
			}

			System.Console.WriteLine("Halting system now!..");
			
			// Halt system.
			while (true)
				;
		}
Beispiel #2
0
        // Here is where your Cosmos code goes. This is the code that will be executed during Cosmos boot.
        // Write your code, and run. Cosmos build console will appear, select your target, and thats it!
        public static void Init()
        {
            try {
                var xBoot = new Cosmos.Sys.Boot();
                xBoot.Execute();
                //System.Console.WriteLine("Sorry - the Cosmos.Shell.Console is currently not working.");
                Prompter pmt = new Prompter();
                pmt.Initialize();
                //stages.Enqueue(new Prompter());
            } catch (Exception E) {
                System.Console.WriteLine("Error occurred:");
                System.Console.Write("    ");
                System.Console.WriteLine(E.Message);
            }

            System.Console.WriteLine("Halting system now!..");

            // Halt system.
            while (true)
            {
                ;
            }
        }