summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/StardewModdingAPI/Program.cs3
1 files changed, 3 insertions, 0 deletions
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));