DecoderPlugin: pass config_param reference

This commit is contained in:
Max Kellermann
2013-08-04 11:30:26 +02:00
parent 83f4c48c8a
commit 7a1d466fb2
13 changed files with 34 additions and 35 deletions

View File

@@ -83,24 +83,22 @@ sidplay_load_songlength_db(const char *path)
}
static bool
sidplay_init(const struct config_param *param)
sidplay_init(const config_param &param)
{
/* read the songlengths database file */
songlength_file=config_get_block_string(param,
"songlength_database", NULL);
songlength_file = param.GetBlockValue("songlength_database");
if (songlength_file != NULL)
songlength_database = sidplay_load_songlength_db(songlength_file);
default_songlength=config_get_block_unsigned(param,
"default_songlength", 0);
default_songlength = param.GetBlockValue("default_songlength", 0u);
all_files_are_containers=config_get_block_bool(param,
"all_files_are_containers", true);
all_files_are_containers =
param.GetBlockValue("all_files_are_containers", true);
path_with_subtune=g_pattern_spec_new(
"*/" SUBTUNE_PREFIX "???.sid");
filter_setting=config_get_block_bool(param, "filter", true);
filter_setting = param.GetBlockValue("filter", true);
return true;
}