(444f7d53a) Added: Workaround for macOS not allowing editing the .app bundle, using Library/Barotrauma instead
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user