Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72193 Details for
Bug 111566
games-fps/sauerbraten add build-from-source ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/20050815-gentoo-paths.patch
20050815-gentoo-paths.patch (text/plain), 1.34 KB, created by
Florian Steinel
on 2005-11-05 08:06:18 UTC
(
hide
)
Description:
files/20050815-gentoo-paths.patch
Filename:
MIME Type:
Creator:
Florian Steinel
Created:
2005-11-05 08:06:18 UTC
Size:
1.34 KB
patch
obsolete
>--- engine/rendergl.cpp 2005-08-15 00:56:12.000000000 +0200 >+++ engine/rendergl.cpp 2005-11-05 15:57:31.000000000 +0100 >@@ -117,6 +117,7 @@ > Texture *textureload(char *name, int rot, bool clamp, bool mipit, bool msg) > { > string rname, tname; >+ name = addfullpath(name); > strcpy_s(tname, name); > strcpy_s(rname, path(tname)); > if(rot) { sprintf_sd(rnum)("_%d", rot); strcat_s(rname, rnum); }; >--- shared/tools.cpp 2005-08-07 01:23:22.000000000 +0200 >+++ shared/tools.cpp 2005-11-05 15:55:14.000000000 +0100 >@@ -5,8 +5,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; > }; >--- shared/tools.h 2005-08-14 23:08:02.000000000 +0200 >+++ shared/tools.h 2005-11-05 15:59:48.000000000 +0100 >@@ -115,6 +115,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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 111566
:
72192
|
72193
|
78674
|
81067
|
81105
|
83051
|
85513
|
89323
|
89519
|
92628
|
92669
|
96861
|
100392
|
104570
|
104704
|
104899
|
104900
|
104902
|
104903
|
104905
|
116408
|
116410
|
116411
|
133448
|
133449
|
133450
|
139476
|
139478
|
152457
|
152459
|
157443
|
190408
|
190448
|
190465
|
190468
|
190470
|
190472
|
190546
|
190547
|
190548
|
190550
|
190622
|
190657
|
190660
|
199353
|
239489
|
239491
|
239493
|
239593
|
239789
|
240635