From 28b5416eeb9256157787058a993ee4354448dbad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 21 Apr 2006 23:40:17 +0000 Subject: [PATCH] - orphaned, outdated Changed files: 0verkill-home_etc-doc.patch -> 1.2 0verkill-home_etc.patch -> 1.2 --- 0verkill-home_etc-doc.patch | 14 ------------ 0verkill-home_etc.patch | 43 ------------------------------------- 2 files changed, 57 deletions(-) delete mode 100644 0verkill-home_etc-doc.patch delete mode 100644 0verkill-home_etc.patch diff --git a/0verkill-home_etc-doc.patch b/0verkill-home_etc-doc.patch deleted file mode 100644 index 7f9f76e..0000000 --- a/0verkill-home_etc-doc.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff -Nru 0verkill-0.16/doc/doc.html 0verkill-0.16.new/doc/doc.html ---- 0verkill-0.16/doc/doc.html Sat Dec 15 18:51:39 2001 -+++ 0verkill-0.16.new/doc/doc.html Sat Mar 15 13:23:11 2003 -@@ -204,7 +204,9 @@ -

Configure File

- -

When you run 0verkill client for the first time, .0verkill file --appears in your home directory. This file contains address of the server, your -+appears in your home directory. When CONFIG_DIR is set -+$CONFIG_DIR/0verkill will be used instead. -+This file contains address of the server, your - color and name. Everytime you run 0verkill, these values will be taken as - default. - diff --git a/0verkill-home_etc.patch b/0verkill-home_etc.patch deleted file mode 100644 index 427a61d..0000000 --- a/0verkill-home_etc.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff -Nru 0verkill-0.16/cfg.h 0verkill-0.16.new/cfg.h ---- 0verkill-0.16/cfg.h Sat Mar 15 13:01:51 2003 -+++ 0verkill-0.16.new/cfg.h Sat Mar 15 13:08:52 2003 -@@ -32,6 +32,7 @@ - #define LEVEL_SPRITES_SUFFIX ".sp" - - #define CFG_FILE ".0verkill" -+#define CONFIG_DIR_CFG_FILE "0verkill" - - #define AREA_X 1000 - #define AREA_Y 500 -diff -Nru 0verkill-0.16/client.c 0verkill-0.16.new/client.c ---- 0verkill-0.16/client.c Sun Dec 16 10:26:38 2001 -+++ 0verkill-0.16.new/client.c Sat Mar 15 13:12:35 2003 -@@ -189,8 +189,12 @@ - FILE *stream; - int a; - unsigned char txt[256]; -- -+ char *config_dir; - #ifndef WIN32 -+ config_dir = getenv("CONFIG_DIR"); -+ if (config_dir) { -+ sprintf(txt, "%s/%s", config_dir, CONFIG_DIR_CFG_FILE); -+ } else - sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); - #else - sprintf(txt,"./%s",CFG_FILE); -@@ -221,8 +225,13 @@ - { - FILE *stream; - unsigned char txt[256]; -- -+ char *config_dir; -+ - #ifndef WIN32 -+ config_dir = getenv("CONFIG_DIR"); -+ if (config_dir) { -+ sprintf(txt, "%s/%s", config_dir, CONFIG_DIR_CFG_FILE); -+ } else - sprintf(txt,"%s/%s",getenv("HOME"),CFG_FILE); - #else - sprintf(txt,"./%s",CFG_FILE); -- 2.44.0