| 288 | static WIN32_FIND_DATA FindFileData; |
| 289 | |
| 290 | bool ddio_FindFileStart(const char *wildcard, char *namebuf) { |
| 291 | if (hFindFile != INVALID_HANDLE_VALUE) |
| 292 | ddio_FindFileClose(); |
| 293 | |
| 294 | hFindFile = FindFirstFile(wildcard, &FindFileData); |
| 295 | if (hFindFile != INVALID_HANDLE_VALUE) { |
| 296 | strcpy(namebuf, FindFileData.cFileName); |
| 297 | return true; |
| 298 | } else { |
| 299 | namebuf[0] = 0; |
| 300 | return false; |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | bool ddio_FindNextFile(char *namebuf) { |
| 305 |
no test coverage detected