mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 14:47:33 +00:00
Fixed tests
This commit is contained in:
@@ -409,14 +409,14 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
|
||||
public static final int LIBRARY_AIR = 0;
|
||||
public static final int LIBRARY_FLASH = 1;
|
||||
|
||||
|
||||
public static AbcIndexing getPlayerGlobalAbcIndex() {
|
||||
return playerGlobalAbcIndex;
|
||||
}
|
||||
|
||||
public static AbcIndexing getAirGlobalAbcIndex() {
|
||||
return airGlobalAbcIndex;
|
||||
}
|
||||
}
|
||||
|
||||
public AbcIndexing getAbcIndex() {
|
||||
if (abcIndex != null) {
|
||||
@@ -428,21 +428,20 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
if (conf.getCustomData(CustomConfigurationKeys.KEY_LIBRARY, "" + LIBRARY_FLASH).equals("" + LIBRARY_AIR)) {
|
||||
air = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
try {
|
||||
SWF.initPlayer();
|
||||
} catch (IOException | InterruptedException ex) {
|
||||
Logger.getLogger(SWF.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
abcIndex = new AbcIndexing(air ? SWF.getAirGlobalAbcIndex() : SWF.getPlayerGlobalAbcIndex());
|
||||
for (Tag tag:tags) {
|
||||
if (tag instanceof ABCContainerTag) {
|
||||
abcIndex.addAbc(((ABCContainerTag)tag).getABC());
|
||||
for (Tag tag : tags) {
|
||||
if (tag instanceof ABCContainerTag) {
|
||||
abcIndex.addAbc(((ABCContainerTag) tag).getABC());
|
||||
}
|
||||
}
|
||||
return abcIndex;
|
||||
}
|
||||
|
||||
|
||||
public static void initPlayer() throws IOException, InterruptedException {
|
||||
if (playerGlobalAbcIndex == null) {
|
||||
@@ -1609,6 +1608,9 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
if (fileTitle != null) {
|
||||
return fileTitle;
|
||||
}
|
||||
if (file == null) {
|
||||
return "_";
|
||||
}
|
||||
return new File(file).getName();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user