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

Function ddio_FindFileStart

ddio/winfile.cpp:290–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288static WIN32_FIND_DATA FindFileData;
289
290bool 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
304bool ddio_FindNextFile(char *namebuf) {
305

Callers 15

StartScriptFileListFunction · 0.50
ResaveAllBitmapsFunction · 0.50
OnSelchangeDirectoryMethod · 0.50
parse_ctl_fileMethod · 0.50
parse_ctl_fileMethod · 0.50
PltGetPilotsFunction · 0.50
FindAllFilesFunction · 0.50
FindAllFilesSizeFunction · 0.50
GetCustomSoundFilesFunction · 0.50
MainMultiplayerMenuFunction · 0.50

Calls 1

ddio_FindFileCloseFunction · 0.70

Tested by

no test coverage detected