changeset 16872:9d4becb83656

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)
author albeu
date Sat, 29 Oct 2005 12:16:46 +0000
parents 0586a1ffba44
children 40cac2c3cc0e
files get_path.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/get_path.c	Fri Oct 28 22:12:20 2005 +0000
+++ b/get_path.c	Sat Oct 29 12:16:46 2005 +0000
@@ -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;