diff --git a/R2API/R2API.cs b/R2API/R2API.cs index f89b21fc..3e8e660f 100644 --- a/R2API/R2API.cs +++ b/R2API/R2API.cs @@ -11,6 +11,7 @@ using MonoMod.RuntimeDetour.HookGen; using R2API.Utils; using RoR2; +using UnityEngine; namespace R2API { [BepInPlugin(PluginGUID, PluginName, PluginVersion)] @@ -65,6 +66,10 @@ public R2API() { self.gameObject.SetActive(false); }; + On.RoR2.Networking.SteamLobbyFinder.CCSteamQuickplayStart += (orig, args) => { + Debug.Log("QuickPlay is disabled in mods due to social contracts and lack of general support"); + }; + SteamworksClientManager.onLoaded += () => { var buildId = SteamworksClientManager.instance.GetFieldValue("steamworksClient").BuildId; @@ -96,12 +101,12 @@ public void Start() { /// Return true if the specified submodule is loaded. /// /// nameof the submodule - public static bool IsLoaded( string submodule ) { - if( loadedSubmodules == null ) { - Logger.LogWarning( "IsLoaded called before submodules were loaded, result may not reflect actual load status." ); + public static bool IsLoaded(string submodule) { + if (loadedSubmodules == null) { + Logger.LogWarning("IsLoaded called before submodules were loaded, result may not reflect actual load status."); return false; } - return loadedSubmodules.Contains( submodule ); + return loadedSubmodules.Contains(submodule); } private static void AddHookLogging() {