wok diff visualboyadvance/stuff/1.7.2-homedir.patch @ rev 11304
Up: dosfstools (3.0.12)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Nov 12 23:03:56 2011 +0000 (2011-11-12) |
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 12 23:03:56 2011 +0000 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;