MCPcopy Create free account
hub / github.com/ThirteenAG/WidescreenFixesPack / LoadLine

Method LoadLine

includes/GTA/CFileMgr.h:28–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 return fseek(stream, pos, from) != 0;
27 };
28 static inline const char* LoadLine(FILE* hFile)
29 {
30 static char cLineBuffer[512];
31
32 if (!CFileMgr::ReadLine(hFile, cLineBuffer, sizeof(cLineBuffer)))
33 return nullptr;
34
35 for (int i = 0; cLineBuffer[i]; ++i)
36 {
37 if (cLineBuffer[i] == '\n')
38 cLineBuffer[i] = '\0';
39 else if (cLineBuffer[i] < ' ' || cLineBuffer[i] == ',')
40 cLineBuffer[i] = ' ';
41 }
42
43 const char* p = cLineBuffer;
44 while (*p <= ' ')
45 {
46 if (!*p++)
47 break;
48 }
49 return p;
50 };
51};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected