()
| 76 | } |
| 77 | |
| 78 | public static String[] detectTexturePacks() { |
| 79 | File file = new File(SC_TEXTURE_FOLDER + File.separator); |
| 80 | File[] files = file.listFiles(new DirectoryFilter()); |
| 81 | if (files == null) { |
| 82 | // TODO |
| 83 | Loggger.log("no textures to install found"); |
| 84 | } else { |
| 85 | int length = files.length; |
| 86 | String[] detectedTexturePacks = new String[length]; |
| 87 | int i = 0; |
| 88 | for (File f : files) { |
| 89 | detectedTexturePacks[i] = f.getName(); |
| 90 | i++; |
| 91 | } |
| 92 | return detectedTexturePacks; |
| 93 | } |
| 94 | return null; |
| 95 | } |
| 96 | } |
no test coverage detected