Commit 684138de authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

darwin_specific: Make sure developer version of VLC.app works.

parent bdbd8588
/***************************************************************************** /*****************************************************************************
* darwin_specific.m: Darwin specific features * darwin_specific.m: Darwin specific features
***************************************************************************** *****************************************************************************
...@@ -79,6 +80,16 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] ) ...@@ -79,6 +80,16 @@ void system_Init( libvlc_int_t *p_this, int *pi_argc, const char *ppsz_argv[] )
else else
p_char = NULL; 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 ) if ( !p_char )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment