Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable ConCommand steam_quickplay_start #154

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions R2API/R2API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public R2API() {
self.gameObject.SetActive(false);
};

On.RoR2.Networking.SteamLobbyFinder.CCSteamQuickplayStart += (orig, args) => {
Logger.LogInfo("QuickPlay is disabled in mods due to social contracts and lack of general support");
};

SteamworksClientManager.onLoaded += () => {
var buildId =
SteamworksClientManager.instance.GetFieldValue<Client>("steamworksClient").BuildId;
Expand Down Expand Up @@ -96,12 +100,12 @@ public void Start() {
/// Return true if the specified submodule is loaded.
/// </summary>
/// <param name="submodule">nameof the submodule</param>
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() {
Expand Down