summaryrefslogtreecommitdiff
path: root/community/visualboyadvance/1.7.2-homedir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/visualboyadvance/1.7.2-homedir.patch')
-rw-r--r--community/visualboyadvance/1.7.2-homedir.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/visualboyadvance/1.7.2-homedir.patch b/community/visualboyadvance/1.7.2-homedir.patch
new file mode 100644
index 000000000..e93d32cf5
--- /dev/null
+++ b/community/visualboyadvance/1.7.2-homedir.patch
@@ -0,0 +1,11 @@
+--- 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;