mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
Remove 'locale' parameter from all callbacks
The locale parameter was a mistake, because it puts extra needless burden upon the module developer to have to handle this variable for each and every single callback function. The parameter is being removed in favor of a single centralized module callback function that specifically updates locale information for a module only when needed.
This commit is contained in:
@@ -212,8 +212,7 @@ void OBSBasicSettings::LoadServiceTypes()
|
||||
size_t idx = 0;
|
||||
|
||||
while (obs_enum_service_types(idx++, &type)) {
|
||||
const char *name = obs_service_getdisplayname(type,
|
||||
App()->GetLocale());
|
||||
const char *name = obs_service_getdisplayname(type);
|
||||
QString qName = QT_UTF8(name);
|
||||
QString qType = QT_UTF8(type);
|
||||
|
||||
@@ -229,8 +228,7 @@ void OBSBasicSettings::LoadServiceInfo()
|
||||
QLayout *layout = ui->streamContainer->layout();
|
||||
obs_service_t service = main->GetService();
|
||||
obs_data_t settings = obs_service_get_settings(service);
|
||||
obs_properties_t properties = obs_service_properties(service,
|
||||
App()->GetLocale());
|
||||
obs_properties_t properties = obs_service_properties(service);
|
||||
|
||||
delete streamProperties;
|
||||
streamProperties = new OBSPropertiesView(
|
||||
@@ -480,9 +478,9 @@ void OBSBasicSettings::LoadAudioDevices()
|
||||
const char *output_id = App()->OutputAudioSource();
|
||||
|
||||
obs_properties_t input_props = obs_get_source_properties(
|
||||
OBS_SOURCE_TYPE_INPUT, input_id, App()->GetLocale());
|
||||
OBS_SOURCE_TYPE_INPUT, input_id);
|
||||
obs_properties_t output_props = obs_get_source_properties(
|
||||
OBS_SOURCE_TYPE_INPUT, output_id, App()->GetLocale());
|
||||
OBS_SOURCE_TYPE_INPUT, output_id);
|
||||
|
||||
if (input_props) {
|
||||
obs_property_t inputs = obs_properties_get(input_props,
|
||||
|
||||
Reference in New Issue
Block a user