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

Function FindGamePathName

Descent3/gamepath.cpp:116–124  ·  view source on GitHub ↗

searches through GamePath index and returns index of path matching name returns -1 if not found

Source from the content-addressed store, hash-verified

114// searches through GamePath index and returns index of path matching name
115// returns -1 if not found
116int FindGamePathName(const char *name) {
117 int i;
118
119 for (i = 0; i < MAX_GAME_PATHS; i++) {
120 if (GamePaths[i].used && !stricmp(GamePaths[i].name, name))
121 return i;
122 }
123 return -1;
124}

Callers 4

OnPathpadAddPathMethod · 0.85
osipf_AIGetPathIDFunction · 0.85
osipf_FindPathNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected