From dcdebcced44b8bebeddde926a8f59345138b608f Mon Sep 17 00:00:00 2001 From: icedream Date: Sat, 18 Apr 2015 23:47:55 +0200 Subject: [PATCH] Fix assembly load error where taglib-sharp.dll could not be found. --- src/addoncreator/Addon/AddonFile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addoncreator/Addon/AddonFile.cs b/src/addoncreator/Addon/AddonFile.cs index 6b5304a..253fd34 100644 --- a/src/addoncreator/Addon/AddonFile.cs +++ b/src/addoncreator/Addon/AddonFile.cs @@ -246,7 +246,7 @@ namespace GarrysMod.AddonCreator.Addon .ToDictionary(i => i.Key, i => i.Value); files = files - .Select(f => Assembly.LoadFrom("taglib-sharp.dll") + .Select(f => typeof(SupportedMimeType).Assembly .GetTypes() .Where(t => t.IsSubclassOf(typeof (TagLib.File))) .Any(mediaSupport => mediaSupport.GetCustomAttributes(typeof (SupportedMimeType), false)