From 0d3588cad56fe605a5c2ee5dcc36faa4646fd0c8 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Fri, 17 May 2019 17:53:01 -0500 Subject: [PATCH] Fixed game version detection --- IPA.Loader/Utilities/BeatSaber.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IPA.Loader/Utilities/BeatSaber.cs b/IPA.Loader/Utilities/BeatSaber.cs index 35d0cc57..60aa8310 100644 --- a/IPA.Loader/Utilities/BeatSaber.cs +++ b/IPA.Loader/Utilities/BeatSaber.cs @@ -71,11 +71,9 @@ namespace IPA.Utilities private static bool FindSteamVRAsset() { // these require assembly qualified names.... - var steamVRCamera = Type.GetType("SteamVR_Camera, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); - var steamVRExternalCamera = Type.GetType("SteamVR_ExternalCamera, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); - var steamVRFade = Type.GetType("SteamVR_Fade, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); + var steamUser = Type.GetType("Steamworks.SteamUser, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); - return steamVRCamera != null && steamVRExternalCamera != null && steamVRFade != null; + return steamUser != null; } } }