コード例 #1
0
 public IsoEntry(IsoEntryPlatform Platform, string Path, string Destination, long Size, string TitleName, IsoEntryID ID)
 {
     this.Platform    = Platform;
     this.Path        = Path;
     this.Destination = Destination;
     this.Size        = Size;
     this.TitleName   = TitleName;
     Parts            = 0;
     this.ID          = ID;
 }
コード例 #2
0
 public FtpUploaderArgs(string Ip, string User, string Pass, string Port, string TitleID, string ContainerID, string SourcePath, IsoEntryPlatform Platform)
 {
     this.Ip = Ip;
     this.User = User;
     this.Pass = Pass;
     this.Port = Port;
     this.TitleID = TitleID;
     this.ContainerID = ContainerID;
     this.SourcePath = SourcePath;
     this.Platform = Platform;
 }
コード例 #3
0
 public FtpUploaderArgs(string Ip, string User, string Pass, string Port, string TitleID, string ContainerID, string SourcePath, IsoEntryPlatform Platform)
 {
     this.Ip          = Ip;
     this.User        = User;
     this.Pass        = Pass;
     this.Port        = Port;
     this.TitleID     = TitleID;
     this.ContainerID = ContainerID;
     this.SourcePath  = SourcePath;
     this.Platform    = Platform;
 }
コード例 #4
0
ファイル: IsoEntry.cs プロジェクト: Nathan-M-Ross/i360gm
 public IsoEntry(IsoEntryPlatform Platform, string Path, string Destination, long Size, string TitleName, IsoEntryID ID, byte[] Thumb, IsoEntryPadding Padding)
 {
     this.Platform = Platform;
     this.Path = Path;
     this.Destination = Destination;
     this.Size = Size;
     this.TitleName = TitleName;
     this.Parts = 0;
     this.ID = ID;
     this.Status = IsoEntryStatus.Idle;
     this.Thumb = Thumb;
     this.Padding = Padding;
 }
コード例 #5
0
ファイル: IsoEntry.cs プロジェクト: sunxiaoguang/i360gm
 public IsoEntry(IsoEntryPlatform Platform, string Path, string Destination, long Size, string TitleName, IsoEntryID ID, byte[] Thumb, IsoEntryPadding Padding)
 {
     this.Platform    = Platform;
     this.Path        = Path;
     this.Destination = Destination;
     this.Size        = Size;
     this.TitleName   = TitleName;
     this.Parts       = 0;
     this.ID          = ID;
     this.Status      = IsoEntryStatus.Idle;
     this.Thumb       = Thumb;
     this.Padding     = Padding;
 }
コード例 #6
0
ファイル: AddISO.cs プロジェクト: Nathan-M-Ross/i360gm
 public AddISO(IsoEntryPlatform Platform)
 {
     this.InitializeComponent();
     base.Shown += new EventHandler(this.AddISO_Shown);
     this.cmbPaddingMode.SelectedIndex = (int) Chilano.Iso2God.Properties.Settings.Default["DefaultPadding"];
     this.platform = Platform;
     this.entry.Platform = this.platform;
     this.isoDetails.ProgressChanged += new ProgressChangedEventHandler(this.isoDetails_ProgressChanged);
     this.isoDetails.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.isoDetails_RunWorkerCompleted);
     this.txtDest.Text = Chilano.Iso2God.Properties.Settings.Default["OutputPath"].ToString();
     this.txtRebuiltIso.Text = Chilano.Iso2God.Properties.Settings.Default["RebuildPath"].ToString();
     this.cbSaveRebuilt.Checked = (bool) Chilano.Iso2God.Properties.Settings.Default["AlwaysSave"];
     this.ttISO.SetToolTip(this.pbVideo, "Select the ISO image you want to convert to a Games on Demand package.\n\nChoose a location to output the GOD package to. It will be written into a\nsub-directory named using the TitleID of the ISO's default.xex. A default\nlocation can be set in the Settings screen.");
     this.ttSettings.SetToolTip(this.pbTime, "The details are automatically extracted from default.xex in the root\ndirectory of the ISO image. They can be manually altered if required.\n\nThe Title Name MUST be entered, or else it will show up as an \nunknown game on the 360.");
     this.ttThumb.SetToolTip(this.pbThumb, "Click to set a custom thumbnail for this title.");
     this.ttPadding.SetToolTip(this.pbPadding, "Unused padding sectors can be removed from the ISO image when it is converted.\n\nThree modes are available:\n\nNone - ISO image is left untouched.\n\nPartial - The ISO image is cropped after the end of the last used sector. Very quick to do,\n              but it will only save 800-1500MB of space.\n\nFull - ISO image is processed and completely rebuilt to remove all padding. Rebuilt image is\n         can be stored temporarily or kept for future use. Takes 5-10 minutes extra.");
     this.txtISO.Focus();
 }
コード例 #7
0
 public AddISO(IsoEntryPlatform Platform)
 {
     this.InitializeComponent();
     base.Shown += new EventHandler(this.AddISO_Shown);
     this.cmbPaddingMode.SelectedIndex = (int)Chilano.Iso2God.Properties.Settings.Default["DefaultPadding"];
     this.platform                       = Platform;
     this.entry.Platform                 = this.platform;
     this.isoDetails.ProgressChanged    += new ProgressChangedEventHandler(this.isoDetails_ProgressChanged);
     this.isoDetails.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.isoDetails_RunWorkerCompleted);
     this.txtDest.Text                   = Chilano.Iso2God.Properties.Settings.Default["OutputPath"].ToString();
     this.txtRebuiltIso.Text             = Chilano.Iso2God.Properties.Settings.Default["RebuildPath"].ToString();
     this.cbSaveRebuilt.Checked          = (bool)Chilano.Iso2God.Properties.Settings.Default["AlwaysSave"];
     this.ttISO.SetToolTip(this.pbVideo, "Select the ISO image you want to convert to a Games on Demand package.\n\nChoose a location to output the GOD package to. It will be written into a\nsub-directory named using the TitleID of the ISO's default.xex. A default\nlocation can be set in the Settings screen.");
     this.ttSettings.SetToolTip(this.pbTime, "The details are automatically extracted from default.xex in the root\ndirectory of the ISO image. They can be manually altered if required.\n\nThe Title Name MUST be entered, or else it will show up as an \nunknown game on the 360.");
     this.ttThumb.SetToolTip(this.pbThumb, "Click to set a custom thumbnail for this title.");
     this.ttPadding.SetToolTip(this.pbPadding, "Unused padding sectors can be removed from the ISO image when it is converted.\n\nThree modes are available:\n\nNone - ISO image is left untouched.\n\nPartial - The ISO image is cropped after the end of the last used sector. Very quick to do,\n              but it will only save 800-1500MB of space.\n\nFull - ISO image is processed and completely rebuilt to remove all padding. Rebuilt image is\n         can be stored temporarily or kept for future use. Takes 5-10 minutes extra.");
     this.txtISO.Focus();
 }
コード例 #8
0
        private void isoDetails_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Result == null)
            {
                this.txtName.Text = "Failed to read details from ISO image.";
            }
            else
            {
                IsoDetailsResults result = (IsoDetailsResults)e.Result;
                switch (result.ConsolePlatform)
                {
                case IsoDetailsPlatform.Xbox:
                    this.platform = IsoEntryPlatform.Xbox;
                    break;

                case IsoDetailsPlatform.Xbox360:
                    this.platform = IsoEntryPlatform.Xbox360;
                    break;
                }
                bool flag = (bool)Chilano.Iso2God.Properties.Settings.Default["AutoRenameMultiDisc"];
                int  num  = 0;
                int.TryParse(result.DiscCount, out num);
                this.txtName.Text      = (flag && (num > 1)) ? (result.Name + " Disc " + result.DiscNumber) : result.Name;
                this.txtTitleID.Text   = result.TitleID;
                this.txtMediaID.Text   = result.MediaID;
                this.txtPlatform.Text  = result.Platform;
                this.txtExType.Text    = result.ExType;
                this.txtDiscNum.Text   = result.DiscNumber;
                this.txtDiscCount.Text = result.DiscCount;
                if ((result.Thumbnail != null) && (result.RawThumbnail != null))
                {
                    this.pbThumb.Image = (Image)result.Thumbnail.Clone();
                    this.pbThumb.Tag   = (byte[])result.RawThumbnail.Clone();
                }
            }
        }
コード例 #9
0
ファイル: AddISO.cs プロジェクト: Nathan-M-Ross/i360gm
        private void isoDetails_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Result == null)
            {
                this.txtName.Text = "Failed to read details from ISO image.";
            }
            else
            {
                IsoDetailsResults result = (IsoDetailsResults) e.Result;
                switch (result.ConsolePlatform)
                {
                    case IsoDetailsPlatform.Xbox:
                        this.platform = IsoEntryPlatform.Xbox;
                        break;

                    case IsoDetailsPlatform.Xbox360:
                        this.platform = IsoEntryPlatform.Xbox360;
                        break;
                }
                bool flag = (bool) Chilano.Iso2God.Properties.Settings.Default["AutoRenameMultiDisc"];
                int num = 0;
                int.TryParse(result.DiscCount, out num);
                this.txtName.Text = (flag && (num > 1)) ? (result.Name + " Disc " + result.DiscNumber) : result.Name;
                this.txtTitleID.Text = result.TitleID;
                this.txtMediaID.Text = result.MediaID;
                this.txtPlatform.Text = result.Platform;
                this.txtExType.Text = result.ExType;
                this.txtDiscNum.Text = result.DiscNumber;
                this.txtDiscCount.Text = result.DiscCount;
                if ((result.Thumbnail != null) && (result.RawThumbnail != null))
                {
                    this.pbThumb.Image = (Image) result.Thumbnail.Clone();
                    this.pbThumb.Tag = (byte[]) result.RawThumbnail.Clone();
                }
            }
        }