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; }
public void PrepareGCT() { gctPath = FindFile(GCT_PATHS); gctCsv = new CustomSongVolumeCodeset(File.ReadAllBytes(gctPath)); }
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; }