1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Added option for saving generated maps on client side (#307)

* new configuration option 'general.saveRandomMaps'
* maps being saved to 'userCachePath/RandomMaps'
* no deletion of old random maps
* map filename generated based on template name and random seed
This commit is contained in:
Alexander Shishkin
2017-06-04 20:33:28 +03:00
committed by GitHub
parent d84f61fc96
commit 7e1b0d71c5
7 changed files with 70 additions and 12 deletions

View File

@@ -69,6 +69,7 @@ public:
*/
static std::unique_ptr<CMapHeader> loadMapHeader(const ui8 * buffer, int size, const std::string & name);
static void saveMap(const std::unique_ptr<CMap> & map, boost::filesystem::path fullPath);
private:
/**
* Gets a map input stream object specified by a map name.