diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-23 00:59:17 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-23 00:59:17 +0200 |
commit | 736f2f30956369754f6c8eeb49e7972720777cc9 (patch) | |
tree | 1e0201740a6652cd02f0821ad599563e15448718 /src/Config.cpp | |
parent | 719236d4f41735a96e5a0707c7d964335907ffee (diff) |
Allow recording while using replay/streaming and option to save 1 min or 10 min
Diffstat (limited to 'src/Config.cpp')
-rw-r--r-- | src/Config.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Config.cpp b/src/Config.cpp index 3832c83..e920bf0 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -84,8 +84,8 @@ namespace gsr { modifier_str = mgl::Keyboard::key_to_string(modifier_key); if(!modifier_side) { - string_remove_all(modifier_str, "Left"); - string_remove_all(modifier_str, "Right"); + string_remove_all(modifier_str, "Left "); + string_remove_all(modifier_str, "Right "); } result += modifier_str; } @@ -148,6 +148,8 @@ namespace gsr { replay_config.start_stop_hotkey = {mgl::Keyboard::F10, HOTKEY_MOD_LALT | HOTKEY_MOD_LSHIFT}; replay_config.save_hotkey = {mgl::Keyboard::F10, HOTKEY_MOD_LALT}; + replay_config.save_1_min_hotkey = {mgl::Keyboard::F11, HOTKEY_MOD_LALT}; + replay_config.save_10_min_hotkey = {mgl::Keyboard::F12, HOTKEY_MOD_LALT}; screenshot_config.take_screenshot_hotkey = {mgl::Keyboard::Printscreen, 0}; screenshot_config.take_screenshot_region_hotkey = {mgl::Keyboard::Printscreen, HOTKEY_MOD_LCTRL}; @@ -264,6 +266,8 @@ namespace gsr { {"replay.time", &config.replay_config.replay_time}, {"replay.start_stop_hotkey", &config.replay_config.start_stop_hotkey}, {"replay.save_hotkey", &config.replay_config.save_hotkey}, + {"replay.save_1_min_hotkey", &config.replay_config.save_1_min_hotkey}, + {"replay.save_10_min_hotkey", &config.replay_config.save_10_min_hotkey}, {"screenshot.record_area_option", &config.screenshot_config.record_area_option}, {"screenshot.image_width", &config.screenshot_config.image_width}, |