Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/slimevolley/files: slimevolley-2.4.1-nodatalocal.patch
Date: Wed, 05 May 2010 17:03:43
Message-Id: 20100505170337.3E0232C3FB@corvid.gentoo.org
1 mr_bones_ 10/05/05 17:03:37
2
3 Added: slimevolley-2.4.1-nodatalocal.patch
4 Log:
5 Don't try to look in pwd for a 'data' directory (bug #318005)
6 (Portage version: 2.1.8.3/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 games-arcade/slimevolley/files/slimevolley-2.4.1-nodatalocal.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/slimevolley/files/slimevolley-2.4.1-nodatalocal.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/slimevolley/files/slimevolley-2.4.1-nodatalocal.patch?rev=1.1&content-type=text/plain
13
14 Index: slimevolley-2.4.1-nodatalocal.patch
15 ===================================================================
16 diff -ru slimevolley-2.4.1.orig/src/themes_std.c slimevolley-2.4.1/src/themes_std.c
17 --- slimevolley-2.4.1.orig/src/themes_std.c 2008-11-30 04:36:52.000000000 -0500
18 +++ slimevolley-2.4.1/src/themes_std.c 2010-05-05 13:00:23.875723904 -0400
19 @@ -30,7 +30,6 @@
20 #include "audio.h"
21 #include "themes.h"
22
23 -#define DATA_LOCAL "data"
24 #define DOSS_THEMES "themes"
25 #define DOSS_SLIMES "slimes"
26 #define SLIME_D_NOM "slimeJD%d.png"
27 @@ -74,10 +73,7 @@
28 chemin[0] = '\0';
29
30 if(var_env == NULL) {
31 - if(access(DATA_LOCAL, R_OK | X_OK) == 0) {
32 - strncpy(chemin, DATA_LOCAL, sizeof(chemin) - 1);
33 -
34 - } else if(access(DATA_DIR, R_OK | X_OK) == 0) {
35 + if(access(DATA_DIR, R_OK | X_OK) == 0) {
36 strncpy(chemin, DATA_DIR, sizeof(chemin) - 1);
37 }