mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 01:25:12 +00:00
mac moment
This commit is contained in:
parent
18c24b628c
commit
35380b34ec
1 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue