File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
src/the/bytecode/club/bytecodeviewer Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 14
14
import java .net .URL ;
15
15
import java .util .ArrayList ;
16
16
import java .util .HashMap ;
17
+ import java .util .List ;
17
18
import java .util .Map .Entry ;
18
19
19
20
import javax .swing .JDialog ;
@@ -120,6 +121,7 @@ public class BytecodeViewer {
120
121
121
122
/* ASM Re-mapping Constants */
122
123
public static Refactorer refactorer = new Refactorer ();
124
+ public static List <String > main_classes = new ArrayList <>();
123
125
/* ASM Re-mapping Constants */
124
126
125
127
/**
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ public void obfuscate() {
27
27
System .out .println ("Obfuscating class names..." );
28
28
classLoop : for (ClassNode c : BytecodeViewer .getLoadedClasses ()) {
29
29
30
+ /** As we dont want to rename classes the user specified as main-classes */
31
+ for (String name : BytecodeViewer .main_classes ) {
32
+ if (name .equals (c .name ))
33
+ continue classLoop ;
34
+ }
35
+
30
36
/** As we dont want to rename classes that contain native dll methods */
31
37
for (Object o : c .methods ) {
32
38
MethodNode m = (MethodNode ) o ;
You can’t perform that action at this time.
0 commit comments