Beispiel #1
0
 private void LoadRom(string romLocation)
 {
     gameInfo                = BlitzGame.GetBlitz2000Zoinkity();
     tbTeamCount.Text        = gameInfo.GameTeamCount.ToString();
     this.romLocation        = romLocation;
     BlitzTeams              = RomEditor.ReadRom(romLocation, gameInfo);
     gameFiles               = ParseBlitzFileList(romLocation, gameInfo);
     filesSortedByOffset     = Clone.DeepClone(gameFiles).OrderBy(x => x.fileOffset).ToList();
     lbGameFiles.ItemsSource = gameFiles;
     RomEditor.ReadTeamFiles(romLocation, gameInfo, ref blitzTeams, gameFiles);
     lbGameFiles.DisplayMemberPath = "fileName";
     NotifiyPropertyChanged("BlitzTeams");
 }
Beispiel #2
0
 private void btnReloadTeamFiles_Click(object sender, RoutedEventArgs e)
 {
     if (gameFiles != null)
     {
         int teamCount;
         if (int.TryParse(tbTeamCount.Text, out teamCount))
         {
             gameInfo.GameTeamCount = teamCount;
         }
         Teams tempTeams = RomEditor.ReadRom(romLocation, gameInfo);
         RomEditor.ReadTeamFiles(romLocation, gameInfo, ref tempTeams, gameFiles);
         BlitzTeams = tempTeams;
     }
 }