コード例 #1
0
        /// <summary>
        /// Method called to start Aura_OS to run with filesystem and not logged to any user by default
        /// </summary>
        public void Run()
        {
            Console.Clear();

            Kernel.userLogged    = username;
            Kernel.JustInstalled = true;
            Kernel.running       = true;

            Console.Clear();
            //switch (Video.GetVideo())
            //{
            //    case "VGATextmode":
            //        //Kernel.AConsole = new System.Shell.VGA.VGAConsole(null);
            //        break;
            //    case "SVGA":
            //        // TO DO ?
            //        break;
            //    case "VESA":
            //        //Kernel.AConsole = new System.Shell.VESAVBE.VESAVBEConsole();
            //        break;
            //    default:
            //        //Kernel.AConsole = new System.Shell.VGA.VGAConsole(null);
            //        break;
            //}
            NetworkInit.Enable();
            WelcomeMessage.Display();
            Text.Display("logged", username);

            Console.WriteLine();

            Kernel.Logged = true;
        }
コード例 #2
0
 /// <summary>
 /// Method called to start Aura_OS without using filesystem and loggged to "root"
 /// </summary>
 public void RunWithoutFS(bool nofsroot) //logged with root without using filesystem
 {
     if (!nofsroot)
     {
         RegisterLanguage();
     }
     Kernel.SystemExists = false;
     Kernel.userLogged   = "root";
     Kernel.Logged       = true;
     Console.Clear();
     //switch (Video.GetVideo())
     //{
     //    case "VGATextmode":
     //        //Kernel.AConsole = new System.Shell.VGA.VGAConsole(null);
     //        break;
     //    case "SVGA":
     //        // TO DO ?
     //        break;
     //    case "VESA":
     //        //Kernel.AConsole = new System.Shell.VESAVBE.VESAVBEConsole();
     //        break;
     //    default:
     //        //Kernel.AConsole = new System.Shell.VGA.VGAConsole(null);
     //        break;
     //}
     NetworkInit.Enable();
     WelcomeMessage.Display();
     Text.Display("logged", "root");
     Text.Display("nofilesystem");
     Console.WriteLine();
     Kernel.running = true;
 }