diff options
author | Dudemanguy <random342@airmail.cc> | 2022-11-07 18:02:22 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-05-09 20:37:17 +0000 |
commit | baa9d56481fe0f7633c77d0e7ee6ffd33b3a3783 (patch) | |
tree | 083f4629e6c51342edcccf7523e8d645b259fab3 /osdep/path.h | |
parent | a1580b6424df95741452d3eff87d24a76305a0a8 (diff) | |
download | mpv-baa9d56481fe0f7633c77d0e7ee6ffd33b3a3783.tar.bz2 mpv-baa9d56481fe0f7633c77d0e7ee6ffd33b3a3783.tar.xz |
osdep: separate out macos paths from path-unix.c
macOS really has completely different path conventions that mpv doesn't
take into account and it treats it just like any other old unix-like
system. This means mpv enforces certain conventions on it (like all the
XDG stuff) that doesn't really apply. Since we'd like to use more of
this but at the same time not distrupt mac users even more, let's just
copy and paste the current code to a new file, update the build and call
it a day. This way, the paths of these two platforms can more freely
diverge.
Diffstat (limited to 'osdep/path.h')
-rw-r--r-- | osdep/path.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/path.h b/osdep/path.h index c082c1ee16..43b9d63bbe 100644 --- a/osdep/path.h +++ b/osdep/path.h @@ -16,6 +16,7 @@ typedef const char *(*mp_get_platform_path_cb)(void *talloc_ctx, const char *type); // Conforming to mp_get_platform_path_cb. +const char *mp_get_platform_path_darwin(void *talloc_ctx, const char *type); const char *mp_get_platform_path_uwp(void *talloc_ctx, const char *type); const char *mp_get_platform_path_win(void *talloc_ctx, const char *type); const char *mp_get_platform_path_osx(void *talloc_ctx, const char *type); |