1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

(linux) Manage one directory per user for save games and config.

This commit is contained in:
Frank Zago
2009-10-10 05:47:59 +00:00
parent 668b203486
commit b02d4c1c2f
9 changed files with 23 additions and 16 deletions

View File

@@ -10,6 +10,7 @@
#include "../hch/CObjectHandler.h"
#include "../lib/VCMI_Lib.h"
#include "../lib/map.h"
#include "../lib/VCMIDirs.h"
#include "../hch/CSpellHandler.h"
#include "../hch/CSoundBase.h"
#include "../mapHandler.h"
@@ -541,7 +542,7 @@ void YourTurn::applyCl( CClient *cl )
void SaveGame::applyCl(CClient *cl)
{
CSaveFile save(DATA_DIR "/Games/" + fname + ".vcgm1");
CSaveFile save(GVCMIDirs.UserPath + "/Games/" + fname + ".vcgm1");
save << *cl;
}