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

Function loadnotexture

source/src/texture.cpp:592–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592void loadnotexture(char *c)
593{
594 noworldtexture = notexture; // reset to default
595 *mapconfigdata.notexturename = '\0';
596 if(c[0])
597 {
598 checktexturefilename(c);
599 filtertext(mapconfigdata.notexturename, c, FTXT__MEDIAFILEPATH);
600 defformatstring(p)("packages/textures/%s", mapconfigdata.notexturename);
601 noworldtexture = textureload(p);
602 if(noworldtexture==notexture) { conoutf("could not load alternative texture '%s'.", p); flagmapconfigerror(LWW_CONFIGERR * 8); scripterr(); }
603 }
604 flagmapconfigchange();
605}
606
607COMMAND(loadnotexture, "s");
608COMMANDF(getnotexture, "", () { result(mapconfigdata.notexturename); });

Callers

nothing calls this directly

Calls 7

checktexturefilenameFunction · 0.85
filtertextFunction · 0.85
textureloadFunction · 0.85
flagmapconfigerrorFunction · 0.85
scripterrFunction · 0.85
flagmapconfigchangeFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected