GameSettings, EnableDiscordService.

This commit is contained in:
Vapre
2021-04-12 22:30:39 +02:00
committed by Paul Chote
parent b491e892ff
commit a5a371f1ff
2 changed files with 6 additions and 0 deletions

View File

@@ -262,6 +262,9 @@ namespace OpenRA
public MPGameFilters MPGameFilters = MPGameFilters.Waiting | MPGameFilters.Empty | MPGameFilters.Protected | MPGameFilters.Started;
public bool PauseShellmap = false;
[Desc("Allow mods to enable the Discord service that can interact with a local Discord client.")]
public bool EnableDiscordService = true;
}
public class Settings

View File

@@ -43,6 +43,9 @@ namespace OpenRA.Mods.Common
if (instance != null)
return instance;
if (!Game.Settings.Game.EnableDiscordService)
return null;
if (!Game.ModData.Manifest.Contains<DiscordService>())
return null;