Changed %APPDATA% fallback to ./userdata instead of ../userdata, as

we don't chdir() to the content dir anymore.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1870 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-09-07 14:51:19 +00:00
parent 4752be8186
commit 3c80d3df5e
2 changed files with 6 additions and 4 deletions
+2
View File
@@ -1,4 +1,6 @@
Changes towards version 0.5:
- %APPDATA% fallback no longer to "../userdata", but to "./userdata",
as we don't chdir() to the content dir anymore. - SvdB
- Commander Hayes flickering lights animation now properly reenabled
when applicable (bug #777) - Alex
- Refactored setupmenu code to use generic widgets - Michael
+4 -4
View File
@@ -282,11 +282,11 @@ expandPath (char *dest, size_t len, const char *src, int what)
break;
}
// fallback to "../userdata"
// fallback to "./userdata"
#define APPDATA_FALLBACK_STRING ".\\userdata"
fprintf(stderr, "Warning: %%USERPROFILE%% is not set. "
"Falling back to \"..\\userdata\" for %%APPDATA%%"
"\n");
#define APPDATA_FALLBACK_STRING "..\\userdata"
"Falling back to \"%s\" for %%APPDATA%%\n",
APPDATA_FALLBACK_STRING);
CHECKLEN (buf, sizeof (APPDATA_FALLBACK_STRING) - 1);
strcpy (bufptr, APPDATA_FALLBACK_STRING);
bufptr += sizeof (APPDATA_FALLBACK_STRING) - 1;