Search in sources :

Example 1 with BufferMethodInjector

use of net.runelite.deob.deobfuscators.transformers.buffer.BufferMethodInjector in project runelite by runelite.

the class RuneliteBufferTransformer method injectBufferMethods.

/**
 * inject runelite buffer methods
 *
 * @param group
 */
private void injectBufferMethods(ClassGroup group) {
    BufferFinder bf = new BufferFinder(group);
    bf.find();
    BufferPayloadFinder bpf = new BufferPayloadFinder(bf.getBuffer());
    bpf.find();
    BufferMethodInjector bmi = new BufferMethodInjector(bpf);
    try {
        bmi.inject();
    } catch (IOException ex) {
        logger.warn("unable to inject buffer methods", ex);
    }
}
Also used : BufferFinder(net.runelite.deob.deobfuscators.transformers.buffer.BufferFinder) BufferPayloadFinder(net.runelite.deob.deobfuscators.transformers.buffer.BufferPayloadFinder) BufferMethodInjector(net.runelite.deob.deobfuscators.transformers.buffer.BufferMethodInjector) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 BufferFinder (net.runelite.deob.deobfuscators.transformers.buffer.BufferFinder)1 BufferMethodInjector (net.runelite.deob.deobfuscators.transformers.buffer.BufferMethodInjector)1 BufferPayloadFinder (net.runelite.deob.deobfuscators.transformers.buffer.BufferPayloadFinder)1