Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 234895 Details for
Bug 323499
games-arcade/aquaria: Source ebuilds for game and BBGE engine
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
gentoo-data-path.patch
gentoo-data-path.patch (text/plain), 1.03 KB, created by
James Le Cuirot
on 2010-06-10 23:07:06 UTC
(
hide
)
Description:
gentoo-data-path.patch
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2010-06-10 23:07:06 UTC
Size:
1.03 KB
patch
obsolete
># HG changeset patch ># User James Le Cuirot <chewi@aura-online.co.uk> ># Date 1276123973 -3600 ># Node ID 6ab2d7fa577c713a38ce981a05ff519fa9661e79 ># Parent ee79bc7bf987bf41aa8665d09bcf9a332c673b50 >Use /usr/share/games/<appName> for data path on Gentoo. > >diff -r ee79bc7bf987 -r 6ab2d7fa577c BBGE/Core.cpp >--- a/BBGE/Core.cpp Wed Jun 09 19:38:21 2010 +0100 >+++ b/BBGE/Core.cpp Wed Jun 09 23:52:53 2010 +0100 >@@ -1000,25 +1000,10 @@ > debugLog(path); > chdir(path); > #elif defined(BBGE_BUILD_UNIX) >- char path[PATH_MAX]; >- // always a symlink to this process's binary, on modern Linux systems. >- const ssize_t rc = readlink("/proc/self/exe", path, sizeof (path)); >- if ( (rc == -1) || (rc >= sizeof (path)) ) >- { >- // error! >- debugLog("readlink"); >- } >- else >- { >- path[rc] = '\0'; >- char *ptr = strrchr(path, '/'); >- if (ptr != NULL) >- { >- *ptr = '\0'; >- debugLog(path); >- chdir(path); >- } >- } >+ std::string path("/usr/share/games/"); >+ path.append(appName); >+ debugLog(path); >+ chdir(path.c_str()); > #endif > #ifdef BBGE_BUILD_WINDOWS > #endif
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 323499
:
234893
|
234895
|
234897
|
234899
|
235427
|
235443
|
271309
|
271311
|
271335
|
271963