From baa9d56481fe0f7633c77d0e7ee6ffd33b3a3783 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 7 Nov 2022 18:02:22 -0600 Subject: 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. --- options/path.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'options') diff --git a/options/path.c b/options/path.c index 504adb7c84..4dfe36bd2d 100644 --- a/options/path.c +++ b/options/path.c @@ -44,7 +44,9 @@ static const mp_get_platform_path_cb path_resolvers[] = { #if HAVE_COCOA mp_get_platform_path_osx, #endif -#if !defined(_WIN32) || defined(__CYGWIN__) +#if HAVE_DARWIN + mp_get_platform_path_darwin, +#elif !defined(_WIN32) || defined(__CYGWIN__) mp_get_platform_path_unix, #endif #if HAVE_UWP -- cgit v1.2.3