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

Function FindGamefileName

Descent3/gamefile.cpp:109–119  ·  view source on GitHub ↗

Searches thru all gamefiles for a specific name, returns -1 if not found or index of gamefile with name

Source from the content-addressed store, hash-verified

107// Searches thru all gamefiles for a specific name, returns -1 if not found
108// or index of gamefile with name
109int FindGamefileName(char *name) {
110 int i;
111
112 ASSERT(name != NULL);
113
114 for (i = 0; i < MAX_GAMEFILES; i++)
115 if (Gamefiles[i].used && !stricmp(name, Gamefiles[i].name))
116 return i;
117
118 return -1;
119}

Callers 12

mng_LoadNetGamefilePageFunction · 0.85
mng_RenamePageFunction · 0.85
AddNewGameFileFunction · 0.85
OnAddFileMethod · 0.85
OnEditScriptMethod · 0.85
OnLockMethod · 0.85
OnUnlockMethod · 0.85
UpdateDialogButtonsMethod · 0.85
OnASPLockMethod · 0.85
OnASPCheckInMethod · 0.85
OnASPUndoLockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected