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

Function TexturePack_SetDefault

src/TexturePack.c:492–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490cc_bool TexturePack_DefaultMissing;
491
492void TexturePack_SetDefault(const cc_string* texPack) {
493 TexturePack_Path.length = 0;
494 String_Format1(&TexturePack_Path, "texpacks/%s", texPack);
495 Options_Set(OPT_DEFAULT_TEX_PACK, texPack);
496}
497
498cc_result TexturePack_ExtractDefault(DefaultZipCallback callback, const char** default_path) {
499 cc_result res = ReturnCode_FileNotFound;

Callers 2

Calls 2

String_Format1Function · 0.85
Options_SetFunction · 0.85

Tested by

no test coverage detected