From 685016bc335d3912152896fcfd572904a8254bbe Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 10 Jul 2022 13:54:17 +0200 Subject: [PATCH] :art: Change plug discovery order --- plug | 2 +- src/plug.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.43.0