mirror of
https://github.com/SuspiciousActivity/ByteEdit.git
synced 2026-08-13 17:56:17 +00:00
Fixed a bug with annotations
This commit is contained in:
1 parent
cdddc284fd
commit
e81f5f6ee9
2 files changed
+21
-2
No files matched your search
@@ -444,15 +444,22 @@ public class Assembler {
|
||||
String split3[] = value.substring(2, value.length() - 2).split(", ");
|
||||
List<Object> list = new ArrayList<>();
|
||||
for (String rofl : split3) {
|
||||
if (!rofl.startsWith("(")) {
|
||||
if (rofl.startsWith("\"")) {
|
||||
int index = rofl.lastIndexOf("\"");
|
||||
list.add(rofl.substring(1, index));
|
||||
} else if (!rofl.startsWith("(")) {
|
||||
int index = rofl.indexOf(";");
|
||||
list.add(new String[] { rofl.substring(0, index) + ";", rofl.substring(index).substring(2) });
|
||||
} else { // anderer typ mit casten
|
||||
list.add(ClassUtil.getCastedValue(rofl.split(" ")[1], rofl.split("\\) ")[0].substring(1)));
|
||||
}
|
||||
}
|
||||
node.values.add(list);
|
||||
} else {
|
||||
if (!value.startsWith("(")) {
|
||||
if (value.startsWith("\"")) {
|
||||
int index = value.lastIndexOf("\"");
|
||||
node.values.add(value.substring(1, index));
|
||||
} else if (!value.startsWith("(")) {
|
||||
int index = value.indexOf(";");
|
||||
node.values.add(new String[] { value.substring(0, index) + ";", value.substring(index).substring(2) });
|
||||
} else { // anderer typ mit casten
|
||||
|
||||
@@ -71,6 +71,7 @@ public class Disassembler {
|
||||
List list = (List) o;
|
||||
s += "{ ";
|
||||
for (Object obj : list) {
|
||||
if (obj instanceof String[]) {
|
||||
String[] arr = (String[]) obj;
|
||||
boolean w8ing = false;
|
||||
for (String rofl : arr) {
|
||||
@@ -81,6 +82,9 @@ public class Disassembler {
|
||||
s += rofl;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s += "\"" + obj + "\"";
|
||||
}
|
||||
s += ", ";
|
||||
}
|
||||
s = s.substring(0, s.length() - 2);
|
||||
@@ -155,6 +159,7 @@ public class Disassembler {
|
||||
List list = (List) o;
|
||||
s += "{ ";
|
||||
for (Object obj : list) {
|
||||
if (obj instanceof String[]) {
|
||||
String[] arr = (String[]) obj;
|
||||
boolean w8ing = false;
|
||||
for (String rofl : arr) {
|
||||
@@ -165,6 +170,9 @@ public class Disassembler {
|
||||
s += rofl;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s += "\"" + obj + "\"";
|
||||
}
|
||||
s += ", ";
|
||||
}
|
||||
s = s.substring(0, s.length() - 2);
|
||||
@@ -225,6 +233,7 @@ public class Disassembler {
|
||||
List list = (List) o;
|
||||
s += "{ ";
|
||||
for (Object obj : list) {
|
||||
if (obj instanceof String[]) {
|
||||
String[] arr = (String[]) obj;
|
||||
boolean w8ing = false;
|
||||
for (String rofl : arr) {
|
||||
@@ -235,6 +244,9 @@ public class Disassembler {
|
||||
s += rofl;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
s += "\"" + obj + "\"";
|
||||
}
|
||||
s += ", ";
|
||||
}
|
||||
s = s.substring(0, s.length() - 2);
|
||||
|
||||
Reference in new issue
Block a user