| 3214 | source_t *sourceFiles[MAX_SOURCEFILES]; |
| 3215 | |
| 3216 | int PC_LoadSourceHandle(const char *filename) |
| 3217 | { |
| 3218 | source_t *source; |
| 3219 | int i; |
| 3220 | |
| 3221 | for (i = 1; i < MAX_SOURCEFILES; i++) |
| 3222 | { |
| 3223 | if (!sourceFiles[i]) |
| 3224 | break; |
| 3225 | } //end for |
| 3226 | if (i >= MAX_SOURCEFILES) |
| 3227 | return 0; |
| 3228 | PS_SetBaseFolder(""); |
| 3229 | source = LoadSourceFile(filename); |
| 3230 | if (!source) |
| 3231 | return 0; |
| 3232 | sourceFiles[i] = source; |
| 3233 | return i; |
| 3234 | } //end of the function PC_LoadSourceHandle |
| 3235 | //============================================================================ |
| 3236 | // |
| 3237 | // Parameter: - |
no test coverage detected