MCPcopy Index your code
hub / github.com/assaultcube/AC / findzip

Function findzip

source/src/zip.cpp:483–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481// zip packages are restricted to contain files below "packages/" only - unless the zip filename starts with "###", which additionally allows files below "config/"
482
483ziparchive *findzip(const char *name)
484{
485 loopv(archives) if(!strcmp(name, archives[i]->name)) return archives[i];
486 return NULL;
487}
488
489const char *fixzipname(char *name) // check, if valid path + filename, based on mods/, return NULL if invalid
490{

Callers 3

addzipmodFunction · 0.85
zipmodremoveFunction · 0.85
loopvFunction · 0.85

Calls 1

loopvFunction · 0.70

Tested by

no test coverage detected