From 5d54d53a4b589066fcf9dcdb8136d18d8da4fcff Mon Sep 17 00:00:00 2001 From: Eidolon Date: Wed, 1 Mar 2023 19:02:20 -0600 Subject: [PATCH] Hide movie_showfps option when webm is disabled --- src/menus/options-data-screenshots.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/menus/options-data-screenshots.c b/src/menus/options-data-screenshots.c index 809eb5e1b..0cb1d0762 100644 --- a/src/menus/options-data-screenshots.c +++ b/src/menus/options-data-screenshots.c @@ -3,7 +3,9 @@ #include "../k_menu.h" #include "../m_misc.h" // screenshot cvars +#ifdef SRB2_CONFIG_ENABLE_WEBM_MOVIES #include "../m_avrecorder.h" +#endif menuitem_t OPTIONS_DataScreenshot[] = { @@ -26,15 +28,19 @@ menuitem_t OPTIONS_DataScreenshot[] = {IT_STRING | IT_CVAR, "Recording Format", "What file format will movies will be recorded in?", NULL, {.cvar = &cv_moviemode}, 0, 0}, +#ifdef SRB2_CONFIG_ENABLE_WEBM_MOVIES {IT_STRING | IT_CVAR, "Real-Time Data", "If enabled, shows fps, duration and filesize of recording in real-time.", NULL, {.cvar = &cv_movie_showfps}, 0, 0}, +#else + {IT_SPACE | IT_NOTHING, NULL, NULL, + NULL, {NULL}, 0, 0}, +#endif {IT_STRING | IT_CVAR, "Storage Location", "Sets where to store movies.", NULL, {.cvar = &cv_movie_option}, 0, 0}, {IT_STRING | IT_CVAR | IT_CV_STRING, "Custom Folder", "Specify which folder to save videos in.", NULL, {.cvar = &cv_movie_folder}, 24, 0}, - }; menu_t OPTIONS_DataScreenshotDef = {