MCPcopy Create free account
hub / github.com/demoth/jake2 / IconOfSkinExists

Method IconOfSkinExists

client/src/main/java/jake2/client/Menu.java:3566–3586  ·  view source on GitHub ↗
(String skin, String pcxfiles[],
                                            int npcxfiles)

Source from the content-addressed store, hash-verified

3564 }
3565
3566 private static boolean IconOfSkinExists(String skin, String pcxfiles[],
3567 int npcxfiles) {
3568
3569 String scratch;
3570
3571 //strcpy(scratch, skin);
3572 scratch = skin;
3573 int pos = scratch.lastIndexOf('.');
3574 if (pos != -1)
3575 scratch = scratch.substring(0, pos) + "_i.pcx";
3576
3577 else
3578 scratch += "_i.pcx";
3579
3580 for (int i = 0; i < npcxfiles; i++) {
3581 if (pcxfiles[i].equals(scratch))
3582 return true;
3583 }
3584
3585 return false;
3586 }
3587
3588 private static boolean PlayerConfig_ScanDirectories() {
3589 //char findname[1024];

Callers 1

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected