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

Function updateigraphs

source/src/rendertext.cpp:497–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void updateigraphs() // read all filenames and parse new ones (also preloads the textures)
498{
499 vector<char *> files;
500 while(usedigraphs.length() <= (int)'\n') usedigraphs.add(NULL); // allocate hardcoded slots and skip slot 10 ('\n')
501 listfiles(IGRAPHPATH, "png", files);
502 loopvrev(files)
503 {
504 if(igraphsi.access(files[i])) delstring(files[i]);
505 else addigraph(files[i]);
506 }
507}
508COMMAND(updateigraphs, "");
509
510igraph *getusedigraph(int i)

Callers 1

main.cppFile · 0.85

Calls 3

listfilesFunction · 0.85
lengthMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected