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

Function xmapbackup

source/src/worldio.cpp:1419–1425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1417}
1418
1419void xmapbackup(const char *nickprefix, const char *nick) // throw away existing backup and make a new one
1420{
1421 xmapdelete(bak);
1422 defformatstring(text)("%s%s", nickprefix, nick);
1423 bak = new xmap(text);
1424 if(unsavededits) conoutf("\f3stored backup of unsaved edits on map '%s'; to restore, type \"/xmap_restore\"", bak->name);
1425}
1426
1427const char *xmapdescstring(xmap *xm, bool shortform = false)
1428{

Callers 4

empty_worldFunction · 0.85
load_worldFunction · 0.85
worldio.cppFile · 0.85
writeallxmapsFunction · 0.85

Calls 2

xmapdeleteFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected