+
/*****************************************************************************
* darwin_specific.m: Darwin specific features
*****************************************************************************
p_char += 26; /* p_char += strlen(" VLCKit.framework/Versions/" ) */
while( *p_char != '\0' && *p_char != '/')
p_char++;
-
+
/* If the string ends with VLC then we've found a winner */
if ( !strcmp( p_char, "/VLCKit" ) )
{
else
p_char = NULL;
}
+ else {
+ size_t len = strlen(psz_img_name);
+ /* Do we end by "VLC"? If so we are the legacy VLC.app that doesn't
+ * link to VLCKit. */
+ if( !strcmp( psz_img_name + len - 3, "VLC") )
+ {
+ p_char = strdup( psz_img_name );
+ break;
+ }
+ }
}
if ( !p_char )
{