aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-06 06:19:18 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-06 06:19:18 +0200
commit9b6033e2b97f6f572cb69a393d4d1d1ea41b5d72 (patch)
tree6c245ea48e6982cb1ebca92b8195ede6cd97be40 /include
parent9f1fddc47ce10fbc65cdeaa70461063b9921434e (diff)
Have separate record options for replay, record and streaming, reset existing config files
Diffstat (limited to 'include')
-rw-r--r--include/Config.hpp13
1 files changed, 10 insertions, 3 deletions
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;
};