summaryrefslogtreecommitdiff
blob: 2cd212d6857cafbff3abd08e938a6f5138f43b5b (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--- biniax.c
+++ biniax.c
@@ -47,6 +47,8 @@
 INCLUDES
 ******************************************************************************/
 
+#include <unistd.h>
+
 #include "game.h"
 #include "lev.h"
 #include "inc.h"
@@ -97,6 +99,8 @@
 	UNREF( argc );
 	UNREF( argv );
 
+	chdir( getenv( "HOME" ) );
+
 	cfgInit();
 	hofInit();
 	if ( gfxInit() == BNX_FALSE )
--- desktop/cfg.c
+++ desktop/cfg.c
@@ -36,7 +36,7 @@
 ******************************************************************************/
 
 #define _Cfg_Buffer 255
-#define csConfigName "config.bnx2"
+#define csConfigName ".config.bnx2"
 
 struct BNX_SETUP
 {
--- game.h
+++ game.h
@@ -37,7 +37,7 @@
 DEFINITIONS
 ******************************************************************************/
 
-#define csSaveGameName		"autosave.bnx2"
+#define csSaveGameName		".autosave.bnx2"
 
 /******************************************************************************
 CONSTANTS
--- hof.c
+++ hof.c
@@ -34,7 +34,7 @@
 #define chCursor		'_'			/* Cursor ON */
 #define chSpace			' '			/* Cursor OFF*/
 
-#define csHOFName		"hof.bnx2"	/* File name */
+#define csHOFName		".hof.bnx2"	/* File name */
 #define cHOFFileSize	504			/* File size */
 
 BNX_HALL	Hof;
@@ -292,4 +292,4 @@
 BNX_HALL *hofGet()
 {
 	return (BNX_HALL *) &Hof;
-}
\ No newline at end of file
+}