1
0
mirror of synced 2024-11-27 23:40:48 +01:00

Removed unused music fields, Added support for ura oni / super oni mode songs

This commit is contained in:
Fluto 2022-01-30 23:25:32 +11:00
parent 8acc828f35
commit 1286d380bd

View File

@ -222,10 +222,8 @@ public class MusicPatch
for (int i = 0; i < customSongs.Count; i++)
{
if (!customSongs[i].debug || !(customSongs[i].id != "kakunin"))
{
musicInfoAccessors.Add(new MusicDataInterface.MusicInfoAccesser(customSongs[i].uniqueId, customSongs[i].id, customSongs[i].songFileName, customSongs[i].order, customSongs[i].genreNo,
customSongs[i].isDLC, customSongs[i].debug, customSongs[i].price, customSongs[i].isCap, customSongs[i].rankmatchNeedHasPlayer, new bool[5]
musicInfoAccessors.Add(new MusicDataInterface.MusicInfoAccesser(customSongs[i].uniqueId, customSongs[i].id, $"song_{customSongs[i].id}", customSongs[i].order, customSongs[i].genreNo,
true, false, 0, false, 0, new bool[5]
{
customSongs[i].branchEasy,
customSongs[i].branchNormal,
@ -262,7 +260,6 @@ public class MusicPatch
customSongs[i].scoreUra
}));
}
}
#endregion
@ -845,7 +842,7 @@ public class MusicPatch
#region Read Fumen
private static readonly Regex fumenFilePathRegex = new Regex("(?<songID>.*?)_(?<difficulty>[ehmn])(?<songIndex>_[12])?.bin");
private static readonly Regex fumenFilePathRegex = new Regex("(?<songID>.*?)_(?<difficulty>[ehmnx])(?<songIndex>_[12])?.bin");
private static readonly Dictionary<object, IntPtr> playerToFumenData = new Dictionary<object, IntPtr>();
@ -1060,14 +1057,8 @@ public class MusicPatch
// Song Details
[DataMember] public int uniqueId;
[DataMember] public string id;
[DataMember] public string songFileName;
[DataMember] public int order;
[DataMember] public int genreNo;
[DataMember] public bool isDLC;
[DataMember] public bool debug;
[DataMember] public int price;
[DataMember] public bool isCap;
[DataMember] public int rankmatchNeedHasPlayer;
[DataMember] public bool branchEasy;
[DataMember] public bool branchNormal;
[DataMember] public bool branchHard;
@ -1122,11 +1113,6 @@ public class MusicPatch
/// </example>
/// </summary>
[DataMember] public TextEntry songDetail;
/// <summary>
/// What font to use for this titles font
/// </summary>
[DataMember] public int songFontType;
}
[Serializable]