diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-02 20:47:54 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-02 20:48:29 -0500 |
commit | ae7d9d6bc484bd27922e6652d116ce7ddd4b8104 (patch) | |
tree | 3b21eca2824ff16b5eff6b0a543eeca210ee5978 /src/StardewModdingAPI/Program.cs | |
parent | 8c6dca95dae1878610c4cdf18a2f98578e3c577e (diff) | |
download | SMAPI-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.cs | 3 |
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)); |