Example #1
0
        protected override void BeforeRun()
        {
            //----------------------------------------------------------------------------------------------------

            /*Can try to make a good loader from SVGII driver! Trying for animation on startup.
             *
             * Cosmos.HAL.Drivers.PCI.Video.VMWareSVGAII driver = new Cosmos.HAL.Drivers.PCI.Video.VMWareSVGAII();
             * driver.SetMode(1280, 720);
             * driver.Clear(0xFFF);*/

            //----------------------------------------------------------------------------------------------------

            InitAnim.main();                     // Initial animation. Loads too fast to see tho. :/

            fs = new Sys.FileSystem.CosmosVFS(); // Initializing a FAT file system with recycle bin.
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            if (!Directory.Exists(@"0:\RecycleBin"))
            {
                Directory.CreateDirectory(@"0:\RecycleBin");
            }

            LogoASCII.main();      // Initialize Logo.

            Console.WriteLine(""); // Get system date & time.
            DateTime date = DateTime.Now;

            Console.WriteLine(date);

            Console.WriteLine("\n\nOperating System booted successfully! Press ENTER to continue");
            Console.ReadLine();
            Console.WriteLine("Enter a command or type 'HELP' to get started.");

            //----------------------------------------------------------------------------------------------------
        }
Example #2
0
        protected override void BeforeRun()
        {
            fs = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);

            Console.WriteLine("Cosmos booted successfully. Type a 'help' to see commands");
        }
Example #3
0
        protected override void BeforeRun()
        {
            //at this point, our code is executing. print a message to inform the user of this.
            func.Success("Kernel execution started.");

            //cute startup beep tune :)
#if (STARTUP_BEEPS)
            for (uint i = 600; i <= 1000; i += 200)
            {
                Sys.PCSpeaker.Beep(i, 200);
            }
#endif

            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine("Screen res is " + Console.WindowWidth + "x" + Console.WindowHeight + ".");

            appletIndex = new AppletIndex();
            Console.WriteLine("Loaded App Register.");

#if (AUTOLOAD_VFS)
            vfs = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(vfs);
            Console.WriteLine("Initialised VFS.");
            IsVFSInit = true;
#endif

            func.Success(string.Format("-=PandoraOS V{0} booted successfully=- {1}MB free!", SYS_VERSION, Cosmos.Core.CPU.GetAmountOfRAM()));
        }
Example #4
0
        protected override void BeforeRun()
        {
            KernelUtils.Init(this);
            Curse.kern = this;
            env_vars  += ";VERSION:" + kernel_version + ";KERNEL:" + kernel_flavour;
            FS         = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(FS);
            FS.Initialize();
            Console.WriteLine("Scanning filesystems...");
            if (!Directory.Exists(@"0:\"))
            {
                Curse.ShowMessagebox("FAT Driver", "Cosmos could not find a valid FAT filesystem on 0:\\. Some Memphis applications may not function.");
            }
            UserManager.LoginScreen();
            Console.Clear();
            Console.WriteLine(memphis_logo);
            Console.WriteLine("Welcome to Memphis.");
            Console.WriteLine($"Version: {GetVar("VERSION")}\t\tKernel flavour: {GetVar("KERNEL")}");
            Console.WriteLine($@"System information:
 - FAT partition count: {Sys.FileSystem.VFS.VFSManager.GetVolumes().Count}
 - Current user: {UserManager.CurrentUser.Name}
 - Permission level: {UserManager.CurrentUser.PermissionLevel}
 - User Directory: {UserManager.CurrentUser.UserDirectory}
 - Current date and time is: {SystemInfo.Time.ToString()}");
        }
Example #5
0
        protected override void BeforeRun()
        {
            // Initialize filesystems
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            // Clear the screen
            Console.Clear();
            // Nice little startup logo thing
            // The sound is totally not a reference to the Commodore PET
            Console.Beep(4000, 100);
            Console.Beep(8000, 100);
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("    ___                ___  ____  ____  ");
            Console.Beep(4000, 100);
            Console.Beep(8000, 100);
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("   / _ \\_______ __ _  / _ \\/ __ \\/ __/ ");
            Console.Beep(4000, 100);
            Console.Beep(8000, 100);
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("  / // / __/ -_)  ' \\/ // / /_/ /\\ \\  ");
            Console.Beep(4000, 100);
            Console.Beep(8000, 100);
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine(" /____/_/  \\__/_/_/_/____/\\____/___/ ");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("\nNOTICE: THIS SOFTWARE IS PROVIDED AS-IS AND INCLUDES ABSOLUTELY NO WARRENTY. ANY DAMAGE TO YOUR DEVICE AND/OR DATA IS ON YOU!");
            Console.ForegroundColor = ConsoleColor.DarkRed;
            Console.WriteLine("YOU HAVE BEEN WARNED!");
            Console.ForegroundColor = ConsoleColor.White;
            // Display OS information
            Command();
        }
Example #6
0
        protected override void BeforeRun()
        {
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);

            if (!File.Exists("0:\\settings.ini"))
            {
                File.Create("0:\\settings.ini");
                using (StreamWriter writer = new StreamWriter("0:\\settings.ini"))
                {
                    currentTheme = 1;
                    writer.WriteLine("theme = " + currentTheme);
                }
            }
            string[] settings = File.ReadAllLines("0:\\settings.ini");

            string theme_settings = settings[0];
            var    theme          = theme_settings.Substring(theme_settings.Length - 1);

            Int32.TryParse(theme, out int x);
            currentTheme = x;

            OSinit();
        }
Example #7
0
 protected override void BeforeRun()
 {
     try
     {
         Console.BackgroundColor = ConsoleColor.Blue;
         Console.Clear();
         Console.WriteLine("Loading Built In Apps");
         BuiltInApps  = new BuiltInApps();
         signInSheet  = new SignInSheet();
         ticTacToe    = new TicTacToe();
         essayReviser = new EssayReviser();
         pong         = new Pong();
         makeArt      = new MakeArt();
         Console.WriteLine("Loading Thread Manager");
         threadManager = new ThreadManager();
         Console.WriteLine("Loading NoteBook");
         var fs = new Sys.FileSystem.CosmosVFS();
         Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
         saveFiles = new SaveFiles();
         noteBook  = new NoteBook();
         Console.WriteLine("Loading Knowldege");
         knowledge = new Knowledge();
         Console.WriteLine("Loading Graphical Effexts");
         gfx = new GraphicFx();
         Console.WriteLine("Constellation OS booted succesfully");
         systemLogger = new SystemLogger();
         systemLogger.Log("Constellation booted up");
     }
     catch (Exception e)
     {
         Console.WriteLine("Err 0; BOOTFALIURE\nMSG: " + e.Message);
         Console.ReadKey();
         Sys.Power.Shutdown();
     }
 }
Example #8
0
        /// <summary>
        /// Initial kernel method, overrides the built-in Cosmos BeforeRun method
        /// </summary>
        protected override void BeforeRun()
        {
            fs = new Cosmos.System.FileSystem.CosmosVFS();
            VFSManager.RegisterVFS(fs);
            fs.Initialize();
            Console.Clear();
            OSVars.Ver();
            //This is just to identify the users machine, much later in Medli will this have any usage however
            //i.e. not until networking is set up, FS Permissions are working etc...
            //If it wasn't able to find a machinename file, then it will try and create one.
            //This is why initializing the filesystem is vital before executing this code.

            /*
             * if (File.Exists(OSVars.reginfo))
             * {
             *  string[] lines = File.ReadAllLines(OSVars.reginfo);
             *  foreach (string line in lines)
             *  {
             *      OSVars.regname = line;
             *  }
             */

            PreInit();


            Console.Clear();
            OSVars.Ver();
        }
Example #9
0
        protected override void BeforeRun()
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            Console.BackgroundColor = ConsoleColor.Black;
filesystem: //initialize filesystem
            Console.Write("Do you want to enable the file system  (Y/N)?");
            var filesys = Console.ReadLine();

            if (filesys == "Y" || filesys == "y")
            {
                FSinit = true;
                Console.WriteLine("File System Will Be Initialized!");
                var fs = new Sys.FileSystem.CosmosVFS(); //in built function to make a new file system
                Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            }
            else if (filesys == "N" || filesys == "n")
            {
                Console.WriteLine("File System Will NOT Be Initialized!");
            }
            else
            {
                goto filesystem;
            }
            try
            {
                file_system.createDir("0:\\System86");  //initial directory creation
                file_system.createDir("0:\\User");
                file_system.createDir("0:\\User\\Documents");
                Sys.KeyboardManager.SetKeyLayout(new Sys.ScanMaps.US_Standard()); //setting keyboard input layout to US standard
            }
            catch (Exception exc)
            {
                goto fatto;
            }
fatto:
            Console.Clear();
            logo.Logo(version);
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("                                                                            ");
            Console.WriteLine("                             Successfully booted                            ");
            Console.WriteLine("                                                                            ");
inizia:
            Console.Write(username + " do you want to start?(Y/N)");
            var sino = Console.ReadLine();

            if (sino == "Y" || sino == "y")
            {
                Console.Clear();
                Console.Write("Welcome to IOTA OS!!!!\n");
            }
            else if (sino == "N" || sino == "n")
            {
                Stop();
            }
            else
            {
                goto inizia;
            }
        }
Example #10
0
        protected override void BeforeRun()
        {
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.BackgroundColor = ConsoleColor.Black;
file_system:
            Console.Write("Do you want to enable the file system?(Y/N)");
            var filesys = Console.ReadLine();

            if (filesys == "Y")
            {
                FS = true;
                Console.Write("File system will be Initialized");
                var fs = new Sys.FileSystem.CosmosVFS(); //in-built function to make a new file system
                Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            }
            else if (filesys == "N")
            {
                Console.WriteLine("File System will not be Initiated");
            }
            else
            {
                goto file_system;
            }
            try
            {
                filesystem.createDir("0:\\System1"); //initial directory creation
                filesystem.createDir("0:\\User");
                filesystem.createDir("0:\\User\\Documents");
                Sys.KeyboardManager.SetKeyLayout(new Sys.ScanMaps.US_Standard()); //keeping keyboard layout as US standarad
            }
            catch (Exception exc)
            {
                goto fatto;
            }
fatto:
            Console.Clear();
            logo.Logo();
            Console.WriteLine("                                                  ");
            Console.WriteLine("           Successfully Booted                    ");
            Console.WriteLine("                                                  ");
inizia:
            Console.WriteLine("Please enter password to log in! (Type N to shutdown)");
            var sino = Console.ReadLine();

            if (sino == pass)
            {
                Console.Clear();
                Console.Write("Welcome to ArrowOS!!\n");
            }
            else if (sino == "N" || sino == "n")
            {
                Stop();
            }
            else
            {
                goto inizia;
            }
        }
Example #11
0
        public FileSystem()
        {
            Console.WriteLine("Booting, filesystem");
            //Register the file system
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
        }
Example #12
0
        protected override void BeforeRun()
        {
            //filesystem
A:
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            fs.Initialize();
            fs.CreateDirectory("0:\\PROGRAM");
            fs.CreateDirectory("0:\\OS");
            fs.CreateDirectory("0:\\document");
            var    CD = fs.CreateFile("0:\\document\\test.txt");
            var    GD = fs.GetFile("0:\\document\\test.txt");
            string RD = GD.ToString();

            Console.WriteLine(RD);
            //text color
            var textscr = Cosmos.HAL.Global.TextScreen;

            Cosmos.System.Global.Console = new Cosmos.System.Console(textscr);
            Cosmos.HAL.Global.TextScreen = textscr;
            Console.ForegroundColor      = ConsoleColor.Green;
            Console.BackgroundColor      = ConsoleColor.Black;
            //debug
            Kernel.PrintDebug("test");

            //login
E:
            Console.WriteLine("RF OS V 1.0 TERMLINK");
            Console.Write("login user password:"******"admin";
            string inputp   = Console.ReadLine();

            if (inputp == password)
            {
                Console.Clear();
                Run();
            }
            else
            {
                Console.WriteLine("ENTRY DENIED TRY AGAIN");
                Console.WriteLine("press any key to repeat");
                Console.ReadKey();
                Console.Clear();
                goto E;
            }
            if (inputp == "rundebugmode")
            {
                Console.Clear();
                goto A;
            }
            if (inputp == "shutdown")
            {
                Sys.Power.Shutdown();
            }
        }
Example #13
0
 protected override void BeforeRun()
 {
     //Create a new FAT filesystem access object.
     var fs = new Sys.FileSystem.CosmosVFS();
     //Register the access object with the VFSManager, so that System.IO can access it.
     Cosmos.System.FileSystem.VFS.VFSManager.RegisterVFS(fs);
     //Some descriptions...
     Console.WriteLine("Welcome to FrotzCosmos, the Cosmos port of the Frotz.NET emulator for emulating Infocom Z-Machine games.");
     Console.WriteLine("Created by Michael VanOverbeek, with help from mterwoord, Kudzu, and the other Cosmos devs.");
 }
Example #14
0
        protected override void BeforeRun()
        {
            //Create a new FAT filesystem access object.
            var fs = new Sys.FileSystem.CosmosVFS();

            //Register the access object with the VFSManager, so that System.IO can access it.
            Cosmos.System.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            //Some descriptions...
            Console.WriteLine("Welcome to FrotzCosmos, the Cosmos port of the Frotz.NET emulator for emulating Infocom Z-Machine games.");
            Console.WriteLine("Created by Michael VanOverbeek, with help from mterwoord, Kudzu, and the other Cosmos devs.");
        }
Example #15
0
        protected override void BeforeRun()
        {
            Console.WriteLine("\n\n\nInitialising Filesystem!");
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            Console.WriteLine("Initialised Filesystem!\n\n\n");
            Console.Clear();
            Console.WriteLine("Welcome to Velocity [v" + version + "].\n");
            Console.WriteLine("Current time: " + time.Hour() + ":" + time.Minute() + ":" + time.Second() + "\n");
            Console.WriteLine("Velocity/Cosmos comes with ABSOLUTELY NO WARRANTY,\nto the extent permitted by applicable law.\n");
        }
Example #16
0
        protected override void BeforeRun()
        {
            // this will be used to keep track of the current sessions dir
            currentDir = new filesystem.Dir();

            // filesytem
            fs = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);

            Console.WriteLine("Sphere OS Copyright(C) 2021  Dinuda Yaggahavita, Tarith Jayasooriya");
            Console.WriteLine("This program comes with ABSOLUTELY NO WARRANTY;  This is free software, and you are welcome to redistribute it");
        }
Example #17
0
 protected override void BeforeRun()
 {
     fileSystem = new Sys.FileSystem.CosmosVFS();
     Sys.FileSystem.VFS.VFSManager.RegisterVFS(fileSystem);
     ioHandler       = new IOHandler();
     commandHandler  = new CommandHandler(this);
     graphicsManager = new GraphicsManager(this);
     graphicsManager.Initialize();
     directoryManager = new DirectoryManager(this);
     directoryManager.Initialize();
     Console.Clear();
     Console.WriteLine("Kuiper OS booted successfully.");
 }
Example #18
0
        protected override void BeforeRun()
        {
            try
            {
                var fs = new Sys.FileSystem.CosmosVFS();
                Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);

                Console.WriteLine("ZinaOS booted completely!");
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message);
            }
        }
Example #19
0
 /// <summary>
 /// Runs before the run() function runs
 /// </summary>
 #region before
 protected override void BeforeRun()
 {
     #region IOHelper_Before
     var fs = new Sys.FileSystem.CosmosVFS();
     Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
     #endregion
     loadingscreen.loadScreen();
     Console.Clear();
     Console.WriteLine();
     Console.WriteLine();
     Console.WriteLine();
     Cred.authentication();
     Console.WriteLine("Welcome To DogeDOS 1.0");
     user = ReadText("creduser");
 }
Example #20
0
        protected override void BeforeRun()
        {
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            clear();
            Console.WriteLine("BBBB      B     BBBBBB      BBBB       BBBB      BBBBB");
            Console.WriteLine("B   B           B     B     B   B     B    B    B");
            Console.WriteLine("B    B    B     B     B     B    B    B    B   B");
            Console.WriteLine("BBBBB     B     BBBBBBB     BBBBB     B    B   BBBBBBB");
            Console.WriteLine("B    B    B     BB          B    B    B    B         B");
            Console.WriteLine("B   B     B     B  B        B   B     B    B        B");
            Console.WriteLine("BBBB      B     B   BB      BBBB       BBBB    BBBBB");
            Console.WriteLine("");
        }
Example #21
0
        protected override void BeforeRun()
        {
            Console.WriteLine("Cosmos loaded. Booting the kernel!");
            Console.WriteLine("Initializing update package.");
            //update.BeforeRun();
            Console.WriteLine("Initializing components.");
            Console.WriteLine("FS Driver");
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            Console.WriteLine("VGA Driver");
            VGADriverII.Initialize(VGAMode.Text80x25);
            Terminal.Clear();
            Modules.UC.username = "******";
        }
Example #22
0
        protected override void BeforeRun()
        {
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            varibles_names.Add("path");
            varibles.Add(pathvar.TrimEnd('\\'));
            Langselect();
            Console.BackgroundColor = ConsoleColor.Black;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(Languages.Text("welcome"));
            Console.WriteLine(Languages.Text("help-info"));
            SysFiglet();
            Console.WriteLine("");
        }
Example #23
0
        protected override void BeforeRun()
        {
            debugger = mDebugger;
            Console.Clear();
            Console.WriteLine("Welcome to verySmallOS\n");
            SetKeyboardScanMap(EnvironmentUtils.QueryUserForKeymap());

            /*
             * var fsFactory = new Sys.FileSystem.FatFileSystemFactory();
             * var blockDevice = BlockDevice.Devices.First();
             * var partition = new Partition(blockDevice, 254, 50000);
             * fileSystem = fsFactory.Create(partition, "0:", 47000);
             */

            fileSystem = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fileSystem);
            Console.WriteLine("\n(Use \"startx\" to enter the rudimentary graphical mode :))\n\n\n\n\n\n");
        }
Example #24
0
 protected override void BeforeRun()
 {
     var fs = new Sys.FileSystem.CosmosVFS();
     Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
     Console.Clear();
     Console.ForegroundColor = ConsoleColor.Blue;
     Console.WriteLine("@@@@@@@   @@@   @@@@@@@@  @@@@@@@@   @@@@@@   @@@  @@@   @@@@@@    @@@@@@ ");
     Console.WriteLine("@@@@@@@@  @@@  @@@@@@@@@  @@@@@@@@  @@@@@@@@  @@@@ @@@  @@@@@@@@  @@@@@@@ ");
     Console.WriteLine("@@!  @@@  @@!  !@@        @@!       @@!  @@@  @@!@!@@@  @@!  @@@  !@@     ");
     Console.WriteLine("!@!  @!@  !@!  !@!        !@!       !@!  @!@  !@!!@!@!  !@!  @!@  !@!     ");
     Console.WriteLine("@!@@!@!   !!@  !@! @!@!@  @!!!:!    @!@  !@!  @!@ !!@!  @!@  !@!  !!@@!!  ");
     Console.WriteLine("!!@!!!    !!!  !!! !!@!!  !!!!!:    !@!  !!!  !@!  !!!  !@!  !!!   !!@!!! ");
     Console.WriteLine("!!:       !!:  :!!   !!:  !!:       !!:  !!!  !!:  !!!  !!:  !!!       !:!");
     Console.WriteLine(":!:       :!:  :!:   !::  :!:       :!:  !:!  :!:  !:!  :!:  !:!      !:! ");
     Console.WriteLine(" ::        ::   ::: ::::   :: ::::  ::::: ::   ::   ::  ::::: ::  :::: :: ");
     Console.WriteLine(" :        :     :: :: :   : :: ::    : :  :   ::    :    : :  :   :: : :  ");
     Console.ForegroundColor = ConsoleColor.White;
 }
Example #25
0
        bool AccessConsole = false; //To check whether Console Access is required
        protected override void BeforeRun()
        {
            //file system check info
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);      //displays fat file system info
            //end
            Utilities.JackalOSLogo();
            Console.WriteLine("Welcome to the Updated JackalOS. v3.0.1");
            Console.Beep();
            Console.WriteLine("OS is loading....");
            Console.WriteLine("To load in Console Mode press c, Press any other key to continue to GUI");
            char Choice = Char.Parse(Console.ReadLine());

            if (Choice == 'c')
            {
                AccessConsole = true;
            }
        }
Example #26
0
        protected override void Run()
        {
            var fs = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            string cmd;

            string input;

            if (!Directory.Exists(@"0:\os"))
            {
                Directory.CreateDirectory(@"0:\os");
            }
            File.WriteAllText(@"0:\os\testfile.txt", "TEST DATA");
            File.ReadAllText(@"0:\os\testfile.txt");

            if (!File.Exists(@"0:\os\user.cfg"))
            {
                Console.WriteLine("CommandOS Setup");
                Console.Write("Username: "******"0:\os\user.cfg", stp);
                username = inpstp;
            }
            else
            {
                username = File.ReadAllLines(@"0:\os\user.cfg")[0];
            }
            data.prompt = username + "@Chipmunk  $  ";

            Console.Clear();

            Console.WriteLine("Welcome to CommandOS!");

            while (true)
            {
                Console.Write(data.prompt);
                cmd = Console.ReadLine();
                CommandHandler.exec(cmd);
            }
        }
Example #27
0
        public static void Init()
        {
            Console.WriteLine("Initializing FileSystems...");
            var FileSys = new Sys.FileSystem.CosmosVFS();

            Sys.FileSystem.VFS.VFSManager.RegisterVFS(FileSys);
            FileSys.Initialize();
            GetCoreInfo.CoreInfo();
            Console.WriteLine("Filesystems Initialized.");
            Console.WriteLine("System dir separator: " + Sys.FileSystem.VFS.VFSManager.GetDirectorySeparatorChar());
            Console.Clear();
            if (!Directory.Exists(@"0:\"))
            {
                osvars.livesession = true;
                ErrorHandler.Warning(2, "fsnf");
                Console.WriteLine("Chocolate could not find a valid FAT Filesystem on your main hard drive.");
                Console.WriteLine("Some Applications may not work, so for full functionality");
                Console.WriteLine("use a hard drive partition tool to create one.");
                Console.WriteLine("Chocolate will run in Live mode.");
            }
            else
            {
                Console.WriteLine("Chocolate has detected a FAT FileSystem.");
                Console.WriteLine("You now have the choice to run Chocolate as a Live user or a fully featured user.");
                Console.WriteLine("Live users are only good for debugging purposes.");
                Console.WriteLine("Do you wish to run as a full user?");
                string uclive = Console.ReadLine();
                if (uclive == "yes")
                {
                    if (!Directory.Exists(usrs_dir))
                    {
                        Directory.CreateDirectory(usrs_dir);
                    }
                    osvars.livesession = false;
                }
                else if (uclive == "no")
                {
                    osvars.livesession = true;
                    current_user       = "******";
                }
            }
        }
Example #28
0
        ///<summary>
        ///Before the operating system boots
        ///</summary>
        protected override void BeforeRun()
        {
            fs = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Welcome back User!");
            Console.Write("Password:"******"csOS_user")
            {
                Console.Clear();
                Run();
            }
            else
            {
                BeforeRun();
            }
        }
Example #29
0
 public static void Init()
 {
     Console.WriteLine("Initializing FileSystems...");
     var FileSys = new Sys.FileSystem.CosmosVFS();
     Sys.FileSystem.VFS.VFSManager.RegisterVFS(FileSys);
     FileSys.Initialize();
     GetCoreInfo.CoreInfo();
     Console.WriteLine("Filesystems Initialized.");
     Console.WriteLine("System dir separator: " + Sys.FileSystem.VFS.VFSManager.GetDirectorySeparatorChar());
     Console.Clear();
     if (!Directory.Exists(@"0:\"))
     {
         osvars.livesession = true;
         ErrorHandler.Warning(2, "fsnf");
         Console.WriteLine("Chocolate could not find a valid FAT Filesystem on your main hard drive.");
         Console.WriteLine("Some Applications may not work, so for full functionality");
         Console.WriteLine("use a hard drive partition tool to create one.");
         Console.WriteLine("Chocolate will run in Live mode.");
     }
     else
     {
         Console.WriteLine("Chocolate has detected a FAT FileSystem.");
         Console.WriteLine("You now have the choice to run Chocolate as a Live user or a fully featured user.");
         Console.WriteLine("Live users are only good for debugging purposes.");
         Console.WriteLine("Do you wish to run as a full user?");
         string uclive = Console.ReadLine();
         if (uclive == "yes")
         {
             if (!Directory.Exists(usrs_dir))
             {
                 Directory.CreateDirectory(usrs_dir);
             }
             osvars.livesession = false;
         }
         else if (uclive == "no")
         {
             osvars.livesession = true;
             current_user = "******";
         }
     }
 }
Example #30
0
        // Remember = Console is 80wx25h

        protected override void BeforeRun()
        {
            Console.WriteLine("*******************************************************************************");
            Console.WriteLine("*                                 UniOS Setup                                 *");
            Console.WriteLine("*******************************************************************************");
            Console.WriteLine("*                                                                             *");
            Console.WriteLine("*   Enable File System? (Y/N):                                                  *");
            Console.WriteLine("*      **Warning: Filesystem unfinished, may cause crashing and damage**      *");
            Console.WriteLine("*******************************************************************************");
            string file_system_string = Console.ReadLine();

            if (file_system_string == "Y" || file_system_string == "y")
            {
                file_system_init = true;
                Console.Clear();
                Console.WriteLine("File System Will Be Initialized!");
                var fs = new Sys.FileSystem.CosmosVFS();
                Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
                Console.ReadKey();
            }
            else
            {
                Console.Clear();
                Console.WriteLine("File System Will NOT Be Initialized!");
                Console.ReadKey();
            }

            Console.Clear();
            Console.WriteLine("       :::    :::      ::::    :::     :::::::::::     ::::::::      ::::::::");
            Console.WriteLine("      :+:    :+:      :+:+:   :+:         :+:        :+:    :+:    :+:    :+:");
            Console.WriteLine("     +:+    +:+      :+:+:+  +:+         +:+        +:+    +:+    +:+        ");
            Console.WriteLine("    +#+    +:+      +#+ +:+ +#+         +#+        +#+    +:+    +#++:++#++  ");
            Console.WriteLine("   +#+    +#+      +#+  +#+#+#         +#+        +#+    +#+           +#+   ");
            Console.WriteLine("  #+#    #+#      #+#   #+#+#         #+#        #+#    #+#    #+#    #+#    ");
            Console.WriteLine("  ########       ###    ####     ###########     ########      ########      ");
            Console.WriteLine("                                                                             ");
            Console.WriteLine("                               Version: " + osversion);
            Console.WriteLine("                           UniOS Booted Successfully");
            Console.WriteLine("                                    Made by:");
            Console.WriteLine("                                Spencer Huntsman");
        }
Example #31
0
        protected override void BeforeRun()
        {
            FS = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(FS);
            FS.Initialize();
            if (!Directory.Exists("0:\\sysfolder"))
            {
                Directory.CreateDirectory("0:\\sysfolder");
            }
            Directory.SetCurrentDirectory("0:\\");
            System.Settings.kernel = this;

            /*System.Settings.currentCanvas = Sys.Graphics.FullScreenCanvas.GetFullScreenCanvas();
             * System.Graphics.BitterScreen bitScreen = new System.Graphics.BitterScreen();
             * bitScreen.initScreen();
             * bitScreen.DrawFilledRectangle(150, 150, 15, 15, Color.Blue);
             * bitScreen.DrawBuffer();*/

            //vcan.Display();

            /*System.Graphics.Window wnd = new System.Graphics.Window(new IntPtr(1), "Long Program Name Lol Cool Right Haha LMAOOOOOOOO OKKKKKK grgrgrgrgrgrgrg", new Sys.Graphics.Point(150, 150), new Sys.Graphics.Point(200, 100));
             * wnd.DrawWindow();*/
        }
Example #32
0
        protected override void Run()
        {
            void setup()
            {
                var fs = new Sys.FileSystem.CosmosVFS();

                Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
                //List<string> commands = new List<string>();
                //commands.Add("Help");
            }

            Console.Write("User@Salmon ^");
            var input = Console.ReadLine();

            switch (input)
            {
            case "help":
            {
                //Console.Write(commands);
                Console.Write("Help, Shutdown, Reboot \n");
                break;
            }
            }
        }