From 1cd55c34f0606d59f5fbec855c7603e158154ca7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 2 Aug 2020 16:28:53 -0400 Subject: fix compile error on Linux/Mac --- src/SMAPI/Framework/SGame.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/SMAPI') diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 6a4add55..abb766f2 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -202,7 +202,9 @@ namespace StardewModdingAPI.Framework Game1.mapDisplayDevice = new SDisplayDevice(Game1.content, this.GraphicsDevice); // log GPU info +#if SMAPI_FOR_WINDOWS this.Monitor.Log($"Running on GPU: {this.GraphicsDevice?.Adapter?.Description ?? ""}"); +#endif } /// Initialize just before the game's first update tick. -- cgit