searches through GamePath index and returns index of path matching name returns -1 if not found
| 114 | // searches through GamePath index and returns index of path matching name |
| 115 | // returns -1 if not found |
| 116 | int 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 | } |
no outgoing calls
no test coverage detected