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

Method Load

code/qcommon/strip.cpp:557–582  ·  view source on GitHub ↗

* Load - Load the given string packet file * * inputs: * buffer to load line in * size of final text string area * argument list of data needed by the string package * * return: * done or not * ************************************************************************************************/

Source from the content-addressed store, hash-verified

555 *
556 ************************************************************************************************/
557bool cStrings::Load(char *&Data, int &Size )
558{
559 int token;
560 char *data;
561
562 Clear();
563
564 GetLine(Data, Size, token, data);
565 if (token != TK_LEFT_BRACE)
566 {
567 return false;
568 }
569
570 GetLine(Data, Size, token, data);
571 while (UnderstandToken(token, data) )
572 {
573 GetLine(Data, Size, token, data);
574 }
575
576 if (token != TK_RIGHT_BRACE)
577 {
578 return false;
579 }
580
581 return true;
582}
583
584
585

Callers 3

ReadGEntitiesFunction · 0.45
UnderstandTokenMethod · 0.45
JK2SP_RegisterFunction · 0.45

Calls 1

GetLineFunction · 0.85

Tested by

no test coverage detected