Fix offsets for chart converters. (2)
This commit is contained in:
@@ -10,7 +10,6 @@ namespace Cryville.Crtr.Extensions.Malody {
|
||||
public class MalodyChartConverter : ResourceConverter {
|
||||
static readonly string[] SUPPORTED_FORMATS = { ".mc", ".mcz" };
|
||||
static readonly string[] MODES = { "key", "step", "dj", "catch", "pad", "taiko", "ring", "slide", "live" };
|
||||
const double OGG_OFFSET = 0.05;
|
||||
|
||||
public override string[] GetSupportedFormats() {
|
||||
return SUPPORTED_FORMATS;
|
||||
@@ -108,7 +107,7 @@ namespace Cryville.Crtr.Extensions.Malody {
|
||||
chart.sounds.Add(new Chart.Sound {
|
||||
time = new BeatTime(0, 0, 1),
|
||||
id = res.Name,
|
||||
offset = (float)(-tev.offset / 1000f + (tev.sound.EndsWith(".ogg", StringComparison.OrdinalIgnoreCase) ? OGG_OFFSET : 0)),
|
||||
offset = -tev.offset / 1000f,
|
||||
});
|
||||
}
|
||||
else throw new NotImplementedException();
|
||||
|
@@ -10,7 +10,7 @@ namespace Cryville.Crtr.Extensions.osu {
|
||||
public class osuChartConverter : ResourceConverter {
|
||||
#pragma warning restore IDE1006
|
||||
static readonly string[] SUPPORTED_FORMATS = { ".osu" };
|
||||
const double OFFSET = 0.075;
|
||||
const double OFFSET = 0.07;
|
||||
|
||||
public override string[] GetSupportedFormats() {
|
||||
return SUPPORTED_FORMATS;
|
||||
|
Reference in New Issue
Block a user