diff options
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c index 87b13e3c09..a3e119a76a 100644 --- a/player/lua.c +++ b/player/lua.c @@ -297,8 +297,9 @@ static int script_log(lua_State *L) static int script_find_config_file(lua_State *L) { + struct MPContext *mpctx = get_mpctx(L); const char *s = luaL_checkstring(L, 1); - char *path = mp_find_user_config_file(s); + char *path = mp_find_user_config_file(NULL, mpctx->global, s); if (path) { lua_pushstring(L, path); } else { |