mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Use gifs folder for GIF recording
WebM uses movies folder. movie_mode screenshot and movie_mode apng use slideshows folder. ;)
This commit is contained in:
parent
4591b81cd9
commit
9f2941df63
1 changed files with 16 additions and 2 deletions
|
|
@ -1319,13 +1319,27 @@ static inline moviemode_t M_StartMovieAVRecorder(const char *pathname)
|
||||||
void M_StartMovie(moviemode_t mode)
|
void M_StartMovie(moviemode_t mode)
|
||||||
{
|
{
|
||||||
#if NUMSCREENS > 2
|
#if NUMSCREENS > 2
|
||||||
|
const char *folder;
|
||||||
char pathname[MAX_WADPATH];
|
char pathname[MAX_WADPATH];
|
||||||
|
|
||||||
if (moviemode)
|
if (moviemode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
strcpy(pathname, srb2home);
|
switch (mode)
|
||||||
strcat(pathname, PATHSEP "media" PATHSEP "movies" PATHSEP);
|
{
|
||||||
|
case MM_GIF:
|
||||||
|
folder = "gifs";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MM_AVRECORDER:
|
||||||
|
folder = "movies";
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
folder = "slideshows";
|
||||||
|
}
|
||||||
|
|
||||||
|
sprintf(pathname, "%s" PATHSEP "media" PATHSEP "%s" PATHSEP, srb2home, folder);
|
||||||
M_MkdirEach(pathname, M_PathParts(pathname) - 2, 0755);
|
M_MkdirEach(pathname, M_PathParts(pathname) - 2, 0755);
|
||||||
|
|
||||||
if (rendermode == render_none)
|
if (rendermode == render_none)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue