summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SCore.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-08-29 13:45:21 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 19:14:42 -0400
commit7ca168269fc8cc76d900fba6c6d04d2b02287956 (patch)
treebfb9dc8d7519a239800043b24f652d51a7a85642 /src/SMAPI/Framework/SCore.cs
parent15fd868f59e84629b66e0cb8fcfdda86b1ffd813 (diff)
downloadSMAPI-7ca168269fc8cc76d900fba6c6d04d2b02287956.tar.gz
SMAPI-7ca168269fc8cc76d900fba6c6d04d2b02287956.tar.bz2
SMAPI-7ca168269fc8cc76d900fba6c6d04d2b02287956.zip
log skipped loose files
Diffstat (limited to 'src/SMAPI/Framework/SCore.cs')
-rw-r--r--src/SMAPI/Framework/SCore.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index c5dede01..fde28852 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -25,7 +25,6 @@ using StardewModdingAPI.Framework.ModLoading;
using StardewModdingAPI.Framework.Patching;
using StardewModdingAPI.Framework.Reflection;
using StardewModdingAPI.Framework.Serialization;
-using StardewModdingAPI.Internal;
using StardewModdingAPI.Patches;
using StardewModdingAPI.Toolkit;
using StardewModdingAPI.Toolkit.Framework.Clients.WebApi;
@@ -395,6 +394,13 @@ namespace StardewModdingAPI.Framework
this.Monitor.Log("Loading mod metadata...", LogLevel.Trace);
ModResolver resolver = new ModResolver();
+ // log loose files
+ {
+ string[] looseFiles = new DirectoryInfo(this.ModsPath).GetFiles().Select(p => p.Name).ToArray();
+ if (looseFiles.Any())
+ this.Monitor.Log($" Ignored loose files: {string.Join(", ", looseFiles.OrderBy(p => p, StringComparer.InvariantCultureIgnoreCase))}", LogLevel.Trace);
+ }
+
// load manifests
IModMetadata[] mods = resolver.ReadManifests(toolkit, this.ModsPath, modDatabase).ToArray();