// Token: 0x06000050 RID: 80 RVA: 0x000069D0 File Offset: 0x00004BD0
        private void saveUploadDownloder1_DownloadFinish(object sender, DownloadFinishEventArgs e)
        {
            if (this.m_action == "list" && !string.IsNullOrEmpty(this.saveUploadDownloder1.ListResult))
            {
                this.ListResult = this.saveUploadDownloder1.ListResult;
                if (!base.IsDisposed)
                {
                    this.CloseThis(e.Status);
                }
                return;
            }
            List <string> saveFiles = this.saveUploadDownloder1.Game.GetSaveFiles();

            string[] files = Directory.GetFiles(this.saveUploadDownloder1.OutputFolder, "*");
            foreach (string current in saveFiles)
            {
                this.saveUploadDownloder1.Game.GetTargetGameFolder();
                if (e.Status)
                {
                    if (!(this.m_action == "decrypt"))
                    {
                        continue;
                    }
                    using (List <string> .Enumerator enumerator2 = this.saveUploadDownloder1.OrderedEntries.GetEnumerator())
                    {
                        while (enumerator2.MoveNext())
                        {
                            string current2 = enumerator2.Current;
                            string text     = Path.Combine(Util.GetTempFolder(), current2);
                            if (Array.IndexOf <string>(files, text) >= 0 && !Path.GetFileName(text).Equals("param.sfo", StringComparison.CurrentCultureIgnoreCase) && !Path.GetFileName(text).Equals("param.pfd", StringComparison.CurrentCultureIgnoreCase) && !Path.GetFileName(text).Equals("devlog.txt", StringComparison.CurrentCultureIgnoreCase) && !Path.GetFileName(text).Equals("ps4_list.xml", StringComparison.CurrentCultureIgnoreCase) && !this.DecryptedSaveData.ContainsKey(Path.GetFileName(text)) && (current == Path.GetFileName(text) || Util.IsMatch(Path.GetFileName(text), current)))
                            {
                                this.DecryptedSaveData.Add(Path.GetFileName(text), File.ReadAllBytes(text));
                            }
                        }
                        continue;
                    }
                }
                if (!string.IsNullOrEmpty(e.Error))
                {
                    SaveUploadDownloder.ErrorMessage(this, e.Error, Resources.msgError);
                    break;
                }
                SaveUploadDownloder.ErrorMessage(this, Resources.errServer, Resources.msgError);
                break;
            }
            if (!base.IsDisposed)
            {
                this.CloseThis(e.Status);
            }
        }
Ejemplo n.º 2
0
 // Token: 0x06000560 RID: 1376 RVA: 0x0002145C File Offset: 0x0001F65C
 private void saveUploadDownloder1_DownloadFinish(object sender, DownloadFinishEventArgs e)
 {
     if (!e.Status)
     {
         if (e.Error != null)
         {
             MessageBox.Show(e.Error, Resources.msgError);
         }
         else
         {
             MessageBox.Show(Resources.errServer, Resources.msgError);
         }
     }
     this.CloseThis(e.Status);
 }
Ejemplo n.º 3
0
 // Token: 0x0600021C RID: 540 RVA: 0x0000D410 File Offset: 0x0000B610
 private void saveUploadDownloder1_DownloadFinish(object sender, DownloadFinishEventArgs e)
 {
     if (!e.Status)
     {
         if (e.Error != null)
         {
             MessageBox.Show(e.Error, Resources.msgError);
         }
         else
         {
             MessageBox.Show(Resources.errServer, Resources.msgError);
         }
     }
     else
     {
         Directory.Exists(this.m_game.LocalSaveFolder);
     }
     this.CloseThis(e.Status);
 }