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

Function PltClearList

Descent3/pilot.cpp:1962–1974  ·  view source on GitHub ↗

////////////////////////////////////////////////////// clears the file list (MUST CALL TO FREE MEMORY!!!!!!!!!)

Source from the content-addressed store, hash-verified

1960///////////////////////////////////////////////////////////
1961// clears the file list (MUST CALL TO FREE MEMORY!!!!!!!!!)
1962void PltClearList(void) {
1963 if (!pltgetname_list)
1964 return;
1965
1966 int index;
1967
1968 for (index = 0; index < pltgetname_count; index++) {
1969 if (pltgetname_list[index]) {
1970 mem_free(pltgetname_list[index]);
1971 pltgetname_list[index] = NULL;
1972 }
1973 }
1974}
1975
1976////////////////////////////////////////////////////////////
1977// given a name, it will create a valid filename

Callers 4

OnInitDialogMethod · 0.85
PilotSelectFunction · 0.85
PilotCopyDefaultControlsFunction · 0.85
PltGetPilotsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected