mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
Merge pull request #465 from minenice55/dont_infer_track
Don't infer the track field when importing converted v0 riq coming from unknown origin
This commit is contained in:
commit
2a8d8d6fd2
1 changed files with 11 additions and 0 deletions
|
@ -166,6 +166,13 @@ namespace HeavenStudio
|
||||||
var parameters = new List<Minigames.Param>();
|
var parameters = new List<Minigames.Param>();
|
||||||
foreach (var item in e.dynamicData)
|
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;
|
var value = item.Value;
|
||||||
if (value.GetType() == typeof(long))
|
if (value.GetType() == typeof(long))
|
||||||
value = new EntityTypes.Integer(int.MinValue, int.MaxValue, (int)value);
|
value = new EntityTypes.Integer(int.MinValue, int.MaxValue, (int)value);
|
||||||
|
@ -245,6 +252,10 @@ namespace HeavenStudio
|
||||||
{
|
{
|
||||||
PreProcessSpecialEntity(tempo, tempoChangeModel);
|
PreProcessSpecialEntity(tempo, tempoChangeModel);
|
||||||
}
|
}
|
||||||
|
if (data.tempoChanges[0]["tempo"] <= 0)
|
||||||
|
{
|
||||||
|
data.tempoChanges[0]["tempo"] = 120;
|
||||||
|
}
|
||||||
|
|
||||||
foreach (var vol in data.volumeChanges)
|
foreach (var vol in data.volumeChanges)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue