Skip to content

Commit

Permalink
core/dirs: add support for iOS and tvOS
Browse files Browse the repository at this point in the history
  • Loading branch information
fkuehne committed Nov 20, 2015
1 parent 21d3166 commit 749fb1c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/darwin/dirs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 749fb1c

Please sign in to comment.