summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-08-23 23:01:46 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-08-23 23:01:46 -0400
commit6ef7de33e8251f5d836a8ed2936939d9ce2fadb4 (patch)
treeffc45c03afad7467a746160a63438ccedb15dd16
parent788f7ae3b7dc37d3323d83830cfeb92bea958e66 (diff)
downloadSMAPI-6ef7de33e8251f5d836a8ed2936939d9ce2fadb4.tar.gz
SMAPI-6ef7de33e8251f5d836a8ed2936939d9ce2fadb4.tar.bz2
SMAPI-6ef7de33e8251f5d836a8ed2936939d9ce2fadb4.zip
tweak data API keys (#468)
-rw-r--r--src/SMAPI/Framework/ModHelpers/DataHelper.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/DataHelper.cs b/src/SMAPI/Framework/ModHelpers/DataHelper.cs
index cdb3718f..506c9c54 100644
--- a/src/SMAPI/Framework/ModHelpers/DataHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/DataHelper.cs
@@ -136,7 +136,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
private string GetSaveFileKey(string key)
{
this.AssertSlug(key, nameof(key));
- return $"smapi-mod-data/{this.ModID}/{key}".ToLower();
+ return $"smapi/mod-data/{this.ModID}/{key}".ToLower();
}
/// <summary>Get the absolute path for a global data file.</summary>
@@ -144,7 +144,7 @@ namespace StardewModdingAPI.Framework.ModHelpers
private string GetGlobalDataPath(string key)
{
this.AssertSlug(key, nameof(key));
- return Path.Combine(Constants.SavesPath, ".smapi-mod-data", this.ModID.ToLower(), $"{key}.json".ToLower());
+ return Path.Combine(Constants.SavesPath, ".smapi", "mod-data", this.ModID.ToLower(), $"{key}.json".ToLower());
}
/// <summary>Assert that a key contains only characters that are safe in all contexts.</summary>