Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 180630 Details for
Bug 206287
games-arcade/teeworlds (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix datadir search
fix_datadir_search.patch (text/plain), 1011 bytes, created by
Bruno 'brubru' Tarquini
on 2009-02-01 23:40:29 UTC
(
hide
)
Description:
fix datadir search
Filename:
MIME Type:
Creator:
Bruno 'brubru' Tarquini
Created:
2009-02-01 23:40:29 UTC
Size:
1011 bytes
patch
obsolete
>diff -r 9582fcee983b -r c1502459a920 src/engine/e_engine.c >--- a/src/engine/e_engine.c Sun Feb 01 20:50:22 2009 +0100 >+++ b/src/engine/e_engine.c Sun Feb 01 21:37:17 2009 +0100 >@@ -539,14 +539,15 @@ > } > > /* 2) use data-dir in PWD if present */ >- if(fs_is_dir("data")) >+ /* test subdir "/mapres" to reject unrelated "data" dir in PWD */ >+ if(fs_is_dir("data/mapres")) > { > strcpy(datadir, "data"); > return 0; > } > > /* 3) use compiled-in data-dir if present */ >- if (fs_is_dir(DATA_DIR)) >+ if (fs_is_dir(DATA_DIR "/mapres")) > { > strcpy(datadir, DATA_DIR); > return 0; >@@ -572,9 +573,11 @@ > /* 5) check for all default locations */ > { > const char *sdirs[] = { >- "/usr/share/teeworlds", >- "/usr/local/share/teeworlds" >- "/opt/teeworlds" >+ "/usr/share/teeworlds/data", >+ "/usr/share/games/teeworlds/data", >+ "/usr/local/share/teeworlds/data", >+ "/usr/local/share/games/teeworlds/data", >+ "/opt/teeworlds/data" > }; > const int sdirs_count = sizeof(sdirs) / sizeof(sdirs[0]); >
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 206287
:
141098
|
141149
|
141150
|
141185
|
141303
|
141558
|
142136
|
142142
|
142146
|
143454
|
146976
|
146988
|
146989
|
147018
|
154085
|
164157
|
170238
|
170240
|
170982
|
170983
|
171804
|
178738
|
180627
|
180629
| 180630 |
180984
|
182349
|
182351
|
184778
|
188334
|
188336
|
210802
|
214238