summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger (asterix) <m.mairkeimberger@gmail.com>2016-11-25 17:16:34 +0100
committerMichael Palimaka <kensington@gentoo.org>2016-11-26 06:21:10 +1100
commitb97de86c7a2b1ccd31079833553cc1c35a147eef (patch)
tree93c8ad40ebbb8394eee2ed47a07af61e9f4f7b74 /games-arcade/epiar
parentgames-arcade/commandergenius: remove unused patch (diff)
downloadgentoo-b97de86c7a2b1ccd31079833553cc1c35a147eef.tar.gz
gentoo-b97de86c7a2b1ccd31079833553cc1c35a147eef.tar.bz2
gentoo-b97de86c7a2b1ccd31079833553cc1c35a147eef.zip
games-arcade/epiar: remove unused patch
Diffstat (limited to 'games-arcade/epiar')
-rw-r--r--games-arcade/epiar/files/0.5-gentoo-paths.patch59
1 files changed, 0 insertions, 59 deletions
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
index b46f56195aa7..000000000000
--- a/games-arcade/epiar/files/0.5-gentoo-paths.patch
+++ /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);
- if (argv)
- free(argv);
-+ goto portage_path;
- return (0);
- }
-
-@@ -212,6 +213,11 @@
- free(stripped);
- if (argv)
- free(argv);
-+
-+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/");
-
- return (0);
- }
---- 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 @@
- *
- ******************************************************************************/
- int load_input_cfg(void) {
-- FILE *fp = fopen("./.epiar-input.ecf", "rb");
-+ char filename[1024];
-+ FILE *fp;
-+ snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME"));
-+ fp = fopen(filename, "rb");
-
- /* make sure all keys are enabled */
- unlock_keys();
-@@ -282,7 +285,7 @@
- } else {
- float file_version = 0.0f;
- /* read the file into the struct */
-- fp = fopen("./.epiar-input.ecf", "rb");
-+ fp = fopen(filename, "rb");
-
- if (fp == NULL) {
- fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n");
-@@ -472,10 +475,12 @@
- }
-
- void save_keybindings(void) {
-+ char filename[1024];
- float file_version = 0.2f;
- FILE *fp;
-
-- fp = fopen("./.epiar-input.ecf", "wb");
-+ snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME"));
-+ fp = fopen(filename, "wb");
- if (fp == NULL) {
- fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n");
- return;