Remove classes with null base type
This commit is contained in:
parent
330be994a1
commit
d09938ca47
|
@ -266,8 +266,6 @@ namespace de4dot.code.deobfuscators.CodeVeil {
|
|||
}
|
||||
}
|
||||
|
||||
removeTypesWithInvalidBaseTypes();
|
||||
|
||||
removeProxyDelegates(proxyDelegateFinder, canRemoveProxyTypes);
|
||||
if (canRemoveProxyTypes) {
|
||||
addTypeToBeRemoved(proxyDelegateFinder.IlGeneratorType, "Obfuscator proxy method ILGenerator type");
|
||||
|
|
|
@ -166,6 +166,8 @@ namespace de4dot.code.deobfuscators {
|
|||
|
||||
public virtual void deobfuscateEnd() {
|
||||
if (!Operations.KeepObfuscatorTypes && !KeepTypes) {
|
||||
removeTypesWithInvalidBaseTypes();
|
||||
|
||||
deleteEmptyCctors();
|
||||
deleteMethods();
|
||||
deleteFields();
|
||||
|
@ -200,7 +202,7 @@ namespace de4dot.code.deobfuscators {
|
|||
}
|
||||
}
|
||||
|
||||
protected void removeTypesWithInvalidBaseTypes() {
|
||||
void removeTypesWithInvalidBaseTypes() {
|
||||
var moduleType = DotNetUtils.getModuleType(module);
|
||||
foreach (var type in module.GetTypes()) {
|
||||
if (!isTypeWithInvalidBaseType(moduleType, type))
|
||||
|
|
Loading…
Reference in New Issue
Block a user