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.
This commit is contained in:
wm4
2018-05-21 15:49:19 +02:00
parent fe6b2f9103
commit 3569857b75
4 changed files with 20 additions and 7 deletions

View File

@@ -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.