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:
@@ -81,9 +81,9 @@ static inline void update_settings(struct monitor_capture *capture,
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static const char *monitor_capture_getname(const char *locale)
|
||||
static const char *monitor_capture_getname(void)
|
||||
{
|
||||
/* TODO: translate */
|
||||
/* TODO: locale */
|
||||
return "Monitor Capture";
|
||||
}
|
||||
|
||||
|
@@ -294,10 +294,9 @@ static HWND find_window(struct window_capture *wc)
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static const char *wc_getname(const char *locale)
|
||||
static const char *wc_getname(void)
|
||||
{
|
||||
/* TODO: locale */
|
||||
UNUSED_PARAMETER(locale);
|
||||
return "Window capture";
|
||||
}
|
||||
|
||||
@@ -362,7 +361,7 @@ static void wc_defaults(obs_data_t defaults)
|
||||
obs_data_setbool(defaults, "compatibility", false);
|
||||
}
|
||||
|
||||
static obs_properties_t wc_properties(const char *locale)
|
||||
static obs_properties_t wc_properties(void)
|
||||
{
|
||||
obs_properties_t ppts = obs_properties_create();
|
||||
obs_property_t p;
|
||||
|
Reference in New Issue
Block a user