wok-next diff visualboyadvance/stuff/1.7.2-homedir.patch @ rev 13605
Up: kmod (11)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Nov 10 19:54:06 2012 +0100 (2012-11-10) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/visualboyadvance/stuff/1.7.2-homedir.patch Sat Nov 10 19:54:06 2012 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +--- src/sdl/SDL.cpp.orig 2004-08-15 02:43:28.232750688 -0400 1.5 ++++ src/sdl/SDL.cpp 2004-08-15 02:44:01.557684528 -0400 1.6 +@@ -887,7 +887,7 @@ 1.7 + 1.8 + if(home != NULL) { 1.9 + fprintf(stderr, "Searching home directory: %s\n", home); 1.10 +- sprintf(path, "%s%c%s", home, FILE_SEP, name); 1.11 ++ sprintf(path, "%s%c.%s%c%s", home, FILE_SEP, EXE_NAME, FILE_SEP, name); 1.12 + f = fopen(path, "r"); 1.13 + if(f != NULL) 1.14 + return f;