Esempio n. 1
0
File: iso.cs Progetto: bsv798/p3fes
        public ISO9660(string partIniPath)
        {
            PrimaryVolumeDescriptor pvd;
            PathTableRecords paths;

            Console.WriteLine("Reading file structure");

            partIniPath = misc.DICreateAndCheck(partIniPath).FullName;
            this.rebPath = partIniPath;

            FillDirFils(partIniPath, out pvd, out paths);
            paths.SortFiles();
            paths.SetRecSize();
            paths.CalcSizeLocs(partIniPath, pvd);
            paths.SetAttributes(partIniPath, pvd);

            partition = new VolumePartition(pvd, paths);
        }
Esempio n. 2
0
File: iso.cs Progetto: bsv798/p3fes
        public ISO9660(string isoPath, int fileSystemOffset)
        {
            sio.FileStream fs;

            fsOffLog = fileSystemOffset;
            fsOff = fsOffLog * logSize;

            this.isoPath = isoPath;
            Console.WriteLine(string.Format("Loading iso '{0}'", isoPath));

            fs = new sio.FileStream(isoPath, sio.FileMode.Open, sio.FileAccess.Read);
            fs.Position = fsStart * logSize + fsOff;
            partition = new VolumePartition(fs);
            fs.Close();

            Console.WriteLine("Done");
        }