예제 #1
0
파일: Program.cs 프로젝트: Orvid/Cosmos
        // 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)
				;
		}
예제 #2
0
파일: Program.cs 프로젝트: zer09/Cosmos
        // 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)
            {
                ;
            }
        }