summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/daphne/files/0.99.6-local-dapinput.patch')
-rw-r--r--games-emulation/daphne/files/0.99.6-local-dapinput.patch29
1 files changed, 22 insertions, 7 deletions
diff --git a/games-emulation/daphne/files/0.99.6-local-dapinput.patch b/games-emulation/daphne/files/0.99.6-local-dapinput.patch
index 7867be6712ec..3226ba94bf4a 100644
--- a/games-emulation/daphne/files/0.99.6-local-dapinput.patch
+++ b/games-emulation/daphne/files/0.99.6-local-dapinput.patch
@@ -1,14 +1,29 @@
---- src/io/input.cpp.orig 2003-10-30 04:47:16.997745896 -0500
-+++ src/io/input.cpp 2003-10-30 04:47:46.725226632 -0500
-@@ -25,0 +25,1 @@
+--- src/io/input.cpp.orig 2003-11-04 02:51:56.308868080 -0500
++++ src/io/input.cpp 2003-11-04 02:53:57.283477144 -0500
+@@ -22,6 +22,9 @@
+
+ // Handles SDL input functions (low-level keyboard/joystick input)
+
+#include <unistd.h>
-@@ -113,7 +113,8 @@
++#include <sys/stat.h>
++#include <sys/types.h>
+ #include <time.h>
+ #include "input.h"
+ #include "conout.h"
+@@ -113,6 +116,9 @@
char strTemp[25] = {0};
char thisChar = 0;
-- F = fopen("dapinput.ini", "rt");
+ chdir(getenv("HOME"));
-+ F = fopen(".dapinput.ini", "rt");
++ mkdir(".daphne", 0600);
++ chdir(".daphne");
+ F = fopen("dapinput.ini", "rt");
// if we opened the file successfully
- if (F != NULL)
+@@ -589,4 +595,4 @@
+ }
+ idle_timer = refresh_ms_time();
+ }
+-// end edit
+\ No newline at end of file
++// end edit