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

Function backup

source/src/stream.cpp:490–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

488}
489
490void backup(char *name, char *backupname)
491{
492 string backupfile;
493 copystring(backupfile, findfile(backupname, "wb"));
494 remove(backupfile);
495 rename(findfile(name, "wb"), backupfile);
496}
497
498#ifndef STANDALONE
499static Sint64 rwopsseek(SDL_RWops *rw, Sint64 offset, int whence)

Callers 8

readserverconfigsthreadFunction · 0.85
movecertfileMethod · 0.85
writemapFunction · 0.85
embedconfigfileFunction · 0.85
extractconfigfileFunction · 0.85
save_worldFunction · 0.85
save_world9Function · 0.85
loopvFunction · 0.85

Calls 2

copystringFunction · 0.85
findfileFunction · 0.85

Tested by

no test coverage detected