mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
ad2199128d
There's a single mp_msg() in path.c, but all path lookup functions seem to depend on it, so we get a rat-tail of stuff we have to change. This is probably a good thing though, because we can have the path lookup functions also access options, so we could allow overriding the default config path, or ignore the MPV_HOME environment variable, and such things. Also take the chance to consistently add talloc_ctx parameters to the path lookup functions. Also, this change causes a big mess on configfiles.c. It's the same issue: everything suddenly needs a (different) context argument. Make it less wild by providing a mp_load_auto_profiles() function, which isolates most of it to configfiles.c.
13 lines
336 B
C
13 lines
336 B
C
#ifndef OSDEP_PATH_H
|
|
#define OSDEP_PATH_H
|
|
|
|
struct mpv_global;
|
|
|
|
char *mp_get_win_config_path(const char *filename);
|
|
|
|
// Returns absolute path of a resource file in a Mac OS X application bundle.
|
|
char *mp_get_macosx_bundled_path(void *talloc_ctx, struct mpv_global *global,
|
|
const char *filename);
|
|
|
|
#endif
|