mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 13:50:43 +00:00
jump to resources view from hex view
This commit is contained in:
@@ -94,7 +94,6 @@ public class DumpInfo implements TreeItem {
|
||||
}
|
||||
|
||||
Collections.sort(childInfos, new Comparator<DumpInfo>() {
|
||||
|
||||
@Override
|
||||
public int compare(DumpInfo o1, DumpInfo o2) {
|
||||
int res = Long.compare(o1.startByte, o2.startByte);
|
||||
@@ -149,7 +148,7 @@ public class DumpInfo implements TreeItem {
|
||||
|
||||
@Override
|
||||
public SWF getSwf() {
|
||||
Tag tag = getTag();
|
||||
Tag tag = tagToResolve != null ? tagToResolve : resolvedTag;
|
||||
if (tag != null) {
|
||||
return tag.getSwf();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.dumpview;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class DumpInfoSpecial extends DumpInfo {
|
||||
|
||||
public DumpInfoSpecialType specialType;
|
||||
|
||||
public Object specialValue;
|
||||
|
||||
public DumpInfoSpecial(String name, String type, Object value, long startByte, int startBit, long lengthBytes, int lengthBits, DumpInfoSpecialType specialType) {
|
||||
super(name, type, value, startByte, startBit, lengthBytes, lengthBits);
|
||||
this.specialType = specialType;
|
||||
}
|
||||
|
||||
public DumpInfoSpecial(String name, String type, Object value, long startByte, int startBit, long lengthBytes, int lengthBits, DumpInfoSpecialType specialType, Object specialValue) {
|
||||
super(name, type, value, startByte, startBit, lengthBytes, lengthBits);
|
||||
this.specialType = specialType;
|
||||
this.specialValue = specialValue;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.dumpview;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public enum DumpInfoSpecialType {
|
||||
NONE, ZLIB_DATA,
|
||||
TAG,
|
||||
ACTION_BYTES,
|
||||
ABC_BYTES, ABC_METHOD_BODY, ABC_CODE
|
||||
}
|
||||
Reference in New Issue
Block a user