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

Method AddAllGamefilePages

editor/TableFileFilterMng.cpp:2051–2061  ·  view source on GitHub ↗

Adds all appropriate gamefiles to the list

Source from the content-addressed store, hash-verified

2049
2050// Adds all appropriate gamefiles to the list
2051bool PageDataList::AddAllGamefilePages(void) {
2052 int i;
2053 char ext[12];
2054
2055 for (i = 0; i < MAX_GAMEFILES; i++) {
2056 if (Gamefiles[i].used != 0 && GetFileExt(Gamefiles[i].name, ext) && stricmp(ext, ".d3l") != 0) {
2057 AddToList(Gamefiles[i].name, PAGETYPE_GAMEFILE, ADDED_FOR_LEVEL_FLAG);
2058 }
2059 }
2060 return TRUE;
2061}
2062
2063// Processes any waiting messages
2064#define MAX_MESSAGES 10 // max messages to process during a message deferral

Callers

nothing calls this directly

Calls 1

GetFileExtFunction · 0.85

Tested by

no test coverage detected