diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-04-23 22:19:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-04-23 22:20:47 +0200 |
commit | 329ccdc970d31e2993226bac6bd784404357819d (patch) | |
tree | e7f3105f2305956d2cb82eefd5ca9e9324d772b9 /src/Overlay.cpp | |
parent | b64b90d0b165a6364206fa6ee7918905afd76fe5 (diff) |
Save replay/streaming recording to correct location when saving to game folder. Add controller hotkey to save 1 min/10 min replayHEAD1.5.0master
Diffstat (limited to 'src/Overlay.cpp')
-rw-r--r-- | src/Overlay.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp index c91ac47..76fe831 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -385,6 +385,16 @@ namespace gsr { overlay->save_replay(); }); + global_hotkeys_js->bind_action("save_1_min_replay", [overlay](const std::string &id) { + fprintf(stderr, "pressed %s\n", id.c_str()); + overlay->save_replay_1_min(); + }); + + global_hotkeys_js->bind_action("save_10_min_replay", [overlay](const std::string &id) { + fprintf(stderr, "pressed %s\n", id.c_str()); + overlay->save_replay_10_min(); + }); + global_hotkeys_js->bind_action("take_screenshot", [overlay](const std::string &id) { fprintf(stderr, "pressed %s\n", id.c_str()); overlay->take_screenshot(); @@ -1707,7 +1717,7 @@ namespace gsr { const std::string video_filepath = filepath_get_filename(line); if(starts_with(video_filepath, "Video_")) { - on_stop_recording(0, video_filepath); + on_stop_recording(0, line); return; } |