UI: Split global config into app and user config
This introduces a split of the current single ConfigFile instance for all configuration into two separate instances. The app config instance contains system-wide settings that mainly concern the working of the app itself, whereas the user config instance contains settings actually exposed to the user for the configuration.
This commit is contained in:
parent
26d275223a
commit
2635cf3a2a
35 changed files with 1135 additions and 912 deletions
|
|
@ -1246,8 +1246,9 @@ bool SimpleOutput::IsVodTrackEnabled(obs_service_t *service)
|
|||
config_get_bool(main->Config(), "SimpleOutput", "UseAdvanced");
|
||||
bool enable = config_get_bool(main->Config(), "SimpleOutput",
|
||||
"VodTrackEnabled");
|
||||
bool enableForCustomServer = config_get_bool(
|
||||
GetGlobalConfig(), "General", "EnableCustomServerVodTrack");
|
||||
bool enableForCustomServer =
|
||||
config_get_bool(App()->GetUserConfig(), "General",
|
||||
"EnableCustomServerVodTrack");
|
||||
|
||||
OBSDataAutoRelease settings = obs_service_get_settings(service);
|
||||
const char *name = obs_data_get_string(settings, "service");
|
||||
|
|
@ -2252,8 +2253,9 @@ AdvancedOutput::VodTrackMixerIdx(obs_service_t *service)
|
|||
config_get_bool(main->Config(), "AdvOut", "VodTrackEnabled");
|
||||
int vodTrackIndex =
|
||||
config_get_int(main->Config(), "AdvOut", "VodTrackIndex");
|
||||
bool enableForCustomServer = config_get_bool(
|
||||
GetGlobalConfig(), "General", "EnableCustomServerVodTrack");
|
||||
bool enableForCustomServer =
|
||||
config_get_bool(App()->GetUserConfig(), "General",
|
||||
"EnableCustomServerVodTrack");
|
||||
|
||||
const char *id = obs_service_get_id(service);
|
||||
if (strcmp(id, "rtmp_custom") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue