From cee85c88884d8fae48a675cdce1bc27b7cdbd353 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Sun, 20 Mar 2016 16:30:44 -0400 Subject: config all setup. --- StardewModdingAPI/Program.cs | 8 +++++--- StardewModdingAPI/StardewModdingAPI.csproj | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'StardewModdingAPI') diff --git a/StardewModdingAPI/Program.cs b/StardewModdingAPI/Program.cs index 65bd185d..5ed2d644 100644 --- a/StardewModdingAPI/Program.cs +++ b/StardewModdingAPI/Program.cs @@ -107,6 +107,7 @@ namespace StardewModdingAPI /// /// Load the injector. + /// Is this deprecated? Why is there a LoadMods? /// /// /// This will load the injector before anything else if it sees it @@ -130,8 +131,8 @@ namespace StardewModdingAPI StardewModdingAPI.Log.Success("Loading Injector DLL..."); TypeInfo tar = mod.DefinedTypes.First(x => x.BaseType == typeof(Mod)); Mod m = (Mod)mod.CreateInstance(tar.ToString()); - Console.WriteLine("LOADED: {0} by {1} - Version {2} | Description: {3}", m.Name, m.Authour, m.Version, m.Description); - m.PathOnDisk = Path.GetDirectoryName(ModPath); + Console.WriteLine("LOADED: {0} by {1} - Version {2} | Description: {3} (@:{4})", m.Name, m.Authour, m.Version, m.Description, s); + m.PathOnDisk = Path.GetDirectoryName(s); m.Entry(false); StardewInjectorLoaded = true; StardewInjectorMod = m; @@ -325,7 +326,8 @@ namespace StardewModdingAPI StardewModdingAPI.Log.Verbose("Loading Mod DLL..."); TypeInfo tar = mod.DefinedTypes.First(x => x.BaseType == typeof(Mod)); Mod m = (Mod)mod.CreateInstance(tar.ToString()); - Console.WriteLine("LOADED MOD: {0} by {1} - Version {2} | Description: {3}", m.Name, m.Authour, m.Version, m.Description); + m.PathOnDisk = Path.GetDirectoryName(s); + Console.WriteLine("LOADED MOD: {0} by {1} - Version {2} | Description: {3} (@{4})", m.Name, m.Authour, m.Version, m.Description, m.PathOnDisk); loadedMods += 1; m.Entry(); } diff --git a/StardewModdingAPI/StardewModdingAPI.csproj b/StardewModdingAPI/StardewModdingAPI.csproj index 878feb07..b4494faf 100644 --- a/StardewModdingAPI/StardewModdingAPI.csproj +++ b/StardewModdingAPI/StardewModdingAPI.csproj @@ -87,10 +87,18 @@ icon.ico - - - - + + False + + + False + + + False + + + False + ..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll True @@ -98,6 +106,7 @@ False $(SteamPath)\steamapps\common\Stardew Valley\Stardew Valley.exe + False @@ -111,6 +120,7 @@ False $(SteamPath)\steamapps\common\Stardew Valley\xTile.dll + False -- cgit