mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 06:05:10 +00:00
prod flag fixes
This commit is contained in:
parent
e50e4e39e0
commit
16a50a5992
3 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue