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

Function opengzfile

source/src/stream.cpp:1082–1089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082stream *opengzfile(const char *filename, const char *mode, stream *file, int level)
1083{
1084 stream *source = file ? file : openfile(filename, mode);
1085 if(!source) return NULL;
1086 gzstream *gz = new gzstream;
1087 if(!gz->open(source, mode, !file, level)) { if(!file) delete source; delete gz; return NULL; }
1088 return gz;
1089}
1090
1091char *loadfile(const char *fn, int *size, const char *mode)
1092{

Callers 10

loadMethod · 0.85
initdemoslotFunction · 0.85
setupdemoplaybackFunction · 0.85
save_worldFunction · 0.85
save_world9Function · 0.85
load_worldFunction · 0.85
getfiledescFunction · 0.85
genshadowsMethod · 0.85
loadshadowsMethod · 0.85
main.cppFile · 0.85

Calls 2

openfileFunction · 0.85
openMethod · 0.45

Tested by

no test coverage detected