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

Function PC_StartParseSession

code/ui/ui_shared.cpp:5859–5877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5857*/
5858
5859int PC_StartParseSession(const char *fileName,char **buffer)
5860{
5861 int len;
5862
5863 // Try to open file and read it in.
5864 len = ui.FS_ReadFile( fileName,(void **) buffer );
5865
5866 // Not there?
5867 if ( len>0 )
5868 {
5869 COM_BeginParseSession();
5870
5871 Q_strncpyz(parseData[parseDataCount].fileName, fileName, sizeof (parseData[0].fileName));
5872 parseData[parseDataCount].bufferStart = *buffer;
5873 parseData[parseDataCount].bufferCurrent = *buffer;
5874 }
5875
5876 return len;
5877}
5878
5879/*
5880===============

Callers 2

CL_CgameSystemCallsFunction · 0.85
UI_ParseMenuFunction · 0.85

Calls 2

Q_strncpyzFunction · 0.85
COM_BeginParseSessionFunction · 0.50

Tested by

no test coverage detected