Exemplo n.º 1
0
 /// <summary>
 /// Disposes object
 /// </summary>
 public void Dispose()
 {
     path      = String.Empty;
     isoType   = IsoType.GDF;
     xexHeader = null;
     xexHeader.Dispose();
     defaultXexFile = null;
 }
Exemplo n.º 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");
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// Disposes object
 /// </summary>
 public void Dispose()
 {
     path = String.Empty;
     isoType = IsoType.GDF;
     xexHeader = null;
     xexHeader.Dispose();
     defaultXexFile = null;
 }