summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/ModHelper.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-05-20 00:58:03 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-05-20 00:58:03 -0400
commit933e889c24e565d9028d3719ba2d65d512890564 (patch)
treecd02f439137bc1e9f67011bb0be7021e0b497dae /src/StardewModdingAPI/Framework/ModHelper.cs
parent16281fb58944e7e829b184b014e27822c91c9f43 (diff)
parentca44c3f329f3a63e5cabad0b6838e24612bd0c49 (diff)
downloadSMAPI-933e889c24e565d9028d3719ba2d65d512890564.tar.gz
SMAPI-933e889c24e565d9028d3719ba2d65d512890564.tar.bz2
SMAPI-933e889c24e565d9028d3719ba2d65d512890564.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/Framework/ModHelper.cs')
-rw-r--r--src/StardewModdingAPI/Framework/ModHelper.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/ModHelper.cs b/src/StardewModdingAPI/Framework/ModHelper.cs
index 7810148c..f939b83c 100644
--- a/src/StardewModdingAPI/Framework/ModHelper.cs
+++ b/src/StardewModdingAPI/Framework/ModHelper.cs
@@ -37,6 +37,7 @@ namespace StardewModdingAPI.Framework
** Public methods
*********/
/// <summary>Construct an instance.</summary>
+ /// <param name="displayName">The mod's display name.</param>
/// <param name="manifest">The manifest for the associated mod.</param>
/// <param name="modDirectory">The full path to the mod's folder.</param>
/// <param name="jsonHelper">Encapsulate SMAPI's JSON parsing.</param>
@@ -46,7 +47,7 @@ namespace StardewModdingAPI.Framework
/// <param name="reflection">Simplifies access to private game code.</param>
/// <exception cref="ArgumentNullException">An argument is null or empty.</exception>
/// <exception cref="InvalidOperationException">The <paramref name="modDirectory"/> path does not exist on disk.</exception>
- public ModHelper(IManifest manifest, string modDirectory, JsonHelper jsonHelper, IModRegistry modRegistry, CommandManager commandManager, SContentManager contentManager, IReflectionHelper reflection)
+ public ModHelper(string displayName, IManifest manifest, string modDirectory, JsonHelper jsonHelper, IModRegistry modRegistry, CommandManager commandManager, SContentManager contentManager, IReflectionHelper reflection)
{
// validate
if (string.IsNullOrWhiteSpace(modDirectory))
@@ -61,9 +62,9 @@ namespace StardewModdingAPI.Framework
// initialise
this.DirectoryPath = modDirectory;
this.JsonHelper = jsonHelper;
- this.Content = new ContentHelper(contentManager, modDirectory, manifest.Name);
+ this.Content = new ContentHelper(contentManager, modDirectory, displayName);
this.ModRegistry = modRegistry;
- this.ConsoleCommands = new CommandHelper(manifest.Name, commandManager);
+ this.ConsoleCommands = new CommandHelper(displayName, commandManager);
this.Reflection = reflection;
}