Update ruleset name for Malody extension.
This commit is contained in:
@@ -2,6 +2,7 @@ using Cryville.Crtr.Browsing;
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
@@ -23,18 +24,23 @@ namespace Cryville.Crtr.Extensions.Malody {
|
|||||||
if (src.meta.mode != 0) throw new NotImplementedException("The chart mode is not supported");
|
if (src.meta.mode != 0) throw new NotImplementedException("The chart mode is not supported");
|
||||||
if (src.meta.mode_ext.column != 4) throw new NotImplementedException("The key count is not supported");
|
if (src.meta.mode_ext.column != 4) throw new NotImplementedException("The key count is not supported");
|
||||||
|
|
||||||
|
var ruleset = "malody!" + MODES[src.meta.mode];
|
||||||
|
if (src.meta.mode == 0) {
|
||||||
|
ruleset += "." + src.meta.mode_ext.column.ToString(CultureInfo.InvariantCulture) + "k";
|
||||||
|
}
|
||||||
|
|
||||||
ChartMeta meta = new ChartMeta() {
|
ChartMeta meta = new ChartMeta() {
|
||||||
song = new ChartMeta.MetaInfo() {
|
song = new ChartMeta.MetaInfo() {
|
||||||
name = src.meta.song.titleorg != null ? src.meta.song.titleorg : src.meta.song.title,
|
name = src.meta.song.titleorg != null ? src.meta.song.titleorg : src.meta.song.title,
|
||||||
author = src.meta.song.artistorg != null ? src.meta.song.artistorg : src.meta.song.artist,
|
author = src.meta.song.artistorg != null ? src.meta.song.artistorg : src.meta.song.artist,
|
||||||
},
|
},
|
||||||
ruleset = "malody!" + MODES[src.meta.mode],
|
ruleset = ruleset,
|
||||||
};
|
};
|
||||||
|
|
||||||
Chart chart = new Chart {
|
Chart chart = new Chart {
|
||||||
format = 2,
|
format = 2,
|
||||||
time = new BeatTime(-4, 0, 1),
|
time = new BeatTime(-4, 0, 1),
|
||||||
ruleset = "malody!" + MODES[src.meta.mode],
|
ruleset = ruleset,
|
||||||
sigs = new List<Chart.Signature>(),
|
sigs = new List<Chart.Signature>(),
|
||||||
sounds = new List<Chart.Sound>(),
|
sounds = new List<Chart.Sound>(),
|
||||||
motions = new List<Chart.Motion>(),
|
motions = new List<Chart.Motion>(),
|
||||||
|
Reference in New Issue
Block a user