Fix cards like planes/phenomenon not loading an existing images that have .full/.fullborder

This commit is contained in:
Anthony Calosa
2019-11-17 08:02:11 +08:00
parent 0a9078a2ec
commit 1c19f36637

View File

@@ -116,6 +116,13 @@ public final class ImageKeys {
file = findFile(dir, TextUtil.fastReplace(filename, ".full", ".fullborder"));
if (file != null) { return file; }
}
//if an image, like phenomenon or planes is missing .full in their filenames but you have an existing images that have .full/.fullborder
if (!filename.contains(".full")) {
file = findFile(dir, filename+".full");
if (file != null) { return file; }
file = findFile(dir, filename+".fullborder");
if (file != null) { return file; }
}
// some S00 cards are really part of 6ED
String s2kAlias = getSetFolder("S00");
if (filename.startsWith(s2kAlias)) {