예제 #1
0
 private void btnLoad_Click(object sender, RoutedEventArgs e)
 {
     if (Communicator.Instance.Movesets == null)
     {
         MessageBox.Show("Please scan an moveset first!");
     }
     else
     {
         Changelog l = ChangeSerializer.DeserializeChangelist();
         if (l != null)
         {
             if (l.UCM != (short)comboBox1.SelectedValue)
             {
                 MessageBox.Show("This Moveset Mod is not compatible with the selected Character!");
             }
             //else if (l.MovesetCount != Communicator.Instance.Movesets.Count)
             //    MessageBox.Show("The scanned moveset does not equal the moveset ram countwise.\r\n" +
             //                    "Please restart this tool and PCSX2 and rescan the moveset!");
             else
             {
                 Communicator.Instance.Changelog = l;
             }
         }
     }
 }
예제 #2
0
 private void btnSave_Click(object sender, RoutedEventArgs e)
 {
     if (Communicator.Instance.Changelog == null)
     {
         MessageBox.Show("Your Changelog is empty and therefore can not be saved!");
     }
     else
     {
         ChangeSerializer.SerializeChangelist(Communicator.Instance.Changelog);
     }
 }