don't infer track when importing a v0 riq from another program

This commit is contained in:
minenice55 2023-06-11 15:52:14 -04:00
parent 9e3e594209
commit 13adf5b07b

View file

@ -166,6 +166,13 @@ namespace HeavenStudio
var parameters = new List<Minigames.Param>();
foreach (var item in e.dynamicData)
{
Debug.Log($"k: {item.Key}, v: {item.Value}");
if (item.Key == "track")
continue;
if (item.Value == null)
{
e[item.Key] = 0;
}
var value = item.Value;
if (value.GetType() == typeof(long))
value = new EntityTypes.Integer(int.MinValue, int.MaxValue, (int)value);
@ -245,6 +252,10 @@ namespace HeavenStudio
{
PreProcessSpecialEntity(tempo, tempoChangeModel);
}
if (data.tempoChanges[0]["tempo"] <= 0)
{
data.tempoChanges[0]["tempo"] = 120;
}
foreach (var vol in data.volumeChanges)
{