Beispiel #1
0
 /// <summary>
 /// Disposes object
 /// </summary>
 public void Dispose()
 {
     path      = String.Empty;
     isoType   = IsoType.GDF;
     xexHeader = null;
     xexHeader.Dispose();
     defaultXexFile = null;
 }
Beispiel #2
0
        /// <summary>
        /// Extracts info about default.xex from iso
        /// </summary>
        private void ExtractInfo()
        {
            if (SearchForDefaultXeX())
            {
                try
                {
                    MemoryStream ms = new MemoryStream(this.file);

                    this.xexHeader = new XeXHeader(ms);
                }
                catch (Exception ex)
                {
                    throw new Exception("Error while reading XEX header", ex);
                }
            }
            else
            {
                throw new Exception("Default.xex was not found");
            }
        }
Beispiel #3
0
        /// <summary>
        /// Main constructor of IsoGameInfo
        /// </summary>
        /// <param name="path">path to iso file</param>
        public IsoGameInfo(string path)
        {
            try
            {
                this.path = path;
                Iso iso = new Iso(path);

                this.xexHeader = ObjectCopier.Clone<XeXHeader>(iso.DefaultXeX.XeXHeader);
                this.defaultXexFile = new byte[iso.DefaultXeX.File.Length];
                iso.DefaultXeX.File.CopyTo(this.defaultXexFile, 0);
                this.isoType = iso.IsoType;
                //this.gameInfo = new GameInfo(this.xexHeader.TitleId);

                iso.Dispose();
                iso = null;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #4
0
        /// <summary>
        /// Main constructor of IsoGameInfo
        /// </summary>
        /// <param name="path">path to iso file</param>
        public IsoGameInfo(string path)
        {
            try
            {
                this.path = path;
                Iso iso = new Iso(path);

                this.xexHeader      = ObjectCopier.Clone <XeXHeader>(iso.DefaultXeX.XeXHeader);
                this.defaultXexFile = new byte[iso.DefaultXeX.File.Length];
                iso.DefaultXeX.File.CopyTo(this.defaultXexFile, 0);
                this.isoType = iso.IsoType;
                //this.gameInfo = new GameInfo(this.xexHeader.TitleId);

                iso.Dispose();
                iso = null;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Beispiel #5
0
 /// <summary>
 /// Disposes object
 /// </summary>
 public void Dispose()
 {
     path = String.Empty;
     isoType = IsoType.GDF;
     xexHeader = null;
     xexHeader.Dispose();
     defaultXexFile = null;
 }