File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"slug" : " Core" ,
3
3
"name" : " VCV Core" ,
4
- "version" : " 2.6.0" ,
5
4
"license" : " GPL-3.0-or-later" ,
6
5
"author" : " VCV" ,
7
6
"brand" : " VCV" ,
Original file line number Diff line number Diff line change @@ -133,7 +133,11 @@ static Plugin* loadPlugin(std::string path) {
133
133
INFO (" Loading plugin from %s" , path.c_str ());
134
134
135
135
Plugin* plugin = new Plugin;
136
+
136
137
try {
138
+ if (path == " " )
139
+ plugin->version = APP_VERSION;
140
+
137
141
// Set plugin path
138
142
plugin->path = (path == " " ) ? asset::systemDir : path;
139
143
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ void Plugin::fromJson(json_t* rootJ) {
48
48
json_t * versionJ = json_object_get (rootJ, " version" );
49
49
if (versionJ)
50
50
version = json_string_value (versionJ);
51
- if (!string::startsWith (version, APP_VERSION_MAJOR + " ." ))
52
- throw Exception (" Plugin version %s does not match Rack ABI version %s" , version.c_str (), APP_VERSION_MAJOR.c_str ());
53
51
if (version == " " )
54
52
throw Exception (" No plugin version" );
53
+ if (!string::startsWith (version, APP_VERSION_MAJOR + " ." ))
54
+ throw Exception (" Plugin version %s does not match Rack ABI version %s" , version.c_str (), APP_VERSION_MAJOR.c_str ());
55
55
56
56
// name
57
57
json_t * nameJ = json_object_get (rootJ, " name" );
You can’t perform that action at this time.
0 commit comments