Searches thru all gamefiles for a specific name, returns -1 if not found or index of gamefile with name
| 107 | // Searches thru all gamefiles for a specific name, returns -1 if not found |
| 108 | // or index of gamefile with name |
| 109 | int 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 | } |
no outgoing calls
no test coverage detected