private void MenuSongsExportRawkSD_Click(object sender, EventArgs e) { SaveDialog.Title = "Save RawkSD Archive"; SaveDialog.Filter = "RawkSD Archive (*.rwk)|*.rwk|All Files|*"; if (SaveDialog.ShowDialog(this) == DialogResult.Cancel) { return; } IList <FormatData> songs = GetSelectedSongData(); bool audio = false; foreach (FormatData song in songs) { if (song.GetFormatAny(FormatType.Audio) != null) { audio = true; break; } } if (audio) { if (MessageBox.Show(this, "Would you like to include audio in your custom package?\nYou may only include audio with your charts if you have permission from the artist to distribute it.", "Include Audio?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { audio = false; } } Exports.ExportRWK(SaveDialog.FileName, songs, audio); }
private void MenuSongsExportFoF_Click(object sender, EventArgs e) { FolderDialog.Description = "Select your Frets on Fire songs folder."; if (FolderDialog.ShowDialog(this) == DialogResult.Cancel) { return; } Exports.ExportFoF(FolderDialog.SelectedPath, GetSelectedSongData()); }
private void Open(string path) { Engine platform; Game game; if (!SelectPlatform(PlatformDetection.DetectPlaform(path), out platform, out game)) { return; } GetAsyncProgress().QueueTask(progress => { progress.NewTask("Loading content from " + platform.Name, 3); PlatformData data = platform.Create(path, game, progress); progress.Progress(); ImportMap map = new ImportMap(data.Game); map.AddSongs(data, progress); progress.Progress(); data.Mutex.WaitOne(); progress.NewTask(data.Songs.Count); foreach (FormatData song in data.Songs) { map.Populate(song.Song); progress.Progress(); } data.Mutex.ReleaseMutex(); progress.EndTask(); progress.Progress(); if (data.Game == Game.LegoRockBand) { progress.NewTask("Loading Rock Band 1 content from Lego Rock Band"); Exports.ImportRB1Lipsync(data); progress.Progress(); progress.EndTask(); } SongUpdateMutex.WaitOne(); Platforms.Add(data); SongUpdateMutex.ReleaseMutex(); UpdateSongList(); UpdatePlatformList(); progress.EndTask(); }); }
private void MenuSongsExport360DLC_Click(object sender, EventArgs e) { var songs = GetSelectedSongData(); if (songs.Count() > 1) { return; } FormatData data = songs.Single(); SaveDialog.Title = "Save Rock Band 360 DLC"; SaveDialog.Filter = "Rock Band DLC File (*.dlc)|*.dlc|All Files|*"; SaveDialog.FileName = data.Song.ID; if (SaveDialog.ShowDialog(this) == DialogResult.Cancel) { return; } Exports.Export360(SaveDialog.FileName, data); }
private void MenuSongsExportRBN_Click(object sender, EventArgs e) { var songs = GetSelectedSongData(); if (songs.Count() > 1) { return; } FormatData data = songs.Single(); SaveDialog.Title = "Save Rock Band Network Archive"; SaveDialog.Filter = "Rock Band Audition File (*.rba)|*.rba|All Files|*"; SaveDialog.FileName = data.Song.ID; if (SaveDialog.ShowDialog(this) == DialogResult.Cancel) { return; } Exports.ExportRBN(SaveDialog.FileName, data); }