summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModHelpers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-07 21:53:18 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-07 21:53:18 -0400
commitd4ff9f3f5c108493452879938aa224adb556b7c3 (patch)
tree51c3f6e3623ea1084c0457634ac1a762860628f0 /src/SMAPI/Framework/ModHelpers
parent709638f197093ed9aaa9a3a764c85d40f4c19eac (diff)
downloadSMAPI-d4ff9f3f5c108493452879938aa224adb556b7c3.tar.gz
SMAPI-d4ff9f3f5c108493452879938aa224adb556b7c3.tar.bz2
SMAPI-d4ff9f3f5c108493452879938aa224adb556b7c3.zip
log fake content packs created by mods
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers')
-rw-r--r--src/SMAPI/Framework/ModHelpers/ContentPackHelper.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/ContentPackHelper.cs b/src/SMAPI/Framework/ModHelpers/ContentPackHelper.cs
index 9f4a7ceb..6bc091fa 100644
--- a/src/SMAPI/Framework/ModHelpers/ContentPackHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/ContentPackHelper.cs
@@ -42,7 +42,15 @@ namespace StardewModdingAPI.Framework.ModHelpers
public IContentPack CreateFake(string directoryPath)
{
string id = Guid.NewGuid().ToString("N");
- return this.CreateTemporary(directoryPath, id, id, id, id, new SemanticVersion(1, 0, 0));
+ string relativePath = Path.GetRelativePath(Constants.ModsPath, directoryPath);
+ return this.CreateTemporary(
+ directoryPath: directoryPath,
+ id: id,
+ name: $"{this.Mod.DisplayName} (fake content pack: {relativePath})",
+ description: $"A temporary content pack created by the {this.Mod.DisplayName} mod.",
+ author: "???",
+ new SemanticVersion(1, 0, 0)
+ );
}
/// <inheritdoc />