diff --git a/CentrED/CentrED.csproj b/CentrED/CentrED.csproj index 7de998f..ea24b7a 100644 --- a/CentrED/CentrED.csproj +++ b/CentrED/CentrED.csproj @@ -30,6 +30,8 @@ + + diff --git a/CentrED/CentrEDGame.cs b/CentrED/CentrEDGame.cs index 19a7c99..260432b 100644 --- a/CentrED/CentrEDGame.cs +++ b/CentrED/CentrEDGame.cs @@ -42,7 +42,10 @@ protected override void Initialize() _gdm.ApplyChanges(); - NativeLibrary.Load(Path.Combine(AppContext.BaseDirectory, "x64", "zlib.dll")); + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + { + NativeLibrary.Load(Path.Combine(AppContext.BaseDirectory, "x64", "zlib.dll")); + } Log.Start(LogTypes.All); MapManager = new MapManager(_gdm.GraphicsDevice); UIManager = new UIManager(_gdm.GraphicsDevice);