| 556 | } |
| 557 | |
| 558 | bool 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 | |
| 572 | void CModFindFiles::Close(void) { |
| 573 | if (globindex == -1) |
no test coverage detected