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:
@@ -37,9 +37,9 @@ static uint32_t xcompcap_getheight(void* data)
|
||||
return cc->height();
|
||||
}
|
||||
|
||||
static obs_properties_t xcompcap_props(const char *locale)
|
||||
static obs_properties_t xcompcap_props(void)
|
||||
{
|
||||
return XCompcapMain::properties(locale);
|
||||
return XCompcapMain::properties();
|
||||
}
|
||||
|
||||
void xcompcap_defaults(obs_data_t settings)
|
||||
@@ -55,10 +55,9 @@ void xcompcap_update(void *data, obs_data_t settings)
|
||||
|
||||
OBS_DECLARE_MODULE()
|
||||
|
||||
static const char* xcompcap_getname(const char* locale)
|
||||
static const char* xcompcap_getname(void)
|
||||
{
|
||||
UNUSED_PARAMETER(locale);
|
||||
|
||||
/* TODO: locale */
|
||||
return "Xcomposite capture";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user