From: fennecdjay Date: Sun, 10 Jul 2022 11:54:17 +0000 (+0200) Subject: :art: Change plug discovery order X-Git-Tag: nightly~264^2~100 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=685016bc335d3912152896fcfd572904a8254bbe;p=gwion.git :art: Change plug discovery order --- diff --git a/plug b/plug index dd89e8bf..e7833a5e 160000 --- a/plug +++ b/plug @@ -1 +1 @@ -Subproject commit dd89e8bfe3c3e9222e112526788267ba0270de16 +Subproject commit e7833a5e8decacfe6505038ca33f348fdf40de4b diff --git a/src/plug.c b/src/plug.c index 96a1855e..576cf7df 100644 --- a/src/plug.c +++ b/src/plug.c @@ -79,8 +79,8 @@ ANN m_bool plug_ini(const struct Gwion_ *gwion, const Vector list) { map_init(map); vector_init(&gwion->data->plugs->vec); struct PlugHandle h = {.mp = gwion->mp, .map = map}; - for (m_uint i = 0; i < vector_size(list); i++) { - const m_str dir = (m_str)vector_at(list, i); + for (m_uint i = vector_size(list) + 1 ; --i;) { + const m_str dir = (m_str)vector_at(list, i - 1); h.len = strlen(dir); char name[PATH_MAX]; sprintf(name, "%s/*.so" /**/, dir);