/// <summary> /// Get the entries of the calling class /// </summary> /// <param name="category"></param> public static void GetEntries(string category) { if (!initialized) { init(); } // Save current console state AB.PushContents(); // Write the entries int max = Console.WindowHeight - 4; int found = 0; bool finished = false; while (!finished) { if (found < cc.Count) { for (int i = found; i < cc.Count; i++) { if (category == category[i].ToString()) { AConsole.WriteLine(ds[i].ToString()); } } } } AConsole.WriteLine("Press any key to continue..."); AConsole.ReadKey(true); AB.PopContents(); }
/// <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(); }