Skip to content

Commit

Permalink
change version
Browse files Browse the repository at this point in the history
  • Loading branch information
Avibah committed Mar 9, 2024
1 parent 9e157a5 commit 4560302
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 7 additions & 6 deletions Editor/New SSQE/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2619,9 +2619,10 @@ public string RunOSUImport(string path)

for (int i = 0; i < split.Length; i++)
{
string line = split[i].Trim();

try
{
string line = split[i].Trim();
string[] subsplit = line.Split(":");
string[] set = line.Split(",");

Expand All @@ -2633,7 +2634,7 @@ public string RunOSUImport(string path)
File.Copy($"{Path.GetDirectoryName(path)}\\{idPath}", $"cached/{id}.asset", true);
}

if (timing && !string.IsNullOrWhiteSpace(line) && set.Length > 1)
if (timing && !string.IsNullOrWhiteSpace(line))
{
bool canParse = double.TryParse(set[0], NumberStyles.Any, culture, out double time);
canParse &= float.TryParse(set[1], NumberStyles.Any, culture, out float bpm);
Expand All @@ -2649,7 +2650,7 @@ public string RunOSUImport(string path)
}
}

if (hitObj && !string.IsNullOrWhiteSpace(line) && set.Length > 3)
if (hitObj && !string.IsNullOrWhiteSpace(line))
{
bool canParse = float.TryParse(set[0], NumberStyles.Any, culture, out float x);
canParse &= float.TryParse(set[1], NumberStyles.Any, culture, out float y);
Expand All @@ -2665,11 +2666,11 @@ public string RunOSUImport(string path)
mapData += $",{Math.Round(x, 2)}|{Math.Round(y, 2)}|{(long)time}";
}
}

timing = line != "[HitObjects]" && (timing || line == "[TimingPoints]");
hitObj = line != "[TimingPoints]" && (hitObj || line == "[HitObjects]");
}
catch { }

timing = line != "[HitObjects]" && (timing || line == "[TimingPoints]");
hitObj = line != "[TimingPoints]" && (hitObj || line == "[HitObjects]");
}

return id + mapData;
Expand Down
4 changes: 2 additions & 2 deletions Editor/New SSQE/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
[assembly: ComVisible(false)]

[assembly: Guid("9a405608-105f-473a-8f17-9d8c05f82b19")]
[assembly: AssemblyVersion("2.1.4.3")]
[assembly: AssemblyFileVersion("2.1.4.3")]
[assembly: AssemblyVersion("2.1.4.4")]
[assembly: AssemblyFileVersion("2.1.4.4")]

0 comments on commit 4560302

Please sign in to comment.