Skip to content

Commit

Permalink
Load zlib.dll only for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Nov 26, 2023
1 parent 4202cd1 commit 64c3c41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CentrED/CentrEDGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64c3c41

Please sign in to comment.