示例#1
0
文件: Kernel.cs 项目: Punk-Sky/PunkOS
        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:/>");
        }
示例#2
0
文件: Kernel.cs 项目: Zino2201/Cosmos
        protected override void BeforeRun()
        {
            Console.WriteLine("Cosmos booted successfully. Starting IO tests.");

            if (ExecuteFileStreamTests)
            {
                mVFS = new CosmosVFS();
                VFSManager.RegisterVFS(mVFS);
            }
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#10
0
文件: Kernel.cs 项目: Orvid/Cosmos
 protected override void BeforeRun()
 {
     Console.WriteLine("Cosmos booted successfully, now start testing");
     myVFS = new CosmosVFS();
     VFSManager.RegisterVFS(myVFS);
 }
示例#11
0
 protected override void BeforeRun()
 {
     Console.WriteLine("Cosmos booted successfully.");
     myVFS = new Sys.SentinelVFS();
     VFSManager.RegisterVFS(myVFS);
 }
示例#12
0
 /// <summary>
 /// Cleans up manager if the VFS has to be reintialised.
 /// </summary>
 internal static void Reset()
 {
     mVFS = null;
 }