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

Function Server_RetrieveTexturePack

src/Server.c:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Server_RetrieveTexturePack(const cc_string* url) {
48 if (!Game_AllowServerTextures || TextureUrls_HasDenied(url)) return;
49
50 if (!url->length || TextureUrls_HasAccepted(url)) {
51 TexturePack_Extract(url);
52 } else {
53 TexPackOverlay_Show(url);
54 }
55}
56
57
58/*########################################################################################################################*

Callers 2

Cw_Callback_4Function · 0.85
CPE_ApplyTexturePackFunction · 0.85

Calls 4

TextureUrls_HasDeniedFunction · 0.85
TextureUrls_HasAcceptedFunction · 0.85
TexturePack_ExtractFunction · 0.85
TexPackOverlay_ShowFunction · 0.85

Tested by

no test coverage detected