BCV API Change
This API change will break compatibility with most pre-existing plugins
This commit is contained in:
parent
7eda960981
commit
c5b53be4b8
13 changed files with 31 additions and 32 deletions
|
@ -26,7 +26,7 @@ public class ExampleStringDecrypter extends Plugin {
|
|||
{
|
||||
for(ClassNode cn : classNodesList)
|
||||
{
|
||||
the.bytecode.club.bytecodeviewer.api.BytecodeViewer.getClassNodeLoader().addClass(cn);
|
||||
BCV.getClassNodeLoader().addClass(cn);
|
||||
|
||||
for(Object o : cn.fields.toArray())
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ public class ExampleStringDecrypter extends Plugin {
|
|||
if(f.name.equals("z")) {// && f.desc.equals("([Ljava/lang/String;)V")) {
|
||||
try
|
||||
{
|
||||
for(Field f2 : the.bytecode.club.bytecodeviewer.api.BytecodeViewer.getClassNodeLoader().nodeToClass(cn).getFields())
|
||||
for(Field f2 : BCV.getClassNodeLoader().nodeToClass(cn).getFields())
|
||||
{
|
||||
String s = f2.get(null);
|
||||
if(s != null && !s.empty())
|
||||
|
|
|
@ -26,7 +26,7 @@ public class ExampleStringDecrypter extends Plugin {
|
|||
{
|
||||
for(ClassNode cn : classNodesList)
|
||||
{
|
||||
the.bytecode.club.bytecodeviewer.api.BytecodeViewer.getClassNodeLoader().addClass(cn);
|
||||
the.bytecode.club.bytecodeviewer.api.BCV.getClassNodeLoader().addClass(cn);
|
||||
|
||||
for(Object o : cn.fields.toArray())
|
||||
{
|
||||
|
@ -34,7 +34,7 @@ public class ExampleStringDecrypter extends Plugin {
|
|||
if(f.name.equals("z")) {// && f.desc.equals("([Ljava/lang/String;)V")) {
|
||||
try
|
||||
{
|
||||
for(Field f2 : the.bytecode.club.bytecodeviewer.api.BytecodeViewer.getClassNodeLoader().nodeToClass(cn).getFields())
|
||||
for(Field f2 : the.bytecode.club.bytecodeviewer.api.BCV.getClassNodeLoader().nodeToClass(cn).getFields())
|
||||
{
|
||||
String s = f2.get(null);
|
||||
if(s != null && !s.empty())
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
var PluginConsole = Java.type("the.bytecode.club.bytecodeviewer.api.PluginConsole");
|
||||
var MultipleChoiceDialogue = Java.type("the.bytecode.club.bytecodeviewer.gui.components.MultipleChoiceDialogue")
|
||||
var BytecodeViewer = Java.type("the.bytecode.club.bytecodeviewer.api.BytecodeViewer")
|
||||
var BytecodeViewer = Java.type("the.bytecode.club.bytecodeviewer.api.BCV")
|
||||
|
||||
var dialogue = new MultipleChoiceDialogue("Bytecode Viewer - WARNING",
|
||||
"WARNING: This will load the classes into the JVM and execute the initialize function"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue