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

Function FreeGamefile

Descent3/gamefile.cpp:57–63  ·  view source on GitHub ↗

Frees gamefile index n and all associated images

Source from the content-addressed store, hash-verified

55
56// Frees gamefile index n and all associated images
57void FreeGamefile(int n) {
58 ASSERT(Gamefiles[n].used > 0);
59
60 Gamefiles[n].used = 0;
61 Gamefiles[n].name[0] = 0;
62 Num_gamefiles--;
63}
64
65// Gets next gamefile from n that has actually been alloced
66int GetNextGamefile(int n) {

Callers 2

DeleteGamefileFunction · 0.85
OnDeleteFileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected