prod flag fixes

This commit is contained in:
minenice55
2024-01-14 21:47:48 -05:00
parent e50e4e39e0
commit 16a50a5992
3 changed files with 18 additions and 2 deletions

View File

@ -503,7 +503,24 @@ namespace HeavenStudio
new ExtensionFilter("Heaven Studio Remix File ", new string[] { "riq" }),
};
#if HEAVENSTUDIO_PROD && !UNITY_EDITOR
string lvpath = Application.dataPath;
if (Application.platform == RuntimePlatform.OSXPlayer)
{
lvpath += "/../../Levels/";
}
else
{
lvpath += "/../Levels/";
}
if (!Directory.Exists(lvpath))
{
Directory.CreateDirectory(lvpath);
}
StandaloneFileBrowser.OpenFilePanelAsync("Open Remix", lvpath, extensions, false, (string[] paths) =>
#else
StandaloneFileBrowser.OpenFilePanelAsync("Open Remix", "", extensions, false, (string[] paths) =>
#endif
{
var path = Path.Combine(paths);
if (path == string.Empty)