Commit 1f0dd884 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

config: Make sure lua will be able to find share/lua on Mac OS X.

parent e4d8bc62
......@@ -43,7 +43,9 @@ static pthread_once_t once = PTHREAD_ONCE_INIT;
static void init_dirs( void )
{
configdir = config_GetUserDir(VLC_CONFIG_DIR);
datadir = config_GetUserDir(VLC_DATA_DIR);
int ret = asprintf(&datadir, "%s/share", psz_vlcpath);
if (ret == -1)
datadir = NULL;
}
const char *config_GetConfDir( void )
......
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