Browse Source

Fixed game version detection

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
f49ce96f47
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      IPA.Loader/Utilities/BeatSaber.cs

+ 2
- 4
IPA.Loader/Utilities/BeatSaber.cs View File

@ -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;
}
}
}

Loading…
Cancel
Save