| 1612 | char *xmapfilename(const char *nick, const char *prefix = "") { static defformatstring(fn)("%s/%s%s.xmap", xmapspath, prefix, nick); return path(fn); } |
| 1613 | |
| 1614 | void writexmap(xmap *xm, const char *prefix = "") |
| 1615 | { |
| 1616 | stream *f = openfile(xmapfilename(xm->nick, prefix), "w"); |
| 1617 | if(f) |
| 1618 | { |
| 1619 | xm->write(f); |
| 1620 | delete f; |
| 1621 | } |
| 1622 | } |
| 1623 | |
| 1624 | void writeallxmaps() // at game exit, write all xmaps to cubescript files in mapediting/xmaps |
| 1625 | { |
no test coverage detected