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

Method getSkinDirectoryNames

forge-gui-mobile/src/forge/assets/FSkin.java:594–608  ·  view source on GitHub ↗

Gets the skins. @return the skins

()

Source from the content-addressed store, hash-verified

592 * @return the skins
593 */
594 public static Array<String> getSkinDirectoryNames() {
595 final Array<String> mySkins = new Array<>();
596
597 final FileHandle dir = Gdx.files.absolute(ForgeConstants.CACHE_SKINS_DIR);
598 for (FileHandle skinFile : dir.list()) {
599 String skinName = skinFile.name();
600 if (skinName.equalsIgnoreCase(".svn")) { continue; }
601 if (skinName.equalsIgnoreCase(".DS_Store")) { continue; }
602 if (!skinFile.isDirectory()) { continue; }
603 if (!isThemeValid(skinFile, skinName, true)) { continue; }
604 mySkins.add(skinName);
605 }
606
607 return mySkins;
608 }
609
610 public static Iterable<String> getAllSkins() {
611 if (allSkins != null) {

Callers 2

loadLightMethod · 0.95
getAllSkinsMethod · 0.95

Calls 3

isThemeValidMethod · 0.95
addMethod · 0.65
nameMethod · 0.45

Tested by

no test coverage detected