13
0

Bump plugin-cache version to force a re-scan

This commit is contained in:
Robin Gareus 2021-07-07 00:45:00 +02:00
parent 005bd4f76f
commit 8607a6ef8d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;