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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user