1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00

Allow the user to set the $MPLAYER_HOME environment variable to point to the location

were they want mplayer to store its configuration stuff.

Patch by Nikolai Weibull (nikolai _(dot)_ weibull _(at)_ gmail _(dot)_ com)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16873 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2005-10-29 12:16:46 +00:00
parent 4bc4473e58
commit b4f2bc353b

View File

@ -36,7 +36,9 @@ char *get_path(char *filename){
char *bdl_url_path = NULL;
#endif
if ((homedir = getenv("HOME")) == NULL)
if ((homedir = getenv("MPLAYER_HOME")) != NULL)
config_dir = "";
else if ((homedir = getenv("HOME")) == NULL)
#if defined(__MINGW32__)||defined(__CYGWIN__) /*hack to get fonts etc. loaded outside of cygwin environment*/
{
int i,imax=0;