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

@@ -115,9 +115,9 @@ namespace Cryville.Crtr {
InputManager = new InputManager();
#if UNITY_EDITOR_WIN
ffmpeg.RootPath = Application.dataPath + "/Plugins/Windows";
ffmpeg.RootPath = Path.Combine(Application.dataPath, "Plugins", "Windows");
#elif UNITY_STANDALONE_WIN
ffmpeg.RootPath = Application.dataPath + "/Plugins/x86_64";
ffmpeg.RootPath = Path.Combine(Application.dataPath, "Plugins", "x86_64");
#elif UNITY_ANDROID
ffmpeg.RootPath = "";
#else
@@ -164,7 +164,7 @@ namespace Cryville.Crtr {
}
}
var dir = new DirectoryInfo(Settings.Default.GameDataPath + "/charts");
var dir = new DirectoryInfo(Path.Combine(Settings.Default.GameDataPath, "charts"));
if (!dir.Exists || Settings.Default.LastRunVersion != Application.version) {
Directory.CreateDirectory(dir.FullName);
var defaultData = Resources.Load<TextAsset>("default");