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.2-nodatalocal.patch
Date: Tue, 30 Nov 2010 19:54:20
Message-Id: 20101130195403.9CC4620057@flycatcher.gentoo.org
1 mr_bones_ 10/11/30 19:54:03
2
3 Added: slimevolley-2.4.2-nodatalocal.patch
4 Log:
5 version bump
6
7 (Portage version: 2.1.9.24/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch?rev=1.1&content-type=text/plain
14
15 Index: slimevolley-2.4.2-nodatalocal.patch
16 ===================================================================
17 diff -ru slimevolley-2.4.1.orig/src/themes_std.c slimevolley-2.4.1/src/themes_std.c
18 --- slimevolley-2.4.1.orig/src/themes_std.c 2008-11-30 04:36:52.000000000 -0500
19 +++ slimevolley-2.4.1/src/themes_std.c 2010-05-05 13:00:23.875723904 -0400
20 @@ -30,7 +30,6 @@
21 #include "audio.h"
22 #include "themes.h"
23
24 -#define DATA_LOCAL "data"
25 #define DOSS_THEMES "themes"
26 #define DOSS_SLIMES "slimes"
27 #define SLIME_D_NOM "slimeJD%d.png"
28 @@ -74,10 +73,7 @@
29 chemin[0] = '\0';
30
31 if(var_env == NULL) {
32 - if(access(DATA_LOCAL, R_OK | X_OK) == 0) {
33 - strncpy(chemin, DATA_LOCAL, sizeof(chemin) - 1);
34 -
35 - } else if(access(DATA_DIR, R_OK | X_OK) == 0) {
36 + if(access(DATA_DIR, R_OK | X_OK) == 0) {
37 strncpy(chemin, DATA_DIR, sizeof(chemin) - 1);
38 }