mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
token artwork - try uppercase set name
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -119,11 +119,15 @@ public final class ImageKeys {
|
|||||||
if (file != null) { return file; }
|
if (file != null) { return file; }
|
||||||
}
|
}
|
||||||
|
|
||||||
// try without set name
|
|
||||||
if (dir.equals(CACHE_TOKEN_PICS_DIR)) {
|
if (dir.equals(CACHE_TOKEN_PICS_DIR)) {
|
||||||
int index = filename.lastIndexOf('_');
|
int index = filename.lastIndexOf('_');
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
String setlessFilename = filename.substring(0, index);
|
String setlessFilename = filename.substring(0, index);
|
||||||
|
String setCode = filename.substring(index + 1, filename.length());
|
||||||
|
// try with upper case set
|
||||||
|
file = findFile(dir, setlessFilename + "_" + setCode.toUpperCase());
|
||||||
|
if (file != null) { return file; }
|
||||||
|
// try without set name
|
||||||
file = findFile(dir, setlessFilename);
|
file = findFile(dir, setlessFilename);
|
||||||
if (file != null) { return file; }
|
if (file != null) { return file; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user