mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-01 08:35:30 +00:00
#989 Rename invalid idetifiers -Type - classes get lost if name exists: check existing constants in all abc tags
This commit is contained in:
@@ -1829,6 +1829,19 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
getVariables(variables, actionsMap, functions, strings, usageTypes, asm, path);
|
||||
}
|
||||
|
||||
public boolean as3StringConstantExists(String str) {
|
||||
for (ABCContainerTag abcTag : getAbcList()) {
|
||||
ABC abc = abcTag.getABC();
|
||||
for (int i = 1; i < abc.constants.getStringCount(); i++) {
|
||||
if (abc.constants.getString(i).equals(str)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void fixAS3Code() {
|
||||
for (ABCContainerTag abcTag : getAbcList()) {
|
||||
ABC abc = abcTag.getABC();
|
||||
|
||||
Reference in New Issue
Block a user