protected override void BeforeRun() { mDebugger.Send("VFS setup"); myVFS = new CosmosVFS(); VFSManager.RegisterVFS(myVFS); myVFS.Initialize(); //if (!File.Exists(@"0://os.info")) //{ // setup.init(); //} //if (File.ReadAllText(@"0://so.info") != OSv) //{ // setup.init(); //} mDebugger.Send("Loading OS"); Console.Clear(); Console.WriteLine("Booting " + OSName); Console.WriteLine(" "); //UserSystem.Init(); Console.Clear(); Console.WriteLine("Booting " + OSName); Console.WriteLine(" ## "); Commands.Init(); Console.Clear(); Console.WriteLine("Booting " + OSName); Console.WriteLine(" ###### "); //programing_languages.Init(); Console.Clear(); Console.WriteLine("Booting " + OSName); Console.WriteLine(" ######## "); Console.Clear(); Console.WriteLine("Booting " + OSName); Console.WriteLine(" ########## "); Console.Clear(); Console.WriteLine("Booting " + OSName); Console.WriteLine("##############"); //Environment_var.Init(); Console.Clear(); Console.WriteLine( OSName + " " + OSv); Console.Write(@"0:/>"); }
protected override void BeforeRun() { Console.WriteLine("Cosmos booted successfully. Starting IO tests."); if (ExecuteFileStreamTests) { mVFS = new CosmosVFS(); VFSManager.RegisterVFS(mVFS); } }
public static void RegisterVFS(VFSBase aVFS) { FileSystemHelpers.Debug("VFSManager.RegisterVFS"); if (mVFS != null) { throw new Exception("Virtual File System Manager already initialized!"); } aVFS.Initialize(); mVFS = aVFS; }
/// <summary> /// Register VFS. Initialize the VFS. /// </summary> /// <param name="aVFS">A VFS to register.</param> /// <exception cref="Exception">Thrown if VFS already registered / memory error.</exception> /// <exception cref="IOException">Thrown on I/O exception.</exception> /// <exception cref="ArgumentNullException">Thrown on memory error.</exception> /// <exception cref="OverflowException">Thrown on memory error.</exception> /// <exception cref="ArgumentException">Thrown on memory error.</exception> /// <exception cref="ArgumentOutOfRangeException">Thrown on memory error.</exception> /// <exception cref="PathTooLongException">Thrown on fatal error.</exception> /// <exception cref="System.Security.SecurityException">Thrown on fatal error.</exception> /// <exception cref="FileNotFoundException">Thrown on memory error.</exception> /// <exception cref="DirectoryNotFoundException">Thrown on fatal error.</exception> public static void RegisterVFS(VFSBase aVFS, bool aAllowReinitialise = false) { Global.mFileSystemDebugger.SendInternal("--- VFSManager.RegisterVFS ---"); if (!aAllowReinitialise && mVFS != null) { throw new Exception("Virtual File System Manager already initialized!"); } aVFS.Initialize(); mVFS = aVFS; }
public static void RegisterVFS(VFSBase aVFS) { Cosmos.System.Global.Dbg.Send("VFSManager.RegisterVFS"); if (mVFS != null) { throw new Exception("Virtual File System Manager already initialized!"); } aVFS.Initialize(); mVFS = aVFS; }
public static void RegisterVFS(VFSBase aVFS) { Global.mFileSystemDebugger.SendInternal("VFSManager.RegisterVFS"); if (mVFS != null) { throw new Exception("Virtual File System Manager already initialized!"); } aVFS.Initialize(); mVFS = aVFS; }
public static void RegisterVFS(VFSBase aVFS) { Global.mFileSystemDebugger.SendInternal("VFSManager.RegisterVFS:"); if (mVFS != null) { throw new Exception("Virtual File System Manager already initialized!"); } aVFS.Initialize(); mVFS = aVFS; }
protected override void BeforeRun() { Console.WriteLine("Cosmos booted successfully, now start testing"); myVFS = new CosmosVFS(); VFSManager.RegisterVFS(myVFS); }
protected override void BeforeRun() { Console.WriteLine("Cosmos booted successfully."); myVFS = new Sys.SentinelVFS(); VFSManager.RegisterVFS(myVFS); }
/// <summary> /// Cleans up manager if the VFS has to be reintialised. /// </summary> internal static void Reset() { mVFS = null; }