MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Next

Method Next

module/module.cpp:558–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558bool CModFindFiles::Next(char *namebuf) {
559 ASSERT(namebuf);
560 if (globindex == -1)
561 return false;
562 globindex++;
563 if (globindex >= ffres.gl_pathc)
564 return false;
565
566 char ext[256];
567 dd_SplitPath(ffres.gl_pathv[globindex], NULL, namebuf, ext);
568 strcat(namebuf, ext);
569 return true;
570}
571
572void CModFindFiles::Close(void) {
573 if (globindex == -1)

Callers 1

Calls 1

dd_SplitPathFunction · 0.85

Tested by

no test coverage detected