From 9b6033e2b97f6f572cb69a393d4d1d1ea41b5d72 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2024 06:19:18 +0200 Subject: Have separate record options for replay, record and streaming, reset existing config files --- include/Config.hpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/Config.hpp b/include/Config.hpp index d7f0923..154bdb0 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -10,7 +10,7 @@ namespace gsr { uint32_t modifiers = 0; }; - struct MainConfig { + struct RecordOptions { std::string record_area_option; int32_t record_area_width = 0; int32_t record_area_height = 0; @@ -29,10 +29,14 @@ namespace gsr { bool show_recording_saved_notifications = true; bool record_cursor = true; bool hide_window_when_recording = false; - bool software_encoding_warning_shown = false; bool restore_portal_session = true; }; + struct MainConfig { + int32_t config_file_version = 0; + bool software_encoding_warning_shown = false; + }; + struct YoutubeStreamConfig { std::string stream_key; }; @@ -47,6 +51,7 @@ namespace gsr { }; struct StreamingConfig { + RecordOptions record_options; std::string streaming_service; YoutubeStreamConfig youtube; TwitchStreamConfig twitch; @@ -55,6 +60,7 @@ namespace gsr { }; struct RecordConfig { + RecordOptions record_options; std::string save_directory; std::string container; ConfigHotkey start_stop_recording_hotkey; @@ -62,9 +68,10 @@ namespace gsr { }; struct ReplayConfig { + RecordOptions record_options; std::string save_directory; std::string container; - int32_t replay_time = 30; + int32_t replay_time = 60; ConfigHotkey start_stop_recording_hotkey; ConfigHotkey save_recording_hotkey; }; -- cgit v1.2.3