MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / MCCTextures_CheckExistence

Function MCCTextures_CheckExistence

src/Resources.c:1131–1141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129}
1130
1131static void MCCTextures_CheckExistence(void) {
1132 cc_string path = String_FromReadonly(Game_Version.DefaultTexpack);
1133 zipEntriesFound = 0;
1134
1135 ZipFile_InspectEntries(&path, DefaultZip_SelectEntry);
1136 /* >= in case somehow have say "gui.png", "GUI.png" */
1137 allZipEntriesExist = zipEntriesFound >= Array_Elems(defaultZipEntries);
1138
1139 /* Need touch.png from ClassiCube textures */
1140 if (!allZipEntriesExist) ccTexturesExist = false;
1141}
1142
1143static void MCCTextures_CountMissing(void) {
1144 int i;

Callers

nothing calls this directly

Calls 2

String_FromReadonlyFunction · 0.85
ZipFile_InspectEntriesFunction · 0.85

Tested by

no test coverage detected