MCPcopy Create free account
hub / github.com/JACoders/OpenJK / PC_LoadSourceHandle

Function PC_LoadSourceHandle

codemp/botlib/l_precomp.cpp:3216–3234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3214source_t *sourceFiles[MAX_SOURCEFILES];
3215
3216int 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: -

Callers 1

PC_LoadGlobalDefinesFunction · 0.85

Calls 2

PS_SetBaseFolderFunction · 0.85
LoadSourceFileFunction · 0.85

Tested by

no test coverage detected