From 6e1222d0097a690a36b4c75cb0fc5709bb635762 Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 14 Oct 2018 01:48:01 -0500 Subject: [PATCH] Deleted depricated SteamCheck class --- IPA.Loader/IPA.Loader.csproj | 1 - IPA.Loader/Utilities/SteamCheck.cs | 33 ------------------------------ 2 files changed, 34 deletions(-) delete mode 100644 IPA.Loader/Utilities/SteamCheck.cs diff --git a/IPA.Loader/IPA.Loader.csproj b/IPA.Loader/IPA.Loader.csproj index 99ddb038..f77c4b7d 100644 --- a/IPA.Loader/IPA.Loader.csproj +++ b/IPA.Loader/IPA.Loader.csproj @@ -92,7 +92,6 @@ - diff --git a/IPA.Loader/Utilities/SteamCheck.cs b/IPA.Loader/Utilities/SteamCheck.cs deleted file mode 100644 index c3976806..00000000 --- a/IPA.Loader/Utilities/SteamCheck.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace IPA.Utilities -{ - /// - /// Provides a utility to test if this is a Steam build of Beat Saber. - /// - [Obsolete("Use BeatSaber.ReleaseType == BeatSaber.Release.Steam")] - internal static class SteamCheck - { - private static Type SteamVRCamera; - private static Type SteamVRExternalCamera; - private static Type SteamVRFade; - /// - /// Returns when called on a Steam installation. - /// - public static bool IsAvailable => FindSteamVRAsset(); - - private static bool FindSteamVRAsset() - { - // these require assembly qualified names.... - SteamVRCamera = Type.GetType("SteamVR_Camera, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); - SteamVRExternalCamera = Type.GetType("SteamVR_ExternalCamera, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); - SteamVRFade = Type.GetType("SteamVR_Fade, Assembly-CSharp-firstpass, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", false); - - return SteamVRCamera != null && SteamVRExternalCamera != null && SteamVRFade != null; - } - } -}