Skip to content

Commit

Permalink
Set plugin type to InstrumentPlugin when parse a faust synth file
Browse files Browse the repository at this point in the history
  • Loading branch information
brummer10 committed Jan 4, 2024
1 parent ef0b039 commit 7e31971
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions XUiDesigner/src/XUiFileParser.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "XUiTurtleView.h"
#include "XUiWritePlugin.h"
#include "XUiReadJson.h"
#include "XUiSettings.h"

char *substr(const char *str, const char *p1, const char *p2) {
const char *i1 = strstr(str, p1);
Expand Down Expand Up @@ -174,6 +175,10 @@ static bool check_synth(XUiDesigner *designer, const char* filename) {
free(tmp2);
tmp2 = NULL;
designer->is_faust_synth_file = true;
free(designer->lv2c.plugintype);
designer->lv2c.plugintype = NULL;
asprintf(&designer->lv2c.plugintype, "%s","InstrumentPlugin");
set_project_type_by_name (designer->project_type, designer->lv2c.plugintype);
}
free(tmp);
return is_synth;
Expand Down

0 comments on commit 7e31971

Please sign in to comment.