Commit 773c6cd4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Conceal unsaveable and renamed options as well

parent 8912cc8c
......@@ -801,11 +801,14 @@ module_config_t *module_GetConfig (const module_t *module, unsigned *restrict ps
for (unsigned i = 0, j = 0; i < size; i++)
{
if (module->p_config[i].b_internal)
const module_config_t *item = module->p_config + i;
if (item->b_internal /* internal option */
|| item->b_unsaveable /* non-modifiable option */
|| item->psz_current /* deprecated option name */)
continue;
if (config != NULL)
memcpy (config + j, module->p_config + i, sizeof (*config));
memcpy (config + j, item, sizeof (*config));
*psize = j;
j++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment