From 3e631b9cb851a1c29880beaded78f2bbfa694976 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 26 Jun 2014 19:32:53 +0200 Subject: config: use the same signature for win32/OSX specific path functions Seems like a good idea, even if it's basically unused (yet). Also document requirements on the functions (they're not obvious). OSX changes untested. --- osdep/path-macosx.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'osdep/path-macosx.m') diff --git a/osdep/path-macosx.m b/osdep/path-macosx.m index 83fb113e8d..33086c3ea4 100644 --- a/osdep/path-macosx.m +++ b/osdep/path-macosx.m @@ -20,11 +20,12 @@ #include "options/path.h" #include "osdep/path.h" -char *mp_get_macosx_bundle_dir(void *talloc_ctx) +int mp_add_macosx_bundle_dir(struct mpv_global *global, char **dirs, int i) { + void *talloc_ctx = dirs; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSString *path = [[NSBundle mainBundle] resourcePath]; - char *rv = talloc_strdup(talloc_ctx, [path UTF8String]); + dirs[i++] = talloc_strdup(talloc_ctx, [path UTF8String]); [pool release]; - return rv; + return i; } -- cgit v1.2.3