obs-frontend-api: Add functions to get last saved files
Adds functions to the frontend api to get the last recording, screenshot and replay buffer saved.
This commit is contained in:
parent
3d985f7c60
commit
8dda8d3500
8 changed files with 69 additions and 3 deletions
|
|
@ -7476,15 +7476,17 @@ void OBSBasic::ReplayBufferSaved()
|
|||
proc_handler_t *ph =
|
||||
obs_output_get_proc_handler(outputHandler->replayBuffer);
|
||||
proc_handler_call(ph, "get_last_replay", &cd);
|
||||
QString path = QT_UTF8(calldata_string(&cd, "path"));
|
||||
QString msg = QTStr("Basic.StatusBar.ReplayBufferSavedTo").arg(path);
|
||||
std::string path = calldata_string(&cd, "path");
|
||||
QString msg = QTStr("Basic.StatusBar.ReplayBufferSavedTo")
|
||||
.arg(QT_UTF8(path.c_str()));
|
||||
ShowStatusBarMessage(msg);
|
||||
lastReplay = path;
|
||||
calldata_free(&cd);
|
||||
|
||||
if (api)
|
||||
api->on_event(OBS_FRONTEND_EVENT_REPLAY_BUFFER_SAVED);
|
||||
|
||||
AutoRemux(path);
|
||||
AutoRemux(QT_UTF8(path.c_str()));
|
||||
}
|
||||
|
||||
void OBSBasic::ReplayBufferStop(int code)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue