diff options
Diffstat (limited to 'games-fps/cube/files')
-rw-r--r-- | games-fps/cube/files/20031223-gentoo-paths.patch | 43 | ||||
-rw-r--r-- | games-fps/cube/files/cube-20021020-add-custom-paths.patch | 43 | ||||
-rw-r--r-- | games-fps/cube/files/digest-cube-20031223 | 1 |
3 files changed, 0 insertions, 87 deletions
diff --git a/games-fps/cube/files/20031223-gentoo-paths.patch b/games-fps/cube/files/20031223-gentoo-paths.patch deleted file mode 100644 index 594a0714e5fb..000000000000 --- a/games-fps/cube/files/20031223-gentoo-paths.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- tools.cpp.orig 2002-12-17 09:35:55.000000000 -0500 -+++ tools.cpp 2002-12-17 09:39:28.000000000 -0500 -@@ -100,8 +100,19 @@ -
- ///////////////////////// misc tools ///////////////////////
-
-+char *addfullpath(char *s) {
-+ static char ret[256]; // choose a reasonable max buffer size
-+ if (s[0] == '/') { return s; }
-+ int slen = strlen(s);
-+ memset(ret, 0x00, 256);
-+ memcpy(ret, GAMES_DATADIR, GAMES_DATADIR_LEN);
-+ memcpy(ret+GAMES_DATADIR_LEN, s, slen);
-+ return ret;
-+}
-+
- char *path(char *s)
- {
-+ s = addfullpath(s);
- for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV);
- return s;
- };
---- rendergl.cpp.orig 2002-12-17 09:48:00.000000000 -0500 -+++ rendergl.cpp 2002-12-17 09:50:19.000000000 -0500 -@@ -59,6 +59,7 @@ -
- bool installtex(int tnum, char *texname, int &xs, int &ys, bool clamp)
- {
-+ texname = addfullpath(texname);
- SDL_Surface *s = IMG_Load(texname);
- if(!s) { conoutf("couldn't load texture %s", (int)texname); return false; };
- if(s->format->BitsPerPixel!=24) { conoutf("texture must be 24bpp: %s", (int)texname); return false; };
---- tools.h.orig 2002-12-17 09:51:06.000000000 -0500 -+++ tools.h 2002-12-17 09:50:59.000000000 -0500 -@@ -96,7 +96,7 @@ - #endif
-
-
--
-+extern char *addfullpath(char *s);
- extern char *path(char *s);
- extern char *loadfile(char *fn, int *size);
- extern void endianswap(void *, int, int);
diff --git a/games-fps/cube/files/cube-20021020-add-custom-paths.patch b/games-fps/cube/files/cube-20021020-add-custom-paths.patch deleted file mode 100644 index 594a0714e5fb..000000000000 --- a/games-fps/cube/files/cube-20021020-add-custom-paths.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- tools.cpp.orig 2002-12-17 09:35:55.000000000 -0500 -+++ tools.cpp 2002-12-17 09:39:28.000000000 -0500 -@@ -100,8 +100,19 @@ -
- ///////////////////////// misc tools ///////////////////////
-
-+char *addfullpath(char *s) {
-+ static char ret[256]; // choose a reasonable max buffer size
-+ if (s[0] == '/') { return s; }
-+ int slen = strlen(s);
-+ memset(ret, 0x00, 256);
-+ memcpy(ret, GAMES_DATADIR, GAMES_DATADIR_LEN);
-+ memcpy(ret+GAMES_DATADIR_LEN, s, slen);
-+ return ret;
-+}
-+
- char *path(char *s)
- {
-+ s = addfullpath(s);
- for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV);
- return s;
- };
---- rendergl.cpp.orig 2002-12-17 09:48:00.000000000 -0500 -+++ rendergl.cpp 2002-12-17 09:50:19.000000000 -0500 -@@ -59,6 +59,7 @@ -
- bool installtex(int tnum, char *texname, int &xs, int &ys, bool clamp)
- {
-+ texname = addfullpath(texname);
- SDL_Surface *s = IMG_Load(texname);
- if(!s) { conoutf("couldn't load texture %s", (int)texname); return false; };
- if(s->format->BitsPerPixel!=24) { conoutf("texture must be 24bpp: %s", (int)texname); return false; };
---- tools.h.orig 2002-12-17 09:51:06.000000000 -0500 -+++ tools.h 2002-12-17 09:50:59.000000000 -0500 -@@ -96,7 +96,7 @@ - #endif
-
-
--
-+extern char *addfullpath(char *s);
- extern char *path(char *s);
- extern char *loadfile(char *fn, int *size);
- extern void endianswap(void *, int, int);
diff --git a/games-fps/cube/files/digest-cube-20031223 b/games-fps/cube/files/digest-cube-20031223 deleted file mode 100644 index fd37e49321a0..000000000000 --- a/games-fps/cube/files/digest-cube-20031223 +++ /dev/null @@ -1 +0,0 @@ -MD5 22555b87ef16c403198a6f378c048c6f cube_2003_12_23.zip 18587017 |