Skip to content

Commit

Permalink
Fixed game version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nike4613 committed May 17, 2019
1 parent e791376 commit 0d3588c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions IPA.Loader/Utilities/BeatSaber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ public static string InstallPath
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;
}
}
}

0 comments on commit 0d3588c

Please sign in to comment.