aboutsummaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-19 20:36:21 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-19 20:36:21 +0200
commit22e153e654ce912f2b7e8d4746b60a624208a11b (patch)
tree2bd33474517698fe2a30b30e9249d7b5eae1f6d7 /src/config.hpp
parentdb71e7cad335fe5b339130f7eefc44e396ceb452 (diff)
Show warning when selecting hevc/av1 on amd because of amd driver/ffmpeg bug
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 4e01b6b..4cd0524 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -40,6 +40,8 @@ struct MainConfig {
bool hide_window_when_recording = false;
bool software_encoding_warning_shown = false;
bool steam_deck_warning_shown = false;
+ bool hevc_amd_bug_warning_shown = false;
+ bool av1_amd_bug_warning_shown = false;
bool restore_portal_session = true;
};
@@ -319,6 +321,8 @@ static std::map<std::string, ConfigValue> get_config_options(Config &config) {
{"main.hide_window_when_recording", {CONFIG_TYPE_BOOL, &config.main_config.hide_window_when_recording}},
{"main.software_encoding_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.software_encoding_warning_shown}},
{"main.steam_deck_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.steam_deck_warning_shown}},
+ {"main.hevc_amd_bug_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.hevc_amd_bug_warning_shown}},
+ {"main.av1_amd_bug_warning_shown", {CONFIG_TYPE_BOOL, &config.main_config.av1_amd_bug_warning_shown}},
{"main.restore_portal_session", {CONFIG_TYPE_BOOL, &config.main_config.restore_portal_session}},
{"streaming.service", {CONFIG_TYPE_STRING, &config.streaming_config.streaming_service}},