aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-04 20:37:26 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-04 20:37:26 +0100
commit26a9e750dc6f1313413524cd97e60a94e25a56ec (patch)
treece651746328b2a2137d367d2affb82865cf0760f /include
parent89512313b263c9b5250b8d51e5e6eb04d0ac43e7 (diff)
Add option to save replay/recording to a folder with the name of the game
Diffstat (limited to 'include')
-rw-r--r--include/Config.hpp2
-rw-r--r--include/gui/SettingsPage.hpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/Config.hpp b/include/Config.hpp
index dc508cc..575f303 100644
--- a/include/Config.hpp
+++ b/include/Config.hpp
@@ -67,6 +67,7 @@ namespace gsr {
struct RecordConfig {
RecordOptions record_options;
+ bool save_video_in_game_folder = false;
bool show_recording_started_notifications = true;
bool show_video_saved_notifications = true;
std::string save_directory;
@@ -78,6 +79,7 @@ namespace gsr {
struct ReplayConfig {
RecordOptions record_options;
bool start_replay_automatically = false;
+ bool save_video_in_game_folder = false;
bool show_replay_started_notifications = true;
bool show_replay_stopped_notifications = true;
bool show_replay_saved_notifications = true;
diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp
index 4c5388d..a0bc518 100644
--- a/include/gui/SettingsPage.hpp
+++ b/include/gui/SettingsPage.hpp
@@ -82,6 +82,8 @@ namespace gsr {
std::unique_ptr<Entry> create_replay_time_entry();
std::unique_ptr<List> create_replay_time();
std::unique_ptr<CheckBox> create_start_replay_on_startup();
+ std::unique_ptr<CheckBox> create_save_replay_in_game_folder();
+ std::unique_ptr<CheckBox> create_save_recording_in_game_folder();
void add_replay_widgets();
void add_record_widgets();
@@ -144,9 +146,11 @@ namespace gsr {
List *stream_url_list_ptr = nullptr;
List *container_list_ptr = nullptr;
CheckBox *start_replay_automatically_ptr = nullptr;
+ CheckBox *save_replay_in_game_folder_ptr = nullptr;
CheckBox *show_replay_started_notification_checkbox_ptr = nullptr;
CheckBox *show_replay_stopped_notification_checkbox_ptr = nullptr;
CheckBox *show_replay_saved_notification_checkbox_ptr = nullptr;
+ CheckBox *save_recording_in_game_folder_ptr = nullptr;
CheckBox *show_recording_started_notification_checkbox_ptr = nullptr;
CheckBox *show_video_saved_notification_checkbox_ptr = nullptr;
CheckBox *show_streaming_started_notification_checkbox_ptr = nullptr;