Commit 934a38f9 authored by Tony's avatar Tony Committed by Max Kellermann

Make the sidplay decoder filter configurable.

parent 8f261af5
......@@ -41,6 +41,8 @@ static GKeyFile *songlength_database;
static bool all_files_are_containers;
static unsigned default_songlength;
static bool filter_setting;
static GKeyFile *
sidplay_load_songlength_db(const char *path)
{
......@@ -94,6 +96,8 @@ sidplay_init(const struct config_param *param)
path_with_subtune=g_pattern_spec_new(
"*/" SUBTUNE_PREFIX "???.sid");
filter_setting=config_get_block_bool(param, "filter", true);
return true;
}
......@@ -235,7 +239,7 @@ sidplay_file_decode(struct decoder *decoder, const char *path_fs)
return;
}
builder.filter(false);
builder.filter(filter_setting);
if (!builder) {
g_warning("ReSIDBuilder.filter() failed");
return;
......
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