Exemplo n.º 1
0
        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:/>");
        }
Exemplo n.º 2
0
        protected override void BeforeRun()
        {
            Console.WriteLine("Cosmos booted successfully. Starting IO tests.");

            if (ExecuteFileStreamTests)
            {
                mVFS = new CosmosVFS();
                VFSManager.RegisterVFS(mVFS);
            }
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        /// <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;
        }
Exemplo n.º 5
0
        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;
        }
Exemplo n.º 6
0
        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;
        }
Exemplo n.º 7
0
        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;
        }
Exemplo n.º 8
0
        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;
        }
Exemplo n.º 9
0
        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;
        }
Exemplo n.º 10
0
 protected override void BeforeRun()
 {
     Console.WriteLine("Cosmos booted successfully, now start testing");
     myVFS = new CosmosVFS();
     VFSManager.RegisterVFS(myVFS);
 }
Exemplo n.º 11
0
 protected override void BeforeRun()
 {
     Console.WriteLine("Cosmos booted successfully.");
     myVFS = new Sys.SentinelVFS();
     VFSManager.RegisterVFS(myVFS);
 }
Exemplo n.º 12
0
 /// <summary>
 /// Cleans up manager if the VFS has to be reintialised.
 /// </summary>
 internal static void Reset()
 {
     mVFS = null;
 }