tweak data API keys (#468)

This commit is contained in:
Jesse Plamondon-Willard 2018-08-23 23:01:46 -04:00
parent 788f7ae3b7
commit 6ef7de33e8
1 changed files with 2 additions and 2 deletions

View File

@ -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>