Gets the skins. @return the skins
()
| 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) { |
no test coverage detected