// Token: 0x0600055C RID: 1372 RVA: 0x00021354 File Offset: 0x0001F554 private List <string> PrepareZipFile(game game) { List <string> list = new List <string>(); list.Add(Path.Combine(this.m_saveFolder, "PARAM.SFO")); list.Add(Path.Combine(this.m_saveFolder, "PARAM.PFD")); string tempFolder = Util.GetTempFolder(); string text = Path.Combine(tempFolder, "ps3_files_list.xml"); if (game != null) { File.WriteAllText(text, "<files><game>" + game.id + "</game><pfd>PARAM.PFD</pfd><sfo>PARAM.SFO</sfo></files>"); } else { string text2 = MainForm.GetParamInfo(Path.Combine(this.m_saveFolder, "PARAM.SFO"), "SAVEDATA_DIRECTORY"); if (string.IsNullOrEmpty(text2) || text2.Length < 9) { text2 = Path.GetDirectoryName(this.m_saveFolder); } File.WriteAllText(text, "<files><game>" + text2.Substring(0, 9) + "</game><pfd>PARAM.PFD</pfd><sfo>PARAM.SFO</sfo></files>"); } list.Add(text); return(list); }
// Token: 0x0600004A RID: 74 RVA: 0x00006794 File Offset: 0x00004994 public AdvancedSaveUploaderForEncrypt(string[] files, game gameItem, string profile, string action) { this.m_files = files; this.InitializeComponent(); base.ControlBox = false; this.DecryptedSaveData = new Dictionary <string, byte[]>(); this.saveUploadDownloder1.BackColor = Color.FromArgb(127, 204, 204, 204); this.SetLabels(); this.m_action = action; base.CenterToScreen(); this.saveUploadDownloder1.Files = files; this.saveUploadDownloder1.Action = action; if (this.m_action == "encrypt") { this.saveUploadDownloder1.OutputFolder = Path.GetDirectoryName(gameItem.LocalSaveFolder); } else { this.saveUploadDownloder1.OutputFolder = ZipUtil.GetPs3SeTempFolder(); } this.saveUploadDownloder1.Game = gameItem; this.CloseForm = new AdvancedSaveUploaderForEncrypt.CloseDelegate(this.CloseFormSafe); base.Load += new EventHandler(this.AdvancedSaveUploaderForEncrypt_Load); this.saveUploadDownloder1.DownloadFinish += new SaveUploadDownloder.DownloadFinishEventHandler(this.saveUploadDownloder1_DownloadFinish); this.saveUploadDownloder1.UploadFinish += new SaveUploadDownloder.UploadFinishEventHandler(this.saveUploadDownloder1_UploadFinish); this.saveUploadDownloder1.UploadStart += new SaveUploadDownloder.UploadStartEventHandler(this.saveUploadDownloder1_UploadStart); this.saveUploadDownloder1.DownloadStart += new SaveUploadDownloder.DownloadStartEventHandler(this.saveUploadDownloder1_DownloadStart); }
// Token: 0x06000B58 RID: 2904 RVA: 0x0003F670 File Offset: 0x0003D870 internal static string GetCacheFolder(game game, string curCacheFolder) { string path = Path.Combine(Util.GetBackupLocation(), "cache"); string text = Path.Combine(path, game.id); if (string.IsNullOrEmpty(curCacheFolder)) { return(text); } return(Path.Combine(text, curCacheFolder)); }
// Token: 0x06000217 RID: 535 RVA: 0x0000D220 File Offset: 0x0000B420 public ServerSaveDownloader(string saveid, string saveFolder, game game) { this.m_saveFolder = saveFolder; this.m_game = game; this.InitializeComponent(); this.Text = Resources.titleResign; base.CenterToScreen(); this.saveUploadDownloder1.SaveId = saveid; this.saveUploadDownloder1.Action = "download"; this.saveUploadDownloder1.OutputFolder = this.m_saveFolder; this.CloseForm = new ServerSaveDownloader.CloseDelegate(this.CloseFormSafe); base.Load += new EventHandler(this.SimpleSaveUploader_Load); this.saveUploadDownloder1.DownloadFinish += new SaveUploadDownloder.DownloadFinishEventHandler(this.saveUploadDownloder1_DownloadFinish); this.saveUploadDownloder1.UploadFinish += new SaveUploadDownloder.UploadFinishEventHandler(this.saveUploadDownloder1_UploadFinish); this.saveUploadDownloder1.UploadStart += new SaveUploadDownloder.UploadStartEventHandler(this.saveUploadDownloder1_UploadStart); this.saveUploadDownloder1.DownloadStart += new SaveUploadDownloder.DownloadStartEventHandler(this.saveUploadDownloder1_DownloadStart); }
// Token: 0x0600055B RID: 1371 RVA: 0x00021258 File Offset: 0x0001F458 public ResignFilesUplaoder(game game, string saveFolder, string profile) { this.m_saveFolder = saveFolder; this.m_profile = profile; this.InitializeComponent(); this.Text = Resources.titleResign; base.CenterToScreen(); this.saveUploadDownloder1.Profile = profile; this.saveUploadDownloder1.Files = this.PrepareZipFile(game).ToArray(); this.saveUploadDownloder1.Action = "resign"; this.saveUploadDownloder1.OutputFolder = this.m_saveFolder; this.CloseForm = new ResignFilesUplaoder.CloseDelegate(this.CloseFormSafe); base.Load += new EventHandler(this.SimpleSaveUploader_Load); this.saveUploadDownloder1.DownloadFinish += new SaveUploadDownloder.DownloadFinishEventHandler(this.saveUploadDownloder1_DownloadFinish); this.saveUploadDownloder1.UploadFinish += new SaveUploadDownloder.UploadFinishEventHandler(this.saveUploadDownloder1_UploadFinish); this.saveUploadDownloder1.UploadStart += new SaveUploadDownloder.UploadStartEventHandler(this.saveUploadDownloder1_UploadStart); this.saveUploadDownloder1.DownloadStart += new SaveUploadDownloder.DownloadStartEventHandler(this.saveUploadDownloder1_DownloadStart); }
// Token: 0x06000B02 RID: 2818 RVA: 0x0003DF60 File Offset: 0x0003C160 public SimpleSaveUploader(game gameItem, string profile, List <string> files) { this.m_game = gameItem; this.InitializeComponent(); base.ControlBox = false; this.Text = Resources.titleSimpleEditUploader; base.CenterToScreen(); this.saveUploadDownloder1.BackColor = Color.FromArgb(127, 204, 204, 204); this.saveUploadDownloder1.Files = files.ToArray(); this.saveUploadDownloder1.Action = "patch"; this.saveUploadDownloder1.OutputFolder = Path.GetDirectoryName(gameItem.LocalSaveFolder); this.saveUploadDownloder1.Game = gameItem; this.CloseForm = new SimpleSaveUploader.CloseDelegate(this.CloseFormSafe); base.Load += new EventHandler(this.SimpleSaveUploader_Load); this.saveUploadDownloder1.DownloadFinish += new SaveUploadDownloder.DownloadFinishEventHandler(this.saveUploadDownloder1_DownloadFinish); this.saveUploadDownloder1.UploadFinish += new SaveUploadDownloder.UploadFinishEventHandler(this.saveUploadDownloder1_UploadFinish); this.saveUploadDownloder1.UploadStart += new SaveUploadDownloder.UploadStartEventHandler(this.saveUploadDownloder1_UploadStart); this.saveUploadDownloder1.DownloadStart += new SaveUploadDownloder.DownloadStartEventHandler(this.saveUploadDownloder1_DownloadStart); }
// Token: 0x06000AE0 RID: 2784 RVA: 0x0003AE6C File Offset: 0x0003906C public SimpleEdit(game gameItem, bool bShowOnly, List <string> files = null) { this.m_bShowOnly = bShowOnly; this.m_game = game.Copy(gameItem); this.m_gameFiles = files; this.InitializeComponent(); this.DoubleBuffered = true; base.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); this.btnApply.Enabled = false; this.btnApply.BackColor = SystemColors.ButtonFace; this.btnApply.ForeColor = Color.Black; this.btnClose.BackColor = SystemColors.ButtonFace; this.btnClose.ForeColor = Color.Black; this.panel1.BackColor = Color.FromArgb(127, 204, 204, 204); this.lblProfile.Visible = false; this.cbProfile.Visible = false; this.label1.Visible = false; this.dgCheatCodes.Visible = false; this.lblGameName.BackColor = Color.FromArgb(127, 204, 204, 204); this.lblGameName.ForeColor = Color.White; this.lblGameName.Visible = false; this.SetLabels(); base.CenterToScreen(); this.FillProfiles(); this.lblProfile.Text = Resources.lblProfile; this.lblGameName.Text = gameItem.name; this.dgCheats.CellMouseClick += new DataGridViewCellMouseEventHandler(this.dgCheats_CellMouseClick); this.dgCheats.CellMouseDown += new DataGridViewCellMouseEventHandler(this.dgCheats_CellMouseDown); this.dgCheats.CellValidated += new DataGridViewCellEventHandler(this.dgCheats_CellValidated); this.dgCheats.CellValueChanged += new DataGridViewCellEventHandler(this.dgCheats_CellValueChanged); this.dgCheats.CurrentCellDirtyStateChanged += new EventHandler(this.dgCheats_CurrentCellDirtyStateChanged); this.dgCheats.CellMouseUp += new DataGridViewCellMouseEventHandler(this.dgCheats_CellMouseUp); this.dgCheats.MouseDown += new MouseEventHandler(this.dgCheats_MouseDown); this.btnApply.Click += new EventHandler(this.btnApply_Click); this.btnApplyCodes.Click += new EventHandler(this.btnApplyCodes_Click); this.btnClose.Click += new EventHandler(this.btnClose_Click); base.Resize += new EventHandler(this.SimpleEdit_ResizeEnd); this.SimpleEdit_ResizeEnd(null, null); this.FillCheats(null); }
// Token: 0x060000A6 RID: 166 RVA: 0x000080E8 File Offset: 0x000062E8 internal static game Copy(game gameItem) { game game = new game(); game.id = gameItem.id; game.name = gameItem.name; game.diskcode = gameItem.diskcode; game.aliasid = gameItem.aliasid; game.updated = gameItem.updated; game.version = gameItem.version; game.region = gameItem.region; if (gameItem.aliases != null) { game.aliases = aliases.Copy(gameItem.aliases); } foreach (container current in gameItem.containers._containers) { game.containers._containers.Add(container.Copy(current)); } game.Client = gameItem.Client; game.LocalCheatExists = gameItem.LocalCheatExists; game.LocalSaveFolder = gameItem.LocalSaveFolder; return(game); }
// Token: 0x06000020 RID: 32 RVA: 0x00003DD0 File Offset: 0x00001FD0 public AdvancedEdit(game game, Dictionary <string, byte[]> data, byte[] dependentData) { this.InitializeComponent(); base.KeyDown += new KeyEventHandler(this.AdvancedEdit_KeyDown); this.btnFindPrev.Click += new EventHandler(this.button1_Click); this.txtSearchValue.TextChanged += new EventHandler(this.txtSearchValue_TextChanged); this.txtSearchValue.KeyDown += new KeyEventHandler(this.txtSearchValue_KeyDown); this.txtSearchValue.KeyPress += new KeyPressEventHandler(this.txtSearchValue_KeyPress); this.btnFind.Click += new EventHandler(this.btnFind_Click); this.hexBox1.KeyDown += new KeyEventHandler(this.hexBox1_KeyDown); this.hexBox1.SelectionBackColor = Color.FromArgb(0, 175, 255); this.hexBox1.ShadowSelectionColor = Color.FromArgb(204, 240, 255); this.lstCheats.DrawMode = DrawMode.OwnerDrawFixed; this.lstCheats.DrawItem += new DrawItemEventHandler(this.lstCheats_DrawItem); this.lstValues.DrawMode = DrawMode.OwnerDrawFixed; this.lstValues.DrawItem += new DrawItemEventHandler(this.lstValues_DrawItem); this.DoubleBuffered = true; base.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true); this.btnApply.BackColor = SystemColors.ButtonFace; this.btnApply.ForeColor = Color.Black; this.btnClose.BackColor = SystemColors.ButtonFace; this.btnClose.ForeColor = Color.Black; this.btnFind.BackColor = SystemColors.ButtonFace; this.btnFind.ForeColor = Color.Black; this.btnFindPrev.BackColor = SystemColors.ButtonFace; this.btnFindPrev.ForeColor = Color.Black; this.panel1.BackColor = Color.FromArgb(127, 204, 204, 204); this.label1.BackColor = (this.lblAddress.BackColor = (this.lblCheatCodes.BackColor = (this.lblCheats.BackColor = (this.lblGameName.BackColor = (this.lblOffset.BackColor = (this.lblOffsetValue.BackColor = (this.lblProfile.BackColor = Color.Transparent))))))); this.lblProfile.Visible = false; this.cbProfile.Visible = false; this.m_DirtyFiles = new List <string>(); this.m_saveFilesData = data; this.btnFind.Text = Resources.btnFind; this.btnFindPrev.Text = Resources.btnFindPrev; this.lblProfile.Text = Resources.lblProfile; this.DependentData = dependentData; this.SetLabels(); this.FillProfiles(); this.lblGameName.Text = game.name; this.m_game = game; base.CenterToScreen(); this.btnApply.Enabled = false; this.m_bTextMode = false; this.lstValues.SelectedIndexChanged += new EventHandler(this.lstValues_SelectedIndexChanged); this.lstCheats.SelectedIndexChanged += new EventHandler(this.lstCheats_SelectedIndexChanged); this.cbSaveFiles.SelectedIndexChanged += new EventHandler(this.cbSaveFiles_SelectedIndexChanged); container targetGameFolder = this.m_game.GetTargetGameFolder(); if (targetGameFolder != null) { this.cbSaveFiles.Sorted = false; foreach (string current in data.Keys) { this.cbSaveFiles.Items.Add(current); } if (this.cbSaveFiles.Items.Count > 0) { this.cbSaveFiles.SelectedIndex = 0; } } if (this.cbSaveFiles.Items.Count == 1) { this.cbSaveFiles.Enabled = false; } this.btnApply.Click += new EventHandler(this.btnApply_Click); this.btnClose.Click += new EventHandler(this.btnClose_Click); if (this.lstCheats.Items.Count > 0) { this.lstCheats.SelectedIndex = 0; } base.ResizeBegin += delegate(object s, EventArgs e) { base.SuspendLayout(); this.panel1.BackColor = Color.FromArgb(0, 138, 213); this._resizeInProgress = true; }; base.ResizeEnd += delegate(object s, EventArgs e) { base.ResumeLayout(true); this._resizeInProgress = false; this.panel1.BackColor = Color.FromArgb(127, 204, 204, 204); base.Invalidate(true); }; base.SizeChanged += delegate(object s, EventArgs e) { if (base.WindowState == FormWindowState.Maximized) { this._resizeInProgress = false; this.panel1.BackColor = Color.FromArgb(127, 204, 204, 204); base.Invalidate(true); } }; this.cbSaveFiles.Width = Math.Min(200, this.ComboBoxWidth(this.cbSaveFiles)); }