MCPcopy Create free account
hub / github.com/Card-Forge/forge / getSetFolder

Method getSetFolder

forge-core/src/main/java/forge/ImageKeys.java:328–332  ·  view source on GitHub ↗
(String edition)

Source from the content-addressed store, hash-verified

326 }
327
328 public static String getSetFolder(String edition) {
329 return !CACHE_CARD_PICS_SUBDIR.containsKey(edition)
330 ? StaticData.instance().getEditions().getCode2ByCode(edition) // by default 2-letter codes from MWS are used
331 : CACHE_CARD_PICS_SUBDIR.get(edition); // may use custom paths though
332 }
333 public static boolean hasSetLookup(String filename) {
334 if (filename == null)
335 return false;

Callers 2

hasImageMethod · 0.95
getImageRelativePathMethod · 0.95

Calls 5

instanceMethod · 0.95
containsKeyMethod · 0.80
getCode2ByCodeMethod · 0.80
getMethod · 0.65
getEditionsMethod · 0.45

Tested by

no test coverage detected