summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Models/ManifestDependency.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-10 14:33:36 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-10 14:33:36 -0400
commitd82e57d3060c96923ba9a8efe3c9eb839abffe59 (patch)
treea6d9760bbb83444dc5418d9b3a996c5f6ce96c78 /src/StardewModdingAPI/Framework/Models/ManifestDependency.cs
parent61d13d370c07bec029336890eec9501a8efc3056 (diff)
downloadSMAPI-d82e57d3060c96923ba9a8efe3c9eb839abffe59.tar.gz
SMAPI-d82e57d3060c96923ba9a8efe3c9eb839abffe59.tar.bz2
SMAPI-d82e57d3060c96923ba9a8efe3c9eb839abffe59.zip
enable SMAPI 2.0 mode by default
This commit replaces the SMAPI_2_0 compile flag with SMAPI_1_x.
Diffstat (limited to 'src/StardewModdingAPI/Framework/Models/ManifestDependency.cs')
-rw-r--r--src/StardewModdingAPI/Framework/Models/ManifestDependency.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/Models/ManifestDependency.cs b/src/StardewModdingAPI/Framework/Models/ManifestDependency.cs
index 25d92a29..67f906e3 100644
--- a/src/StardewModdingAPI/Framework/Models/ManifestDependency.cs
+++ b/src/StardewModdingAPI/Framework/Models/ManifestDependency.cs
@@ -12,7 +12,7 @@
/// <summary>The minimum required version (if any).</summary>
public ISemanticVersion MinimumVersion { get; set; }
-#if SMAPI_2_0
+#if !SMAPI_1_x
/// <summary>Whether the dependency must be installed to use the mod.</summary>
public bool IsRequired { get; set; }
#endif
@@ -25,7 +25,7 @@
/// <param name="minimumVersion">The minimum required version (if any).</param>
/// <param name="required">Whether the dependency must be installed to use the mod.</param>
public ManifestDependency(string uniqueID, string minimumVersion
-#if SMAPI_2_0
+#if !SMAPI_1_x
, bool required = true
#endif
)
@@ -34,7 +34,7 @@
this.MinimumVersion = !string.IsNullOrWhiteSpace(minimumVersion)
? new SemanticVersion(minimumVersion)
: null;
-#if SMAPI_2_0
+#if !SMAPI_1_x
this.IsRequired = required;
#endif
}