(444f7d53a) Added: Workaround for macOS not allowing editing the .app bundle, using Library/Barotrauma instead

This commit is contained in:
Joonas Rikkonen
2019-04-25 17:50:35 +03:00
parent e4ac5434d7
commit 8be51d71bd
6 changed files with 29 additions and 159 deletions
@@ -159,6 +159,11 @@ namespace Barotrauma
public GameMain()
{
#if !DEBUG && OSX
string macPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "Library/Barotrauma");
Directory.SetCurrentDirectory(macPath);
#endif
GraphicsDeviceManager = new GraphicsDeviceManager(this);
Window.Title = "Barotrauma";