summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-02 20:47:54 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-02 20:48:29 -0500
commitae7d9d6bc484bd27922e6652d116ce7ddd4b8104 (patch)
tree3b21eca2824ff16b5eff6b0a543eeca210ee5978 /src/StardewModdingAPI/Program.cs
parent8c6dca95dae1878610c4cdf18a2f98578e3c577e (diff)
downloadSMAPI-ae7d9d6bc484bd27922e6652d116ce7ddd4b8104.tar.gz
SMAPI-ae7d9d6bc484bd27922e6652d116ce7ddd4b8104.tar.bz2
SMAPI-ae7d9d6bc484bd27922e6652d116ce7ddd4b8104.zip
fix error when SMAPI tries to load Mac metadata files for DLLs
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-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));