From 934a38f97673b63088ab5f019aa9c7273f4ef907 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 25 Sep 2009 17:20:17 -0700 Subject: Make the sidplay decoder filter configurable. --- src/decoder/sidplay_plugin.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx index 9988b15a8..d97abd656 100644 --- a/src/decoder/sidplay_plugin.cxx +++ b/src/decoder/sidplay_plugin.cxx @@ -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; -- cgit v1.2.3