UI: Add obs_frontend_get_current_record_output_path()

Returns the current path of the record output.
This commit is contained in:
tt2468
2021-11-13 00:51:22 -08:00
committed by Jim
parent 293b7951ed
commit 22fa8f8bb0
4 changed files with 18 additions and 0 deletions

View File

@@ -618,6 +618,13 @@ struct OBSStudioAPI : obs_frontend_callbacks {
Q_ARG(OBSSource, OBSSource(source)));
}
char *obs_frontend_get_current_record_output_path(void) override
{
const char *recordOutputPath = main->GetCurrentOutputPath();
return bstrdup(recordOutputPath);
}
void on_load(obs_data_t *settings) override
{
for (size_t i = saveCallbacks.size(); i > 0; i--) {