mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 20:10:45 +00:00
avm2 instructions fixed in hex view
This commit is contained in:
@@ -18,6 +18,8 @@ package com.jpexs.decompiler.flash.dumpview;
|
||||
|
||||
import com.jpexs.decompiler.flash.tags.TagStub;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -77,6 +79,25 @@ public class DumpInfo {
|
||||
return childInfos;
|
||||
}
|
||||
|
||||
public void sortChildren() {
|
||||
if (childInfos == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Collections.sort(childInfos, new Comparator<DumpInfo>() {
|
||||
|
||||
@Override
|
||||
public int compare(DumpInfo o1, DumpInfo o2) {
|
||||
int res = Long.compare(o1.startByte, o2.startByte);
|
||||
if (res != 0) {
|
||||
return res;
|
||||
}
|
||||
|
||||
return Integer.compare(o1.startBit, o1.startBit);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public long getEndByte() {
|
||||
int end = (int) startByte;
|
||||
if (lengthBytes != 0) {
|
||||
|
||||
Reference in New Issue
Block a user