[MPlayer-cvslog] CVS: main get_path.c,1.11,1.12

Alban Bedel CVS syncmail at mplayerhq.hu
Sat Oct 29 14:16:48 CEST 2005


CVS change done by Alban Bedel CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv4772

Modified Files:
	get_path.c 
Log Message:
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)



Index: get_path.c
===================================================================
RCS file: /cvsroot/mplayer/main/get_path.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- get_path.c	16 Oct 2005 19:14:09 -0000	1.11
+++ get_path.c	29 Oct 2005 12:16:46 -0000	1.12
@@ -36,7 +36,9 @@
 	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;       




More information about the MPlayer-cvslog mailing list