From 3569857b7580f9037f5168a2e3888a86cc3a85a0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 May 2018 15:49:19 +0200 Subject: path: don't access global option struct The path functions need to access the option that forces non-default config directories. Just add it as a field to mpv_global - it seems justified. The accessed options were always enforced as immutable after init, so there's not much of a change. --- common/global.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/global.h b/common/global.h index 879ca72386..8adc59e02c 100644 --- a/common/global.h +++ b/common/global.h @@ -8,6 +8,7 @@ struct mpv_global { struct mp_log *log; struct m_config_shadow *config; struct mp_client_api *client_api; + char *configdir; // Using this is deprecated and should be avoided (missing synchronization). // Use m_config_cache to access mpv_global.config instead. -- cgit v1.2.3