[vlc-commits] core/dirs: add support for iOS and tvOS
Felix Paul Kühne
git at videolan.org
Fri Nov 20 14:47:15 CET 2015
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Nov 20 13:18:50 2015 +0100| [749fb1c58cea14e96de4619887fa3da3b18e0686] | committer: Felix Paul Kühne
core/dirs: add support for iOS and tvOS
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=749fb1c58cea14e96de4619887fa3da3b18e0686
---
src/darwin/dirs.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/darwin/dirs.c b/src/darwin/dirs.c
index 9c34cc5..0070d18 100644
--- a/src/darwin/dirs.c
+++ b/src/darwin/dirs.c
@@ -74,6 +74,14 @@ char *config_GetLibDir (void)
/* Do we end by "VLC-Plugin"? oh, we must be the NPAPI plugin */
if (len >= 10 && !strcmp( psz_img_name + len - 10, "VLC-Plugin"))
return strdup( dirname(psz_img_name) );
+
+ /* Do we end by "VLC for iOS"? so we are the iOS app */
+ if (len >= 11 && !strcmp( psz_img_name + len - 11, "VLC for iOS"))
+ return strdup( dirname(psz_img_name) );
+
+ /* Do we end by "VLC-TV"? so we are the tvOS app */
+ if (len >= 6 && !strcmp( psz_img_name + len - 6, "VLC-TV"))
+ return strdup( dirname(psz_img_name) );
}
/* we are not part of any Mac-style package but were installed
More information about the vlc-commits
mailing list