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:
James R 2023-03-13 20:49:16 -07:00
parent 4591b81cd9
commit 9f2941df63

View file

@ -1319,13 +1319,27 @@ static inline moviemode_t M_StartMovieAVRecorder(const char *pathname)
void M_StartMovie(moviemode_t mode)
{
#if NUMSCREENS > 2
const char *folder;
char pathname[MAX_WADPATH];
if (moviemode)
return;
strcpy(pathname, srb2home);
strcat(pathname, PATHSEP "media" PATHSEP "movies" PATHSEP);
switch (mode)
{
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);
if (rendermode == render_none)