VST cache file transition.
authorRobin Gareus <robin@gareus.org>
Mon, 3 Aug 2015 21:03:48 +0000 (23:03 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 3 Aug 2015 21:03:48 +0000 (23:03 +0200)
libs/ardour/ardour/vst_info_file.h
libs/ardour/plugin_manager.cc

index 006e2c26baa95a9feecad1ec730ba0a8d5675250..f253ab0b4b784beed5e255b1de18ed7f415605a5 100644 (file)
@@ -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
 
index 7759a1d87bfb33dda071a9db6cb2836e8be76b36..3d2b34f65778d0246b9b0c687485457b8a8a28fb 100644 (file)
@@ -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