Add a setting to disable version checks.
This commit is contained in:
@@ -95,6 +95,9 @@ namespace OpenRA
|
||||
|
||||
public bool StrictActivityChecking = false;
|
||||
|
||||
[Desc("Check whether a newer version is available online.")]
|
||||
public bool CheckVersion = true;
|
||||
|
||||
[Desc("Allow the collection of anonymous data such as Operating System, .NET runtime, OpenGL version and language settings.")]
|
||||
public bool SendSystemInformation = true;
|
||||
|
||||
|
||||
@@ -239,6 +239,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
// Check for updates in the background
|
||||
var webServices = modData.Manifest.Get<WebServices>();
|
||||
if (Game.Settings.Debug.CheckVersion)
|
||||
webServices.CheckModVersion();
|
||||
|
||||
// System information opt-out prompt
|
||||
|
||||
@@ -489,6 +489,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
BindCheckboxPref(panel, "FETCH_NEWS_CHECKBOX", gs, "FetchNews");
|
||||
BindCheckboxPref(panel, "LUADEBUG_CHECKBOX", ds, "LuaDebug");
|
||||
BindCheckboxPref(panel, "SENDSYSINFO_CHECKBOX", ds, "SendSystemInformation");
|
||||
BindCheckboxPref(panel, "CHECK_VERSION_CHECKBOX", ds, "CheckVersion");
|
||||
BindCheckboxPref(panel, "REPLAY_COMMANDS_CHECKBOX", ds, "EnableDebugCommandsInReplays");
|
||||
|
||||
return () => { };
|
||||
@@ -509,6 +510,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
ds.SanityCheckUnsyncedCode = dds.SanityCheckUnsyncedCode;
|
||||
ds.BotDebug = dds.BotDebug;
|
||||
ds.LuaDebug = dds.LuaDebug;
|
||||
ds.SendSystemInformation = dds.SendSystemInformation;
|
||||
ds.CheckVersion = dds.CheckVersion;
|
||||
ds.EnableDebugCommandsInReplays = dds.EnableDebugCommandsInReplays;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -542,51 +542,58 @@ Container@SETTINGS_PANEL:
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Fetch Community News
|
||||
Checkbox@SENDSYSINFO_CHECKBOX:
|
||||
Checkbox@CHECK_VERSION_CHECKBOX:
|
||||
X: 310
|
||||
Y: 70
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Check for Updates
|
||||
Checkbox@SENDSYSINFO_CHECKBOX:
|
||||
X: 310
|
||||
Y: 100
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Send System Information
|
||||
Label@SENDSYSINFO_DESC:
|
||||
X: 310
|
||||
Y: 85
|
||||
Y: 115
|
||||
Width: 250
|
||||
Height: 30
|
||||
Font: Tiny
|
||||
WordWrap: True
|
||||
Text: Your Operating System, OpenGL and .NET runtime versions, and language settings will be sent along with an anonymous ID to help prioritize future development.
|
||||
Label@DEBUG_TITLE:
|
||||
Y: 170
|
||||
Y: 200
|
||||
Width: PARENT_RIGHT
|
||||
Font: Bold
|
||||
Text: Debug
|
||||
Align: Center
|
||||
Checkbox@BOTDEBUG_CHECKBOX:
|
||||
X: 15
|
||||
Y: 190
|
||||
Y: 220
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show Bot Debug Messages
|
||||
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
||||
X: 15
|
||||
Y: 220
|
||||
Y: 250
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Check Sync around Unsynced Code
|
||||
Checkbox@LUADEBUG_CHECKBOX:
|
||||
X: 310
|
||||
Y: 190
|
||||
Y: 220
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show Map Debug Messages
|
||||
Checkbox@REPLAY_COMMANDS_CHECKBOX:
|
||||
X: 310
|
||||
Y: 220
|
||||
Y: 250
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
|
||||
@@ -553,51 +553,58 @@ Background@SETTINGS_PANEL:
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Fetch Community News
|
||||
Checkbox@SENDSYSINFO_CHECKBOX:
|
||||
Checkbox@CHECK_VERSION_CHECKBOX:
|
||||
X: 310
|
||||
Y: 70
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Check for Updates
|
||||
Checkbox@SENDSYSINFO_CHECKBOX:
|
||||
X: 310
|
||||
Y: 100
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Send System Information
|
||||
Label@SENDSYSINFO_DESC:
|
||||
X: 310
|
||||
Y: 85
|
||||
Y: 115
|
||||
Width: 250
|
||||
Height: 30
|
||||
Font: Tiny
|
||||
WordWrap: True
|
||||
Text: Your Operating System, OpenGL and .NET runtime versions, and language settings will be sent along with an anonymous ID to help prioritize future development.
|
||||
Label@DEBUG_TITLE:
|
||||
Y: 170
|
||||
Y: 200
|
||||
Width: PARENT_RIGHT
|
||||
Font: Bold
|
||||
Text: Debug
|
||||
Align: Center
|
||||
Checkbox@BOTDEBUG_CHECKBOX:
|
||||
X: 15
|
||||
Y: 190
|
||||
Y: 220
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show Bot Debug Messages
|
||||
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
||||
X: 15
|
||||
Y: 220
|
||||
Y: 250
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Check Sync around Unsynced Code
|
||||
Checkbox@LUADEBUG_CHECKBOX:
|
||||
X: 310
|
||||
Y: 190
|
||||
Y: 220
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Show Map Debug Messages
|
||||
Checkbox@REPLAY_COMMANDS_CHECKBOX:
|
||||
X: 310
|
||||
Y: 220
|
||||
Y: 250
|
||||
Width: 300
|
||||
Height: 20
|
||||
Font: Regular
|
||||
|
||||
Reference in New Issue
Block a user