mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-11 21:51:54 +00:00
Option to export script (AS1/2) as Graphviz P-code
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.exporters.modes;
|
||||
|
||||
/**
|
||||
@@ -23,7 +24,8 @@ public enum ScriptExportMode {
|
||||
AS,
|
||||
PCODE,
|
||||
PCODE_HEX,
|
||||
PCODE_GRAPHVIZ,
|
||||
HEX,
|
||||
CONSTANTS, // AS1/2 ConstantPool
|
||||
CONSTANTS, // AS1/2 ConstantPool
|
||||
AS_METHOD_STUBS
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.exporters.script;
|
||||
|
||||
import com.jpexs.decompiler.flash.AbortRetryIgnoreHandler;
|
||||
@@ -98,6 +99,8 @@ public class ExportScriptTask implements Callable<File> {
|
||||
asm.getActionSourcePrefix(writer2);
|
||||
asm.getActionBytesAsHex(writer2);
|
||||
asm.getActionSourceSuffix(writer2);
|
||||
} else if (exportMode == ScriptExportMode.PCODE_GRAPHVIZ) {
|
||||
new PcodeGraphVizExporter().export(asm, writer2);
|
||||
} else if (exportMode != ScriptExportMode.AS) {
|
||||
asm.getActionSourcePrefix(writer2);
|
||||
asm.getASMSource(exportMode, writer2, null);
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.exporters.settings;
|
||||
|
||||
import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode;
|
||||
@@ -42,6 +43,8 @@ public class ScriptExportSettings {
|
||||
case AS:
|
||||
case AS_METHOD_STUBS:
|
||||
return ".as";
|
||||
case PCODE_GRAPHVIZ:
|
||||
return ".gv";
|
||||
case PCODE:
|
||||
case PCODE_HEX:
|
||||
return ".pcode";
|
||||
|
||||
Reference in New Issue
Block a user