mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 05:41:02 +00:00
Ensure demo files will save to srb2home, where SRB2 already looks for them.
This commit is contained in:
parent
e62c0794dc
commit
2798bd5c16
1 changed files with 4 additions and 1 deletions
|
@ -5579,7 +5579,10 @@ boolean G_CheckDemoStatus(void)
|
||||||
WRITEUINT8(demo_p, DEMOMARKER); // add the demo end marker
|
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.
|
md5_buffer((char *)p+16, demo_p - (p+16), p); // make a checksum of everything after the checksum in the file.
|
||||||
#endif
|
#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);
|
free(demobuffer);
|
||||||
demorecording = false;
|
demorecording = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue