mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-10 17:50:28 -04:00
UI: Add front-end API functions to get/modify service
This commit adds functions to get, set and save the service and its settings, and is plugged straight into the existing internal functions serving this purpose (Jim: Fixed commit message and missing newline at end of file) Closes jp9000/obs-studio#895
This commit is contained in:
@@ -354,6 +354,21 @@ struct OBSStudioAPI : obs_frontend_callbacks {
|
||||
App()->PopUITranslation();
|
||||
}
|
||||
|
||||
void obs_frontend_set_streaming_service(obs_service_t *service) override
|
||||
{
|
||||
main->SetService(service);
|
||||
}
|
||||
|
||||
obs_service_t *obs_frontend_get_streaming_service(void) override
|
||||
{
|
||||
return main->GetService();
|
||||
}
|
||||
|
||||
void obs_frontend_save_streaming_service(void) override
|
||||
{
|
||||
main->SaveService();
|
||||
}
|
||||
|
||||
void on_load(obs_data_t *settings) override
|
||||
{
|
||||
for (auto cb : saveCallbacks)
|
||||
|
||||
Reference in New Issue
Block a user