You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/biniax2/files/biniax2-1.30-dotfiles.patch

61 lines
1.3 KiB

--- a/biniax.c
+++ b/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 )
--- a/desktop/cfg.c
+++ b/desktop/cfg.c
@@ -36,7 +36,7 @@
******************************************************************************/
#define _Cfg_Buffer 255
-#define csConfigName "config.bnx2"
+#define csConfigName ".config.bnx2"
struct BNX_SETUP
{
--- a/game.h
+++ b/game.h
@@ -37,7 +37,7 @@
DEFINITIONS
******************************************************************************/
-#define csSaveGameName "autosave.bnx2"
+#define csSaveGameName ".autosave.bnx2"
/******************************************************************************
CONSTANTS
--- a/hof.c
+++ b/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
+}