Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 237821 Details for
Bug 326961
new ebuild for games-fps/wolf4sdl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
per-user configuration directory patch
configdir.patch (text/plain), 1.50 KB, created by
Jared B.
on 2010-07-07 01:04:22 UTC
(
hide
)
Description:
per-user configuration directory patch
Filename:
MIME Type:
Creator:
Jared B.
Created:
2010-07-07 01:04:22 UTC
Size:
1.50 KB
patch
obsolete
>--- wl_def.h.orig 2010-07-06 19:03:42.344721689 -0500 >+++ wl_def.h 2010-07-06 19:18:13.835684667 -0500 >@@ -915,7 +915,8 @@ > > extern boolean startgame; > extern char str[80]; >-extern char configname[13]; >+extern char configdir[64]; >+extern char configname[78]; > > // > // Command line parameter variables >--- wl_main.cpp.orig 2010-07-06 19:03:49.785686193 -0500 >+++ wl_main.cpp 2010-07-06 19:37:10.552700785 -0500 >@@ -73,7 +73,8 @@ > boolean loadedgame; > int mouseadjustment; > >-char configname[13]="config."; >+char configdir[64]; >+char configname[78]; > > // > // Command line parameter variables >@@ -247,6 +248,12 @@ > fs_unlink(configname); > #endif > >+ // Ensure configdir exists and create if necessary >+ struct stat st; >+ if (stat(configdir, &st) != 0) { >+ mkdir(configdir, 0755); >+ } >+ > const int file = open(configname, O_CREAT | O_WRONLY | O_BINARY, 0644); > if (file != -1) > { >--- wl_menu.cpp.orig 2010-07-06 19:03:57.883723973 -0500 >+++ wl_menu.cpp 2010-07-06 19:28:32.434697403 -0500 >@@ -3993,6 +3993,18 @@ > { > struct stat statbuf; > >+// Set config location to home directory for multi-user support >+// Also support separate configuration files for wolf3d and sod >+strcpy(configdir, getenv("HOME")); >+strcat(configdir, "/.wolf4sdl"); >+#ifdef SPEAR >+ strcpy(configname, configdir); >+ strcat(configname, "/spear."); >+#else >+ strcpy(configname, configdir); >+ strcat(configname, "/wolf3d."); >+#endif >+ > // > // JAPANESE VERSION > //
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 326961
:
237553
|
237555
|
237557
|
237559
|
237561
|
237565
|
237819
|
237821
|
237823
|
237825
|
237833
|
237849
|
237851
|
237853
|
237855
|
237857
|
237859
|
241169
|
288299