Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 111415 Details for
Bug 158336
GemRB: Infinity Engine Emulator (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Save Home patch for 0.2.8
0.2.8-save_home.patch (text/plain), 1.21 KB, created by
Nick White
on 2007-02-27 13:45:12 UTC
(
hide
)
Description:
Save Home patch for 0.2.8
Filename:
MIME Type:
Creator:
Nick White
Created:
2007-02-27 13:45:12 UTC
Size:
1.21 KB
patch
obsolete
>--- gemrb/plugins/Core/VFS.cpp 2006-08-12 00:17:20.000000000 +0100 >+++ gemrb/plugins/Core/VFS.cpp 2007-02-13 00:28:49.000000000 +0000 >@@ -360,6 +360,14 @@ void ResolveFilePath(char* FilePath) > char TempFileName[_MAX_PATH]; > int j, pos; > >+ if (FilePath[0]=='~') { >+ const char *home = getenv("HOME"); >+ if (home) { >+ PathJoin(TempFilePath, home, FilePath+1, NULL); >+ strncpy(FilePath, TempFilePath, _MAX_PATH); >+ } >+ } >+ > if (core && !core->CaseSensitive) { > return; > } >@@ -388,8 +396,8 @@ void ResolveFilePath(char* FilePath) > } > } > } >- //should work (same size) >- strcpy( FilePath, TempFilePath ); >+ //should work (same or less size) >+ strncpy( FilePath, TempFilePath, _MAX_PATH ); > } > > #endif >--- gemrb/plugins/Core/Interface.cpp 2006-12-17 13:27:26.000000000 +0000 >+++ gemrb/plugins/Core/Interface.cpp 2007-02-13 00:30:48.000000000 +0000 >@@ -2026,6 +2026,10 @@ bool Interface::LoadConfig(const char* f > strcat( PluginsPath, SPathDelimiter ); > } > FixPath(GemRBPath, true); >+ FixPath(SavePath, false); >+ mkdir( SavePath, S_IREAD|S_IWRITE|S_IEXEC ); >+ chmod( SavePath, S_IREAD|S_IWRITE|S_IEXEC ); >+ FixPath(SavePath, true); > FixPath(CachePath, true); > if (GUIScriptsPath[0]) { > FixPath(GUIScriptsPath, true);
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 158336
:
104184
|
104185
|
104186
|
111412
|
111413
|
111415
|
111416
|
111423
|
117276
|
117277
|
120400
|
120401
|
120483
|
129700
|
135108
|
135117
|
135119
|
135208
|
144585
|
144610
|
144993
|
144995
|
171043
|
182651
|
182653
|
192717
|
201372