PKGBUILDs/community/visualboyadvance/1.7.2-homedir.patch
2012-09-17 17:23:13 +00:00

11 lines
415 B
Diff

--- src/sdl/SDL.cpp.orig 2004-08-15 02:43:28.232750688 -0400
+++ src/sdl/SDL.cpp 2004-08-15 02:44:01.557684528 -0400
@@ -887,7 +887,7 @@
if(home != NULL) {
fprintf(stderr, "Searching home directory: %s\n", home);
- sprintf(path, "%s%c%s", home, FILE_SEP, name);
+ sprintf(path, "%s%c.%s%c%s", home, FILE_SEP, EXE_NAME, FILE_SEP, name);
f = fopen(path, "r");
if(f != NULL)
return f;