From 2443fd1d79a7e02fc6b9f3f02aaaa01075bfd850 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Aug 2015 23:03:48 +0200 Subject: VST cache file transition. --- libs/ardour/ardour/vst_info_file.h | 2 +- libs/ardour/plugin_manager.cc | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/vst_info_file.h b/libs/ardour/ardour/vst_info_file.h index 006e2c26ba..f253ab0b4b 100644 --- a/libs/ardour/ardour/vst_info_file.h +++ b/libs/ardour/ardour/vst_info_file.h @@ -36,7 +36,7 @@ #define VST_EXT_INFOFILE ".fsi64" #define VST_BLACKLIST "vst64_blacklist.txt" #else -#define VST_EXT_INFOFILE ".fsi" +#define VST_EXT_INFOFILE ".fsi32" #define VST_BLACKLIST "vst32_blacklist.txt" #endif diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 7759a1d87b..3d2b34f657 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -352,6 +352,14 @@ PluginManager::clear_vst_cache () } } #endif +#if (defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT) + { + string dir = Glib::build_filename (ARDOUR::user_cache_directory(), "fst_info"); + if (Glib::file_test (dir, Glib::FILE_TEST_IS_DIR)) { + PBD::remove_directory (dir); + } + } +#endif #endif // old cache cleanup #if (defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT) @@ -390,6 +398,14 @@ PluginManager::clear_vst_blacklist () } } #endif +#if (defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT) + { + string dir = Glib::build_filename (ARDOUR::user_cache_directory(), "fst_blacklist"); + if (Glib::file_test (dir, Glib::FILE_TEST_IS_DIR)) { + PBD::remove_directory (dir); + } + } +#endif #endif // old blacklist cleanup -- cgit v1.2.3