From 6f7d9be26c6d01a7cee254ada8c5ea48307f7925 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 7 Mar 2020 01:12:34 +0000 Subject: [PATCH] Add Pc annotation I'm intending to use this in a patched version of Fernflower to track the original index of each local variable's STORE instruction, allowing us to retain local variable names even if the deobfuscator is run multiple times. --- .../src/main/java/dev/openrs2/deob/annotation/Pc.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 deob-annotations/src/main/java/dev/openrs2/deob/annotation/Pc.java diff --git a/deob-annotations/src/main/java/dev/openrs2/deob/annotation/Pc.java b/deob-annotations/src/main/java/dev/openrs2/deob/annotation/Pc.java new file mode 100644 index 0000000000..6fa802eb1e --- /dev/null +++ b/deob-annotations/src/main/java/dev/openrs2/deob/annotation/Pc.java @@ -0,0 +1,9 @@ +package dev.openrs2.deob.annotation; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Target; + +@Target({ ElementType.LOCAL_VARIABLE }) +public @interface Pc { + int value(); +}