Expose Config and Cache dirs to Lua
usage example: print (ARDOUR.user_config_directory(-1), ARDOUR.user_cache_directory("")) print (ARDOUR.LuaAPI.build_filename(ARDOUR.user_config_directory(-1), "test.txt"))
This commit is contained in:
parent
592496eb09
commit
734bb51384
@ -46,6 +46,7 @@
|
||||
#include "ardour/disk_writer.h"
|
||||
#include "ardour/dsp_filter.h"
|
||||
#include "ardour/file_source.h"
|
||||
#include "ardour/filesystem_paths.h"
|
||||
#include "ardour/fluid_synth.h"
|
||||
#include "ardour/interthread_info.h"
|
||||
#include "ardour/ltc_file_reader.h"
|
||||
@ -2052,6 +2053,12 @@ LuaBindings::common (lua_State* L)
|
||||
|
||||
.endNamespace (); // end ARDOUR
|
||||
|
||||
luabridge::getGlobalNamespace (L)
|
||||
.beginNamespace ("ARDOUR")
|
||||
.addFunction ("user_config_directory", &ARDOUR::user_config_directory)
|
||||
.addFunction ("user_cache_directory", &ARDOUR::user_cache_directory)
|
||||
.endNamespace (); // end ARDOUR
|
||||
|
||||
luabridge::getGlobalNamespace (L)
|
||||
.beginNamespace ("ARDOUR")
|
||||
.beginClass <AudioBackendInfo> ("AudioBackendInfo")
|
||||
|
Loading…
Reference in New Issue
Block a user