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

Function IsFileUsed

editor/OrphanRemoveDlg.cpp:358–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356int num_orphan_ignore = sizeof(orphan_ignore) / sizeof(char *);
357
358bool IsFileUsed(char *filename) {
359 bool found = false;
360
361 for (int i = 0; i < num_orphan_ignore; i++) {
362 if (!stricmp(filename, orphan_ignore[i])) {
363 found = true;
364 goto done;
365 }
366 }
367
368 if (!found)
369 found = IsFileInGameFile(filename);
370 if (!found)
371 found = IsFileInWeaponPage(filename);
372 if (!found)
373 found = IsFileInSoundPage(filename);
374 if (!found)
375 found = IsFileInShipPage(filename);
376 if (!found)
377 found = IsFileInDoorPage(filename);
378 if (!found)
379 found = IsFileInTexturePage(filename);
380 if (!found)
381 found = IsFileInGenericPage(filename);
382
383done:
384 Descent->defer();
385
386 return found;
387}
388
389int filelen(char *filename, char *dir) {
390 char path[_MAX_PATH];

Callers 1

OnSelchangeDirectoryMethod · 0.85

Calls 8

IsFileInGameFileFunction · 0.85
IsFileInWeaponPageFunction · 0.85
IsFileInSoundPageFunction · 0.85
IsFileInShipPageFunction · 0.85
IsFileInDoorPageFunction · 0.85
IsFileInTexturePageFunction · 0.85
IsFileInGenericPageFunction · 0.85
deferMethod · 0.45

Tested by

no test coverage detected