Fix assembly load error where taglib-sharp.dll could not be found.

master v1.2.1
Icedream 2015-04-18 23:47:55 +02:00
parent 69913ce25d
commit c7d42c12d0
1 changed files with 1 additions and 1 deletions

View File

@ -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)