Update ImageKeys.java

This commit is contained in:
Anthony Calosa
2021-08-19 12:33:07 +00:00
parent 8a4f78849f
commit e1a3c722cd

View File

@@ -132,17 +132,19 @@ public final class ImageKeys {
//setlookup //setlookup
if (!StaticData.instance().getSetLookup().isEmpty()) { if (!StaticData.instance().getSetLookup().isEmpty()) {
for (String setKey : StaticData.instance().getSetLookup().keySet()) { for (String setKey : StaticData.instance().getSetLookup().keySet()) {
for (String setLookup : StaticData.instance().getSetLookup().get(setKey)) { if (filename.startsWith(setKey)) {
//.fullborder lookup for (String setLookup : StaticData.instance().getSetLookup().get(setKey)) {
file = findFile(dir, TextUtil.fastReplace(fullborderFile, setKey, getSetFolder(setLookup))); //.fullborder lookup
if (file != null) { return file; } file = findFile(dir, TextUtil.fastReplace(fullborderFile, setKey, getSetFolder(setLookup)));
file = findFile(dir, TextUtil.fastReplace(fullborderFile, setKey, getSetFolder(setLookup)).replaceAll("[0-9]*.fullborder", "1.fullborder")); if (file != null) { return file; }
if (file != null) { return file; } file = findFile(dir, TextUtil.fastReplace(fullborderFile, setKey, getSetFolder(setLookup)).replaceAll("[0-9]*.fullborder", "1.fullborder"));
//.full lookup if (file != null) { return file; }
file = findFile(dir, TextUtil.fastReplace(filename, setKey, getSetFolder(setLookup))); //.full lookup
if (file != null) { return file; } file = findFile(dir, TextUtil.fastReplace(filename, setKey, getSetFolder(setLookup)));
file = findFile(dir, TextUtil.fastReplace(filename, setKey, getSetFolder(setLookup)).replaceAll("[0-9]*.full", "1.full")); if (file != null) { return file; }
if (file != null) { return file; } file = findFile(dir, TextUtil.fastReplace(filename, setKey, getSetFolder(setLookup)).replaceAll("[0-9]*.full", "1.full"));
if (file != null) { return file; }
}
} }
} }
} }