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

Function readmap

source/src/worldio.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54uchar *readmap(const char *name, int *size, int *revision)
55{
56 setnames(name);
57 uchar *data = (uchar *)loadfile(cgzname, size);
58 if(!data) { conoutf("\f3could not read map %s", cgzname); return NULL; }
59 header *h = peekmapheader(data, *size);
60 if(revision) *revision = h ? h->maprevision : 0;
61 return data;
62}
63
64void writecfggz(const char *name, int size, int sizegz, uchar *data)
65{

Callers 1

sendmapFunction · 0.85

Calls 4

setnamesFunction · 0.85
loadfileFunction · 0.85
peekmapheaderFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected