mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
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:
parent
0abcfb16ba
commit
b82ecabcbf
1 changed files with 6 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue