From b98c5e5d50d10e571a6cd43b6c382082074b1fa8 Mon Sep 17 00:00:00 2001 From: khyperia <953151+khyperia@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:11:08 +0100 Subject: [PATCH] Add platform check to RedistInstall.cs --- com.rlabrecque.steamworks.net/Editor/RedistInstall.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs b/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs index 44e0b3ed..68052a66 100644 --- a/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs +++ b/com.rlabrecque.steamworks.net/Editor/RedistInstall.cs @@ -12,6 +12,10 @@ [InitializeOnLoad] public class RedistInstall { static RedistInstall() { + // We only want to do this on Steam supported platforms. + if (EditorUserBuildSettings.selectedBuildTargetGroup != BuildTargetGroup.Standalone) { + return; + } WriteSteamAppIdTxtFile(); AddDefineSymbols(); CheckForOldDlls();