From 8607a6ef8dda8e006038231b5a1a2dc6922cc589 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 7 Jul 2021 00:45:00 +0200 Subject: [PATCH] Bump plugin-cache version to force a re-scan --- libs/ardour/plugin_manager.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index e00f6a0313..80b8d2e174 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -353,8 +353,7 @@ PluginManager::cache_valid () const uint32_t PluginManager::cache_version () { - /* see ARDOUR::vst3_scan_and_cache VST3Cache version = +1 */ - return 1000 * atoi (X_(PROGRAM_VERSION)) + 1; + return 1000 * atoi (X_(PROGRAM_VERSION)) + 2; } struct PluginInfoPtrNameSorter { @@ -2026,7 +2025,9 @@ PluginManager::vst3_discover (string const& path, bool cache_only) if (cache_file.empty ()) { run_scan = true; } else if (tree.read (cache_file)) { - /* valid cache file was found, now check version */ + /* valid cache file was found, now check version + * see ARDOUR::vst3_scan_and_cache VST3Cache version + */ int cf_version = 0; if (!tree.root()->get_property ("version", cf_version) || cf_version < 1) { run_scan = true;