Ensure demo files will save to srb2home, where SRB2 already looks for them.

This commit is contained in:
ilag11111 2016-09-11 10:40:49 -07:00
parent e62c0794dc
commit 2798bd5c16

View file

@ -5579,7 +5579,10 @@ boolean G_CheckDemoStatus(void)
WRITEUINT8(demo_p, DEMOMARKER); // add the demo end marker
md5_buffer((char *)p+16, demo_p - (p+16), p); // make a checksum of everything after the checksum in the file.
#endif
saved = FIL_WriteFile(demoname, demobuffer, demo_p - demobuffer); // finally output the file.
char fulldemoname [128];
sprintf(fulldemoname, "%s"PATHSEP"%s", srb2home, demoname);
saved = FIL_WriteFile(fulldemoname, demobuffer, demo_p - demobuffer); // finally output the file.
free(demobuffer);
demorecording = false;