ifnonnull vs ifnull
This commit is contained in:
@@ -2,6 +2,7 @@ package net.runelite.deob.attributes.code.instructions;
|
|||||||
|
|
||||||
import net.runelite.deob.attributes.code.InstructionType;
|
import net.runelite.deob.attributes.code.InstructionType;
|
||||||
import net.runelite.deob.attributes.code.Instructions;
|
import net.runelite.deob.attributes.code.Instructions;
|
||||||
|
import net.runelite.deob.deobfuscators.rename.ParallelExecutorMapping;
|
||||||
import net.runelite.deob.execution.InstructionContext;
|
import net.runelite.deob.execution.InstructionContext;
|
||||||
import net.runelite.deob.execution.StackContext;
|
import net.runelite.deob.execution.StackContext;
|
||||||
|
|
||||||
@@ -32,7 +33,24 @@ public class IfNonNull extends If0
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (otherIc.getInstruction() instanceof IfNull)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void map(ParallelExecutorMapping mapping, InstructionContext ctx, InstructionContext other)
|
||||||
|
{
|
||||||
|
if (other.getInstruction() instanceof IfNull)
|
||||||
|
{
|
||||||
|
super.mapOtherBranch(mapping, ctx, other);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
super.map(mapping, ctx, other);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user