Use sys::path and ARDOUR::user_config_directory in VSTPlugin::get_state
This is so I can remove ARDOUR::get_user_ardour_path which is replaced by ARDOUR::user_config_directory git-svn-id: svn://localhost/ardour2/trunk@2050 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -40,9 +40,9 @@
|
||||
|
||||
#include <vst/aeffectx.h>
|
||||
|
||||
#include <ardour/ardour.h>
|
||||
#include <ardour/session.h>
|
||||
#include <ardour/audioengine.h>
|
||||
#include <ardour/filesystem_paths.h>
|
||||
#include <ardour/vst_plugin.h>
|
||||
#include <ardour/buffer_set.h>
|
||||
|
||||
@@ -159,8 +159,11 @@ VSTPlugin::get_state()
|
||||
string path;
|
||||
struct stat sbuf;
|
||||
|
||||
path = get_user_ardour_path ();
|
||||
path += "vst";
|
||||
sys::path user_vst_directory(user_config_directory());
|
||||
|
||||
user_vst_directory /= "vst";
|
||||
|
||||
path = user_vst_directory.to_string();
|
||||
|
||||
if (stat (path.c_str(), &sbuf)) {
|
||||
if (errno == ENOENT) {
|
||||
|
||||
Reference in New Issue
Block a user