Better decimal support (For ABCs with minor version 17)

This commit is contained in:
Jindra Petřík
2024-08-12 19:51:40 +02:00
parent 9ee2549e60
commit 534ac03314
53 changed files with 4443 additions and 91 deletions
@@ -26,7 +26,6 @@ import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.ASM3Parser;
import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.Flasm3Lexer;
import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.MissingSymbolHandler;
import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.ParsedSymbol;
import com.jpexs.decompiler.flash.abc.types.Decimal;
import com.jpexs.decompiler.flash.abc.types.Float4;
import com.jpexs.decompiler.flash.abc.types.MethodBody;
import com.jpexs.decompiler.flash.abc.types.traits.Trait;
@@ -65,6 +64,7 @@ import javax.swing.event.CaretEvent;
import javax.swing.event.CaretListener;
import javax.swing.text.BadLocationException;
import javax.swing.text.Utilities;
import macromedia.asc.util.Decimal128;
/**
* @author JPEXS
@@ -319,7 +319,7 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
}
@Override
public boolean missingDecimal(Decimal value) {
public boolean missingDecimal(Decimal128 value) {
return true;
}
@@ -17,12 +17,12 @@
package com.jpexs.decompiler.flash.gui.abc;
import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.MissingSymbolHandler;
import com.jpexs.decompiler.flash.abc.types.Decimal;
import com.jpexs.decompiler.flash.abc.types.Float4;
import com.jpexs.decompiler.flash.gui.AppStrings;
import com.jpexs.decompiler.flash.gui.Main;
import com.jpexs.decompiler.flash.gui.ViewMessages;
import javax.swing.JOptionPane;
import macromedia.asc.util.Decimal128;
/**
* @author JPEXS
@@ -50,7 +50,7 @@ public class DialogMissingSymbolHandler implements MissingSymbolHandler {
}
@Override
public boolean missingDecimal(Decimal value) {
public boolean missingDecimal(Decimal128 value) {
//I don't want to create new localizable string - it is not used at all
return true;
}