blob: 9b3c3a413e0213df0ebd5c8752b77b58991ec9dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- 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>
+#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;
+ chdir(getenv("HOME"));
+ mkdir(".daphne", 0700);
+ chdir(".daphne");
F = fopen("dapinput.ini", "rt");
// if we opened the file successfully
@@ -589,4 +595,4 @@
}
idle_timer = refresh_ms_time();
}
-// end edit
\ No newline at end of file
+// end edit
|