UI: Add obs-frontend-api functions to create/delete profiles

This commit is contained in:
SCG82
2021-04-14 08:26:54 -07:00
committed by Dillon Pentz
parent 502bc3bf0a
commit 88cc691afa
7 changed files with 163 additions and 28 deletions

View File

@@ -266,6 +266,24 @@ struct OBSStudioAPI : obs_frontend_callbacks {
}
}
void obs_frontend_create_profile(const char *name) override
{
QMetaObject::invokeMethod(main, "NewProfile",
Q_ARG(QString, name));
}
void obs_frontend_duplicate_profile(const char *name) override
{
QMetaObject::invokeMethod(main, "DuplicateProfile",
Q_ARG(QString, name));
}
void obs_frontend_delete_profile(const char *profile) override
{
QMetaObject::invokeMethod(main, "DeleteProfile",
Q_ARG(QString, profile));
}
void obs_frontend_streaming_start(void) override
{
QMetaObject::invokeMethod(main, "StartStreaming");