From da49c7c13bbb0e47aa07f9c793640559c123ee3c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 17 Feb 2020 23:48:57 -0500 Subject: move hardcoded SMAPI update check logic into config --- src/SMAPI.Web/Framework/ConfigModels/ModOverrideConfig.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/SMAPI.Web/Framework/ConfigModels/ModOverrideConfig.cs (limited to 'src/SMAPI.Web/Framework/ConfigModels/ModOverrideConfig.cs') diff --git a/src/SMAPI.Web/Framework/ConfigModels/ModOverrideConfig.cs b/src/SMAPI.Web/Framework/ConfigModels/ModOverrideConfig.cs new file mode 100644 index 00000000..f382d7b5 --- /dev/null +++ b/src/SMAPI.Web/Framework/ConfigModels/ModOverrideConfig.cs @@ -0,0 +1,15 @@ +namespace StardewModdingAPI.Web.Framework.ConfigModels +{ + /// Override update-check metadata for a mod. + internal class ModOverrideConfig + { + /// The unique ID from the mod's manifest. + public string ID { get; set; } + + /// Whether to allow non-standard versions. + public bool AllowNonStandardVersions { get; set; } + + /// The mod page URL to use regardless of which site has the update, or null to use the site URL. + public string SetUrl { get; set; } + } +} -- cgit