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

Method preloadCache

forge-gui-mobile/src/forge/assets/ImageCache.java:430–437  ·  view source on GitHub ↗
(Iterable<String> keys)

Source from the content-addressed store, hash-verified

428 }
429
430 public void preloadCache(Iterable<String> keys) {
431 if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_DISABLE_CARD_IMAGES))
432 return;
433 for (String imageKey : keys) {
434 if (getImage(imageKey, false) == null)
435 System.err.println("could not load card image:" + imageKey);
436 }
437 }
438
439 public void preloadCache(Deck deck) {
440 if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_DISABLE_CARD_IMAGES))

Callers 6

updateMethod · 0.80
editDeckMethod · 0.80
editSelectedDeckMethod · 0.80
showMethod · 0.80
editDeckMethod · 0.80

Calls 7

getPreferencesMethod · 0.95
getImageMethod · 0.95
getPrefBooleanMethod · 0.80
sizeMethod · 0.65
getImageKeyMethod · 0.65
toFlatListMethod · 0.45

Tested by

no test coverage detected