diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-02 16:28:53 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-02 16:28:53 -0400 |
commit | 1cd55c34f0606d59f5fbec855c7603e158154ca7 (patch) | |
tree | 85a9650fcfc13ed6139c2ea235e195099912c398 | |
parent | 849c6da9cadfdb69c0c7a458230d7b8972ed1c5f (diff) | |
download | SMAPI-1cd55c34f0606d59f5fbec855c7603e158154ca7.tar.gz SMAPI-1cd55c34f0606d59f5fbec855c7603e158154ca7.tar.bz2 SMAPI-1cd55c34f0606d59f5fbec855c7603e158154ca7.zip |
fix compile error on Linux/Mac
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 2 |
1 files changed, 2 insertions, 0 deletions
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 ?? "<unknown>"}"); +#endif } /// <summary>Initialize just before the game's first update tick.</summary> |