Exemple #1
0
 public SongInfo(ushort id, CustomSongVolumeCodeset csv)
 {
     string s = (from b in SongIDMap.Songs
                 where b.ID == id
                 select b.Filename).FirstOrDefault() ?? id.ToString("X4");
     File = new FileInfo(s + ".brstm");
     ID = id;
     CSV = csv;
 }
Exemple #2
0
 public void PrepareGCT()
 {
     gctPath = FindFile(GCT_PATHS);
     gctCsv = new CustomSongVolumeCodeset(File.ReadAllBytes(gctPath));
 }
Exemple #3
0
 private void findGCT()
 {
     csv = null;
     foreach (string file in GCT_PATHS) {
         if (File.Exists(file)) {
             csv = new CustomSongVolumeCodeset(File.ReadAllBytes(file));
             int ct = csv.Settings.Count;
             Console.WriteLine("Loaded Custom Song Volume (" + ct + " settings)");
             csvPath = file;
             break;
         }
     }
     customSongVolumeEditor1.CSV = csv;
 }