replace AS2 pcode from comandline (AS3 not ready)

This commit is contained in:
honfika@gmail.com
2014-09-04 10:48:02 +02:00
parent 8407b874ea
commit 04152c1c93
4 changed files with 192 additions and 96 deletions

View File

@@ -187,7 +187,7 @@ public class ASMSourceEditorPane extends LineMarkedEditorPane implements CaretLi
View.showMessageDialog(this, "Returned object:" + o.toString());
}
public boolean save(ConstantPool constants) {
public boolean save() {
try {
String text = getText();
if (text.trim().startsWith("#hexdata")) {
@@ -203,7 +203,7 @@ public class ASMSourceEditorPane extends LineMarkedEditorPane implements CaretLi
}
mb.code.compact();
} else {
AVM2Code acode = ASM3Parser.parse(new StringReader(text), constants, trait, new MissingSymbolHandler() {
AVM2Code acode = ASM3Parser.parse(new StringReader(text), abc.constants, trait, new MissingSymbolHandler() {
//no longer ask for adding new constants
@Override
public boolean missingString(String value) {