MCPcopy Create free account
hub / github.com/assaultcube/AC / checktexturefilename

Function checktexturefilename

source/src/texture.cpp:472–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472void checktexturefilename(const char *name)
473{
474 if(execcontext == IEXC_MAPCFG && strstr(name, "map_editor"))
475 {
476 conoutf("\f3bad texture: %s", name);
477 if(!_ignoreillegalpaths) { flagmapconfigerror(LWW_CONFIGERR * 4); scripterr(); }
478 }
479}
480
481COMMANDF(texture, "fs", (float *scale, char *name)
482{

Callers 3

texture.cppFile · 0.85
loadskymapFunction · 0.85
loadnotextureFunction · 0.85

Calls 3

flagmapconfigerrorFunction · 0.85
scripterrFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected