prod flag fixes

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

View file

@ -128,7 +128,7 @@ namespace HeavenStudio
}
ChangeMasterVolume(PersistentDataManager.gameSettings.masterVolume);
PlayerInput.InitInputControllers();
#if HEAVENSTUDIO_PROD
#if HEAVENSTUDIO_PROD && !UNITY_EDITOR
Starpelly.OS.ChangeWindowTitle("Heaven Studio");
buildTime = Application.buildGUID.Substring(0, 8) + " " + AppInfo.Date.ToString("dd/MM/yyyy hh:mm:ss");
#elif UNITY_EDITOR

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)

View file

@ -37,7 +37,6 @@ These builds include experimental new features that will not be included in Rele
#### Important Notes:
- On MacOS and Linux builds you may [experience bugs with audio-related tasks](https://github.com/RHeavenStudio/HeavenStudio/issues/72), but in most cases Heaven Studio works perfectly.
- On MacOS you'll need to have Discord open in the background for now, there's a bug that causes the DiscordSDK library to crash when the rich presence is updated while Discord is not open in the background.
## Self-Building