mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-12 17:46:34 +01:00
Tweak Lua API, avoid translated sting as return value
This commit is contained in:
parent
ac87409122
commit
6346b54c13
2 changed files with 5 additions and 5 deletions
|
|
@ -79,7 +79,9 @@ namespace ARDOUR { namespace LuaAPI {
|
||||||
/** List all installed plugins */
|
/** List all installed plugins */
|
||||||
std::list<boost::shared_ptr<ARDOUR::PluginInfo> > list_plugins ();
|
std::list<boost::shared_ptr<ARDOUR::PluginInfo> > list_plugins ();
|
||||||
|
|
||||||
/** Write a list of untagged plugins to a file, so we can bulk-tag them */
|
/** Write a list of untagged plugins to a file, so we can bulk-tag them
|
||||||
|
* @returns path to XML file or empty string on error
|
||||||
|
*/
|
||||||
std::string dump_untagged_plugins ();
|
std::string dump_untagged_plugins ();
|
||||||
|
|
||||||
/** search a Plugin
|
/** search a Plugin
|
||||||
|
|
|
||||||
|
|
@ -2188,7 +2188,6 @@ PluginManager::save_plugin_order_file (XMLNode &elem) const
|
||||||
std::string
|
std::string
|
||||||
PluginManager::dump_untagged_plugins ()
|
PluginManager::dump_untagged_plugins ()
|
||||||
{
|
{
|
||||||
std::string retval;
|
|
||||||
std::string path = Glib::build_filename (user_plugin_metadata_dir(), "untagged_plugins");
|
std::string path = Glib::build_filename (user_plugin_metadata_dir(), "untagged_plugins");
|
||||||
XMLNode* root = new XMLNode (X_("PluginTags"));
|
XMLNode* root = new XMLNode (X_("PluginTags"));
|
||||||
|
|
||||||
|
|
@ -2214,11 +2213,10 @@ PluginManager::dump_untagged_plugins ()
|
||||||
XMLTree tree;
|
XMLTree tree;
|
||||||
tree.set_root (root);
|
tree.set_root (root);
|
||||||
if (tree.write (path)) {
|
if (tree.write (path)) {
|
||||||
retval = path;
|
return path;
|
||||||
} else {
|
} else {
|
||||||
retval = string_compose (_("ERROR: Could not save Plugin Tags info to %1"), path);
|
return "";
|
||||||
}
|
}
|
||||||
return retval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue