Remove more "#if PORT"
This commit is contained in:
parent
9376aa0de5
commit
f7f424efe7
|
@ -52,7 +52,6 @@ namespace de4dot.code.deobfuscators {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PORT
|
|
||||||
class ListInstrs : IInstructions {
|
class ListInstrs : IInstructions {
|
||||||
IList<Instr> instrs;
|
IList<Instr> instrs;
|
||||||
|
|
||||||
|
@ -68,7 +67,6 @@ namespace de4dot.code.deobfuscators {
|
||||||
this.instrs = instrs;
|
this.instrs = instrs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
public bool EmulateConvInstructions {
|
public bool EmulateConvInstructions {
|
||||||
get { return emulateConvInstrs; }
|
get { return emulateConvInstrs; }
|
||||||
|
@ -92,7 +90,6 @@ namespace de4dot.code.deobfuscators {
|
||||||
: this(new ListInstructions(instrs), emulateConvInstrs) {
|
: this(new ListInstructions(instrs), emulateConvInstrs) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PORT
|
|
||||||
public ConstantsReader(IList<Instr> instrs)
|
public ConstantsReader(IList<Instr> instrs)
|
||||||
: this(new ListInstrs(instrs)) {
|
: this(new ListInstrs(instrs)) {
|
||||||
}
|
}
|
||||||
|
@ -100,19 +97,16 @@ namespace de4dot.code.deobfuscators {
|
||||||
public ConstantsReader(IList<Instr> instrs, bool emulateConvInstrs)
|
public ConstantsReader(IList<Instr> instrs, bool emulateConvInstrs)
|
||||||
: this(new ListInstrs(instrs), emulateConvInstrs) {
|
: this(new ListInstrs(instrs), emulateConvInstrs) {
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
public ConstantsReader(MethodDef method)
|
public ConstantsReader(MethodDef method)
|
||||||
: this(method.CilBody.Instructions) {
|
: this(method.CilBody.Instructions) {
|
||||||
this.locals = method.CilBody.LocalList;
|
this.locals = method.CilBody.LocalList;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PORT
|
|
||||||
public ConstantsReader(IList<Instr> instrs, IList<Local> locals)
|
public ConstantsReader(IList<Instr> instrs, IList<Local> locals)
|
||||||
: this(instrs) {
|
: this(instrs) {
|
||||||
this.locals = locals;
|
this.locals = locals;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
public void setConstantInt32(Local local, int value) {
|
public void setConstantInt32(Local local, int value) {
|
||||||
localsValuesInt32[local] = value;
|
localsValuesInt32[local] = value;
|
||||||
|
|
|
@ -23,9 +23,7 @@ using System.Collections.Generic;
|
||||||
using dot10.DotNet;
|
using dot10.DotNet;
|
||||||
using de4dot.blocks;
|
using de4dot.blocks;
|
||||||
using de4dot.code;
|
using de4dot.code;
|
||||||
#if PORT
|
|
||||||
using de4dot.code.renamer;
|
using de4dot.code.renamer;
|
||||||
#endif
|
|
||||||
using de4dot.code.deobfuscators;
|
using de4dot.code.deobfuscators;
|
||||||
using de4dot.code.AssemblyClient;
|
using de4dot.code.AssemblyClient;
|
||||||
|
|
||||||
|
@ -359,13 +357,11 @@ namespace de4dot.cui {
|
||||||
void rename(IEnumerable<IObfuscatedFile> theFiles) {
|
void rename(IEnumerable<IObfuscatedFile> theFiles) {
|
||||||
if (!options.RenameSymbols)
|
if (!options.RenameSymbols)
|
||||||
return;
|
return;
|
||||||
#if PORT
|
|
||||||
var renamer = new Renamer(deobfuscatorContext, theFiles) {
|
var renamer = new Renamer(deobfuscatorContext, theFiles) {
|
||||||
RestorePropertiesFromNames = options.RestorePropsEvents,
|
RestorePropertiesFromNames = options.RestorePropsEvents,
|
||||||
RestoreEventsFromNames = options.RestorePropsEvents,
|
RestoreEventsFromNames = options.RestorePropsEvents,
|
||||||
};
|
};
|
||||||
renamer.rename();
|
renamer.rename();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user