diff --git a/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs b/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs index 44e0b3ed..14f10d0b 100644 --- a/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs +++ b/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs @@ -2,6 +2,10 @@ // Copyright (c) 2013-2022 Riley Labrecque // Please see the included LICENSE.txt for additional information. +#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX) +#define DISABLESTEAMWORKS +#endif + using UnityEngine; using UnityEditor; using UnityEditor.Build; @@ -68,10 +72,13 @@ static void AddDefineSymbols() currentDefines = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup); #endif - defines = new HashSet(currentDefines.Split(';')) - { - "STEAMWORKS_NET" - }; + defines = new HashSet(currentDefines.Split(';')); + +#if DISABLESTEAMWORKS + defines.Remove("STEAMWORKS_NET"); +#else + defines.Add("STEAMWORKS_NET"); +#endif string newDefines = string.Join(";", defines); if (newDefines != currentDefines)