Пример #1
0
 private void GameSettingsSwitch_MenuItem_Click(object sender, EventArgs e)
 {
     if (DialogResult.Yes != MessageBox.Show("Do you wish to switch Game Settings to a different language? Current Game Settings will be overwritten and you will start from a backup!", "Game Settings Switch", MessageBoxButtons.YesNo))
     {
         return;
     }
     LoadGameSettings loadGameSettings = new LoadGameSettings(new string[]
     {
         "English",
         "French",
         "Italian",
         "Spanish",
         "German",
         "Korean"
     });
     if (loadGameSettings.ShowDialog() != DialogResult.OK)
     {
         return;
     }
     int num = loadGameSettings.method_3();
     string text = KeyGenerator.GetFileNameNoExt(this.class319_0.string_0);
     if (!this.method_16(num) && DialogResult.Yes == MessageBox.Show("A proper backup doesn't exist. Do you wish to start backup creation? (Overwriting!)", "Loading Game Settings", MessageBoxButtons.YesNo) && !this.method_17(num))
     {
         return;
     }
     new List<string>(this.list_0).IndexOf(text.Replace("qb", ""));
     this.method_15();
     using (zzPabNode @class = new zzPabNode(string.Concat(new string[]
     {
         this.string_0,
         this.string_3,
         "originals\\qb",
         this.list_0[num],
         ".pak.xen"
     }), string.Concat(new string[]
     {
         this.string_0,
         this.string_3,
         "originals\\qb",
         this.list_0[num],
         ".pab.xen"
     }), false))
     {
         GameSettingsChecker.SignHash(@class);
         @class.method_20(this.dataFolder + "PAK\\" + text + ".pak.xen", this.dataFolder + "PAK\\" + text + ".pab.xen");
     }
     GC.Collect();
 }