games-arcade/epiar: remove unused patch
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>
Fri, 25 Nov 2016 16:16:34 +0000 (17:16 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Fri, 25 Nov 2016 19:21:10 +0000 (06:21 +1100)
games-arcade/epiar/files/0.5-gentoo-paths.patch [deleted file]

diff --git a/games-arcade/epiar/files/0.5-gentoo-paths.patch b/games-arcade/epiar/files/0.5-gentoo-paths.patch
deleted file mode 100644 (file)
index b46f561..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
---- src/system/path.c.orig     2004-03-28 04:42:23.329963224 -0500
-+++ src/system/path.c  2004-03-28 04:42:47.375307776 -0500
-@@ -187,6 +187,7 @@
-                       free(stripped);\r
-               if (argv)\r
-                       free(argv);\r
-+              goto portage_path;
-               return (0);\r
-       }\r
\r
-@@ -212,6 +213,11 @@
-               free(stripped);\r
-       if (argv)\r
-               free(argv);\r
-+
-+portage_path:
-+      if (game_path) free(game_path);
-+      game_path = (char *)malloc(sizeof(char) * strlen("/usr/share/games/epiar/\0"));
-+      sprintf(game_path, "/usr/share/games/epiar/");
\r
-       return (0);\r
- }\r
---- src/input/input.c.orig     2004-03-28 04:48:49.925191816 -0500
-+++ src/input/input.c  2004-03-28 04:52:57.184602672 -0500
-@@ -240,7 +240,10 @@
- *\r
- ******************************************************************************/\r
- int load_input_cfg(void) {\r
--      FILE *fp = fopen("./.epiar-input.ecf", "rb");\r
-+      char filename[1024];
-+      FILE *fp;
-+      snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME"));
-+      fp = fopen(filename, "rb");\r
\r
-       /* make sure all keys are enabled */\r
-       unlock_keys();\r
-@@ -282,7 +285,7 @@
-       } else {\r
-               float file_version = 0.0f;\r
-               /* read the file into the struct */\r
--              fp = fopen("./.epiar-input.ecf", "rb");\r
-+              fp = fopen(filename, "rb");\r
\r
-               if (fp == NULL) {\r
-                       fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n");\r
-@@ -472,10 +475,12 @@
- }\r
\r
- void save_keybindings(void) {\r
-+      char filename[1024];
-       float file_version = 0.2f;\r
-       FILE *fp;\r
\r
--      fp = fopen("./.epiar-input.ecf", "wb");\r
-+      snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME"));
-+      fp = fopen(filename, "wb");\r
-       if (fp == NULL) {\r
-               fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n");\r
-               return;\r