Browse Source

Fixed game version detection

pull/12/head 3.12.18
Anairkoen Schno 5 years ago
parent
commit
0d3588cad5
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