示例#1
0
        private void openFile()
        {
            IVirtualFileSystem vfs = new LocalVirtualFileSystem(Settings.Instance.getDirectoryMapping("ms0"), true);

            vFile = new Fat32VirtualFile("ms0:", vfs);
            //if (log.DebugEnabled)
            {
                Console.WriteLine(string.Format("openFile vFile={0}", vFile));
            }
        }
示例#2
0
        public XmbVirtualFileSystem(IVirtualFileSystem vfs)
        {
            this.vfs = vfs;

            umdPaths = getUmdPaths(true);
            File isoDir = new File(ISO_DIR);

            if (isoDir.Directory)
            {
                umdPaths = add(umdPaths, isoDir);
            }

            umdVfs = new Dictionary <string, IVirtualFileSystem>();
            for (int i = 0; i < umdPaths.Length; i++)
            {
                IVirtualFileSystem localVfs = new LocalVirtualFileSystem(umdPaths[i].AbsolutePath + "/", false);
                umdVfs[umdPaths[i].AbsolutePath] = localVfs;
            }

            umdFiles = new LinkedList <XmbVirtualFileSystem.VirtualPBP>();
        }