summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release-notes.md3
-rw-r--r--src/StardewModdingAPI/Program.cs3
2 files changed, 6 insertions, 0 deletions
diff --git a/release-notes.md b/release-notes.md
index 2ef8b332..0c6b8a89 100644
--- a/release-notes.md
+++ b/release-notes.md
@@ -3,6 +3,9 @@
## 1.8
See [log](https://github.com/Pathoschild/SMAPI/compare/1.7...1.8).
+* For players:
+ * Fixed a rare issue where loading mods failed due to hidden metadata files on Mac.
+
* For mod developers:
* You can now create a `SemanticVersion` from a version string.
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index ec3ccce7..08b5c636 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -464,6 +464,9 @@ namespace StardewModdingAPI
bool succeeded = true;
foreach (string assemblyPath in Directory.GetFiles(directory, "*.dll"))
{
+ if (Path.GetFileName(assemblyPath).StartsWith("."))
+ continue; // skip hidden files (e.g. Mac sometimes copies with "._" prefix).
+
try
{
processedAssemblies.Add(modAssemblyLoader.ProcessAssemblyUnlessCached(assemblyPath));