Code cleanup.

This commit is contained in:
2023-11-21 18:03:34 +08:00
parent ad625e3e35
commit 92fb34cfa8
9 changed files with 45 additions and 36 deletions

View File

@@ -26,7 +26,7 @@ namespace Cryville.Crtr.Event {
else if (ev.Unstamped == null) { }
else if (ev.Unstamped is Chart.Sound) {
Chart.Sound tev = (Chart.Sound)ev.Unstamped;
var dir = new DirectoryInfo(Game.GameDataPath + "/songs/" + tev.id);
var dir = new DirectoryInfo(Path.Combine(Game.GameDataPath, "songs", tev.id));
var files = dir.GetFiles();
var source = new LibavFileAudioSource(files[0].FullName);
source.SelectStream();