public static List <SongData.SongData> GetSongMetadatas(GameArchives.IDirectory dlcRoot) { var metas = new List <SongData.SongData>(); var dta = DTX.FromPlainTextBytes(dlcRoot.GetFile("songs.dta").GetBytes()); for (int i = 0; i < dta.Count; i++) { metas.Add(SongDataConverter.ToSongData(dta.Array(i))); } return(metas); }
/// <summary> /// Converts an RB3 DLC songs folder into RB4 DLC songs /// </summary> /// <param name="dlcRoot"></param> /// <returns></returns> public static List <DLCSong> ConvertDLCPackage(GameArchives.IDirectory dlcRoot, Action <string> warner = null) { var dlcSongs = new List <DLCSong>(); var dta = DTX.FromPlainTextBytes(dlcRoot.GetFile("songs.dta").GetBytes()); DataArray arr; for (int i = 0; i < dta.Count; i++) { arr = dta.Array(i); dlcSongs.Add(ConvertDLCSong(arr, dlcRoot.GetDirectory(arr.Array("song").Array("name").String(1).Split('/').Last()), warner)); } return(dlcSongs); }