(332bdd387) Added: Content.RootDirectory modifying on macOS
This commit is contained in:
@@ -159,10 +159,14 @@ namespace Barotrauma
|
||||
|
||||
public GameMain()
|
||||
{
|
||||
#if !DEBUG && OSX
|
||||
#if !DEBUG && OSX
|
||||
// Use a separate path for content that's editable due to macOS's .app bundles crashing when edited during runtime
|
||||
string macPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "Library/Barotrauma");
|
||||
Directory.SetCurrentDirectory(macPath);
|
||||
#endif
|
||||
Content.RootDirectory = macPath + "/Content";
|
||||
#else
|
||||
Content.RootDirectory = "Content";
|
||||
#endif
|
||||
|
||||
GraphicsDeviceManager = new GraphicsDeviceManager(this);
|
||||
|
||||
@@ -174,7 +178,6 @@ namespace Barotrauma
|
||||
|
||||
GUI.KeyboardDispatcher = new EventInput.KeyboardDispatcher(Window);
|
||||
|
||||
Content.RootDirectory = "Content";
|
||||
|
||||
PerformanceCounter = new PerformanceCounter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user