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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user