diff --git a/Barotrauma/BarotraumaClient/ClientCode.projitems b/Barotrauma/BarotraumaClient/ClientCode.projitems index 1b79fd2eb..8360a00c7 100644 --- a/Barotrauma/BarotraumaClient/ClientCode.projitems +++ b/Barotrauma/BarotraumaClient/ClientCode.projitems @@ -43,8 +43,13 @@ + + + + + diff --git a/Barotrauma/BarotraumaClient/Source/GameMain.cs b/Barotrauma/BarotraumaClient/Source/GameMain.cs index 4e0b61956..0f8e9bdc1 100644 --- a/Barotrauma/BarotraumaClient/Source/GameMain.cs +++ b/Barotrauma/BarotraumaClient/Source/GameMain.cs @@ -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(); diff --git a/Barotrauma/BarotraumaShared/SharedCode.projitems b/Barotrauma/BarotraumaShared/SharedCode.projitems index f15f9dbd1..05589e12a 100644 --- a/Barotrauma/BarotraumaShared/SharedCode.projitems +++ b/Barotrauma/BarotraumaShared/SharedCode.projitems @@ -181,6 +181,7 @@ + diff --git a/Barotrauma/BarotraumaShared/SharedContent.projitems b/Barotrauma/BarotraumaShared/SharedContent.projitems index 7c139901c..989c0f30e 100644 --- a/Barotrauma/BarotraumaShared/SharedContent.projitems +++ b/Barotrauma/BarotraumaShared/SharedContent.projitems @@ -490,6 +490,54 @@ PreserveNewest + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + + + PreserveNewest + PreserveNewest @@ -2127,6 +2175,12 @@ PreserveNewest + + PreserveNewest + + + PreserveNewest + diff --git a/Barotrauma/BarotraumaShared/Submarines/Dugong_Tutorial.sub b/Barotrauma/BarotraumaShared/Submarines/Dugong_Tutorial.sub new file mode 100644 index 000000000..e52f554ea Binary files /dev/null and b/Barotrauma/BarotraumaShared/Submarines/Dugong_Tutorial.sub differ diff --git a/Barotrauma/BarotraumaShared/Submarines/TutorialOutpost.sub b/Barotrauma/BarotraumaShared/Submarines/TutorialOutpost.sub new file mode 100644 index 000000000..79e598573 Binary files /dev/null and b/Barotrauma/BarotraumaShared/Submarines/TutorialOutpost.sub differ