Merge branch 'custom-savegames-home-path-fix' into 'master'

Fix save games for a custom mod not saving to custom home folder

See merge request !209
This commit is contained in:
Monster Iestyn 2017-09-20 14:56:39 -04:00
commit 533fdcae0a
1 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@
/// \brief Load dehacked file and change tables and text
#include "doomdef.h"
#include "d_main.h" // for srb2home
#include "g_game.h"
#include "sounds.h"
#include "info.h"
@ -3070,6 +3071,8 @@ static void readmaincfg(MYFILE *f)
strncpy(savegamename, timeattackfolder, sizeof (timeattackfolder));
strlcat(savegamename, "%u.ssg", sizeof(savegamename));
// can't use sprintf since there is %u in savegamename
strcatbf(savegamename, srb2home, PATHSEP);
gamedataadded = true;
}