MCPcopy Index your code
hub / github.com/assaultcube/AC / fixpackagedir

Function fixpackagedir

source/src/stream.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139size_t fixpackagedir(char *dir)
140{
141 path(dir);
142 size_t len = strlen(dir);
143 if(len > 0 && dir[len-1] != PATHDIV)
144 {
145 dir[len] = PATHDIV;
146 dir[len+1] = '\0';
147 }
148 return len;
149}
150
151#ifdef WIN32
152char *getregszvalue(HKEY root, const char *keystr, const char *query)

Callers 3

sethomedirFunction · 0.85
addpackagedirFunction · 0.85
mountzipFunction · 0.85

Calls 1

pathFunction · 0.85

Tested by

no test coverage detected