MCPcopy Create free account
hub / github.com/assaultcube/AC / openfile

Function openfile

source/src/stream.cpp:1056–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056stream *openfile(const char *filename, const char *mode)
1057{
1058 const char *found = findfile(filename, mode);
1059#ifndef STANDALONE
1060 if(!strncmp(found, "zip://", 6)) return openzipfile(found + 6, mode);
1061#endif
1062 return openrawfile(found, mode);
1063}
1064
1065int getfilesize(const char *filename)
1066{

Callers 15

openMethod · 0.85
encodeMethod · 0.85
loadMethod · 0.85
readmapsthreadFunction · 0.85
readserverconfigsthreadFunction · 0.85
getfilesizeFunction · 0.85
opengzfileFunction · 0.85
loadfileFunction · 0.85
receivefileFunction · 0.85
writemapmodelattributesFunction · 0.85
entropy_saveFunction · 0.85

Calls 3

findfileFunction · 0.85
openzipfileFunction · 0.85
openrawfileFunction · 0.85

Tested by

no test coverage detected