mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Better replay recording handling. Add gsr-ui-cli command to save shorter replay
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -78,6 +78,16 @@ static void rpc_add_commands(gsr::Rpc *rpc, gsr::Overlay *overlay) {
|
||||
overlay->save_replay();
|
||||
});
|
||||
|
||||
rpc->add_handler("replay-save-1-min", [overlay](const std::string &name) {
|
||||
fprintf(stderr, "rpc command executed: %s\n", name.c_str());
|
||||
overlay->save_replay_1_min();
|
||||
});
|
||||
|
||||
rpc->add_handler("replay-save-10-min", [overlay](const std::string &name) {
|
||||
fprintf(stderr, "rpc command executed: %s\n", name.c_str());
|
||||
overlay->save_replay_10_min();
|
||||
});
|
||||
|
||||
rpc->add_handler("take-screenshot", [overlay](const std::string &name) {
|
||||
fprintf(stderr, "rpc command executed: %s\n", name.c_str());
|
||||
overlay->take_screenshot();
|
||||
|
||||
Reference in New Issue
Block a user