Commit 95233b21 authored by Gildas Bazin's avatar Gildas Bazin

* src/misc/modules.c: don't forget to save callbacks for config options in the plugins cache.

parent 1559e11e
...@@ -1745,7 +1745,7 @@ int CacheLoadConfig( module_t *p_module, FILE *file ) ...@@ -1745,7 +1745,7 @@ int CacheLoadConfig( module_t *p_module, FILE *file )
} }
} }
p_module->p_config[i].pf_callback = 0; LOAD_IMMEDIATE( p_module->p_config[i].pf_callback );
} }
p_module->p_config[i].i_type = CONFIG_HINT_END; p_module->p_config[i].i_type = CONFIG_HINT_END;
...@@ -1936,6 +1936,8 @@ void CacheSaveConfig( module_t *p_module, FILE *file ) ...@@ -1936,6 +1936,8 @@ void CacheSaveConfig( module_t *p_module, FILE *file )
for( j = 0; j < p_module->p_config[i].i_action; j++ ) for( j = 0; j < p_module->p_config[i].i_action; j++ )
SAVE_STRING( p_module->p_config[i].ppsz_action_text[j] ); SAVE_STRING( p_module->p_config[i].ppsz_action_text[j] );
SAVE_IMMEDIATE( p_module->p_config[i].pf_callback );
} }
} }
......
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