summaryrefslogtreecommitdiff
path: root/src/SMAPI/Constants.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-03-26 15:02:11 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-03-26 15:02:11 -0400
commit8d704153762fa73416a3ccb44ee71032952802eb (patch)
tree1435fe032cee1b88aa31ed567addaea6c2d6443b /src/SMAPI/Constants.cs
parent4c64f9f644c2349d2ca2407ce3aff736ba3fc354 (diff)
downloadSMAPI-8d704153762fa73416a3ccb44ee71032952802eb.tar.gz
SMAPI-8d704153762fa73416a3ccb44ee71032952802eb.tar.bz2
SMAPI-8d704153762fa73416a3ccb44ee71032952802eb.zip
add deprecation notices for SMAPI 4.0.0 (#766)
Diffstat (limited to 'src/SMAPI/Constants.cs')
-rw-r--r--src/SMAPI/Constants.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index b736ca59..3351e5c4 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -77,8 +77,21 @@ namespace StardewModdingAPI
public static GameFramework GameFramework { get; } = EarlyConstants.GameFramework;
/// <summary>The path to the game folder.</summary>
- [Obsolete($"Use {nameof(GamePath)} instead.")]
- public static string ExecutionPath => Constants.GamePath;
+ [Obsolete($"Use {nameof(Constants)}.{nameof(GamePath)} instead.")]
+ public static string ExecutionPath
+ {
+ get
+ {
+ SCore.DeprecationManager.Warn(
+ source: SCore.DeprecationManager.GetSourceNameFromStack(),
+ nounPhrase: $"{nameof(Constants)}.{nameof(Constants.ExecutionPath)}",
+ version: "3.14.0",
+ severity: DeprecationLevel.Notice
+ );
+
+ return Constants.GamePath;
+ }
+ }
/// <summary>The path to the game folder.</summary>
public static string GamePath { get; } = EarlyConstants.GamePath;