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:
cg2121
2022-10-30 19:53:11 -07:00
committed by Jim
parent 3d985f7c60
commit 8dda8d3500
8 changed files with 69 additions and 3 deletions
+2
View File
@@ -54,6 +54,8 @@ ScreenshotObj::~ScreenshotObj()
QTStr("Basic.StatusBar.ScreenshotSavedTo")
.arg(QT_UTF8(path.c_str())));
main->lastScreenshot = path;
if (main->api)
main->api->on_event(
OBS_FRONTEND_EVENT_SCREENSHOT_TAKEN);