private static void DrawScreen() { AConsole.Fill(ConsoleColor.Blue); Console.CursorTop = 0; AConsole.WriteLineEx(" Cocoapad Viewer ", ConsoleColor.White, ConsoleColor.Gray, true, false); Console.BackgroundColor = ConsoleColor.Blue; Console.CursorTop = 3; }
/// <summary> /// Starts the INIT method, creating filesystem, registering the filesystem /// </summary> public static void Start() { VFSManager.RegisterVFS(fs); Console.WriteLine("Initializing filesystem..."); fs.Initialize(); Console.Clear(); AConsole.WriteLineEx(" Welcome to Apollo OS ", ConsoleColor.White, ConsoleColor.Black, true, false); AConsole.WriteLineEx("Press any key to continue...", ConsoleColor.White, ConsoleColor.Black, true, false); AConsole.ReadKey(true); if (IntegrityCheck() == false) { Console.Clear(); Console.WriteLine("Filesystem integrity checks completed!"); Console.WriteLine("Not all directories were present however, so they have been recreated."); Console.WriteLine("Data loss is to be expected."); Environment_variables.PressAnyKey(); Console.Clear(); } else { Console.Clear(); Console.WriteLine("Filesystem integrity checks completed!"); Console.WriteLine("All filesystem checks passed successfully, but be sure to check files in case."); Environment_variables.PressAnyKey(); Console.Clear(); } UserInit(); if (!File.Exists(usr_vars.varsfile)) { File.Create(KernelVariables.bindir + "vars.sys").Dispose(); } else { usr_vars.ReadVars(); } Console.WriteLine("SysGuard Checks proceeded."); Environment_variables.PressAnyKey("Press any key to continue boot..."); Console.Clear(); }