Fixed bug #657533: User save directory not created
This commit is contained in:
parent
90bd1db22e
commit
7952c0ed95
2 changed files with 4 additions and 1 deletions
|
@ -1009,6 +1009,7 @@
|
|||
<LI>Added smooth scrolling for messages (from Jimmy Salmon).
|
||||
<LI>Fixed bug #657167: Crash on human campaign level 2 (from Jimmy Salmon).
|
||||
<LI>Added load/save of config options (from Jimmy Salmon).
|
||||
<LI>Fixed bug #657533: User save directory not created (from Jimmy Salmon).
|
||||
<LI>+++
|
||||
</UL>
|
||||
</UL>
|
||||
|
|
|
@ -826,7 +826,9 @@ global void SavePreferences(void)
|
|||
#ifdef USE_WIN32
|
||||
strcpy(buf,"preferences1.ccl");
|
||||
#else
|
||||
sprintf(buf,"%s/%s/preferences1.ccl",getenv("HOME"),FREECRAFT_HOME_PATH);
|
||||
sprintf(buf,"%s/%s",getenv("HOME"),FREECRAFT_HOME_PATH);
|
||||
mkdir(buf,0777);
|
||||
strcat(buf,"/preferences1.ccl");
|
||||
#endif
|
||||
|
||||
fd=fopen(buf,"w");
|
||||
|
|
Loading…
Add table
Reference in a new issue