From ee9cff71de431ba8501d821832be7dfd07e4d67b Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Mon, 20 Jan 2003 12:51:47 +0000 Subject: no homedir pollution: move the registry file inside the ~/.xine CVS patchset: 3981 CVS date: 2003/01/20 12:51:47 --- src/libw32dll/wine/registry.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libw32dll/wine/registry.c b/src/libw32dll/wine/registry.c index ed7f5e74d..d6c571cd5 100644 --- a/src/libw32dll/wine/registry.c +++ b/src/libw32dll/wine/registry.c @@ -301,6 +301,10 @@ static void init_registry(void) #ifdef MPLAYER regpathname = get_path("registry"); localregpathname = regpathname; +#else +#ifdef XINE_MAJOR + localregpathname = (char *)malloc(strlen(xine_get_homedir()) + 20); + sprintf(localregpathname, "%s/.xine/win32registry", xine_get_homedir()); #else // regpathname is an external pointer // @@ -322,6 +326,7 @@ static void init_registry(void) strcpy(localregpathname, pthn); strcat(localregpathname, "/.registry"); } +#endif #endif open_registry(); -- cgit v1.2.3