From 7c5c05771796468f96c97e03a692b0dbeb484e02 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Feb 2020 14:15:31 +0100 Subject: lua: use mp_path_is_absolute() for checking package paths This makes it work with the shitty OS. Behavior on Linux should be the same. --- player/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua.c b/player/lua.c index 3037fe864c..9d7ecaa0ca 100644 --- a/player/lua.c +++ b/player/lua.c @@ -297,7 +297,7 @@ static void fuck_lua(lua_State *L, const char *search_path, const char *extra) while (path.len) { bstr item; bstr_split_tok(path, ";", &item, &path); - if (bstr_startswith0(item, "/")) { + if (mp_path_is_absolute(item)) { newpath = talloc_asprintf_append(newpath, "%s%.*s", newpath[0] ? ";" : "", BSTR_P(item)); -- cgit v1.2.3