Don't ignore mixed mode assemblies

This commit is contained in:
de4dot 2012-04-22 15:58:54 +02:00
parent 212a89c341
commit 4d8eb601f2

View File

@ -134,17 +134,8 @@ namespace de4dot.cui {
CreateDestinationDir = !onlyScan,
});
bool ignoreNativeCodeFiles = !onlyScan;
foreach (var file in loader.load()) {
if (ignoreNativeCodeFiles) {
if ((file.ModuleDefinition.Attributes & ModuleAttributes.ILOnly) == 0) {
Log.w("Ignoring assembly with native code {0}", file.Filename);
removeModule(file.ModuleDefinition);
continue;
}
}
foreach (var file in loader.load())
yield return file;
}
}
class DotNetFileLoader {