mac moment

This commit is contained in:
minenice55 2024-01-15 19:55:53 -05:00 committed by GitHub
parent 37c07e171a
commit 954bb4f589
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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