Return number of method calls that were replaced
This commit is contained in:
parent
28b73d36ed
commit
bd7a6763a6
|
@ -168,7 +168,7 @@ namespace de4dot {
|
|||
// Returns null if method is not a method we should inline
|
||||
protected abstract CallResult createCallResult(MethodReference method, Block block, int callInstrIndex);
|
||||
|
||||
public void decrypt(Blocks theBlocks) {
|
||||
public int decrypt(Blocks theBlocks) {
|
||||
try {
|
||||
blocks = theBlocks;
|
||||
callResults = new List<CallResult>();
|
||||
|
@ -177,6 +177,7 @@ namespace de4dot {
|
|||
findAllCallResults();
|
||||
inlineAllCalls();
|
||||
inlineReturnValues();
|
||||
return callResults.Count;
|
||||
}
|
||||
finally {
|
||||
blocks = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user