From 954bb4f589926d95ae321a00606dfbccb8fa77f4 Mon Sep 17 00:00:00 2001 From: minenice55 Date: Mon, 15 Jan 2024 19:55:53 -0500 Subject: [PATCH] mac moment --- Assets/Scripts/TitleManager.cs | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Assets/Scripts/TitleManager.cs b/Assets/Scripts/TitleManager.cs index 5be75cd55..3a57d6105 100644 --- a/Assets/Scripts/TitleManager.cs +++ b/Assets/Scripts/TitleManager.cs @@ -510,18 +510,14 @@ namespace HeavenStudio }; #if HEAVENSTUDIO_PROD && !UNITY_EDITOR - string lvpath = Application.dataPath; - if (Application.platform == RuntimePlatform.OSXPlayer) + string lvpath = ""; + if (Application.platform != RuntimePlatform.OSXPlayer) { - lvpath += "/../../Levels/"; - } - else - { - lvpath += "/../Levels/"; - } - if (!Directory.Exists(lvpath)) - { - Directory.CreateDirectory(lvpath); + lvpath = Application.dataPath + "/../Levels/"; + if (!Directory.Exists(lvpath)) + { + Directory.CreateDirectory(lvpath); + } } StandaloneFileBrowser.OpenFilePanelAsync("Open Remix", lvpath, extensions, false, (string[] paths) => #else