Add /var/tmp as possible location for temporary files. Don't try /tmp and /var/tmp at all on MS Windows (Cygwin excepted)
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2824 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
Changes towards version 0.7:
|
Changes towards version 0.7:
|
||||||
|
- Add /var/tmp as possible location for temporary files. Don't try
|
||||||
|
/tmp and /var/tmp at all on MS Windows (Cygwin excepted) - SvdB
|
||||||
- Added fullscreen/windowed toggle key F11 - Mika
|
- Added fullscreen/windowed toggle key F11 - Mika
|
||||||
- Allow building without ogg vorbis support (bug #852) - SvdB
|
- Allow building without ogg vorbis support (bug #852) - SvdB
|
||||||
- Reworked SuperMelee fleet loading (fixes bug #823) - SvdB
|
- Reworked SuperMelee fleet loading (fixes bug #823) - SvdB
|
||||||
|
|||||||
@@ -97,7 +97,10 @@ getTempDir (char *buf, size_t buflen) {
|
|||||||
|
|
||||||
if (tryTempDir (buf, buflen, getenv("TMP")) &&
|
if (tryTempDir (buf, buflen, getenv("TMP")) &&
|
||||||
tryTempDir (buf, buflen, getenv("TEMP")) &&
|
tryTempDir (buf, buflen, getenv("TEMP")) &&
|
||||||
|
#if !defined(WIN32) || defined (__CYGWIN__)
|
||||||
tryTempDir (buf, buflen, "/tmp/") &&
|
tryTempDir (buf, buflen, "/tmp/") &&
|
||||||
|
tryTempDir (buf, buflen, "/var/tmp/") &&
|
||||||
|
#endif
|
||||||
tryTempDir (buf, buflen, getcwd (cwd, sizeof cwd)))
|
tryTempDir (buf, buflen, getcwd (cwd, sizeof cwd)))
|
||||||
{
|
{
|
||||||
log_add (log_Fatal, "Fatal Error: Cannot find a suitable location "
|
log_add (log_Fatal, "Fatal Error: Cannot find a suitable location "
|
||||||
|
|||||||
Reference in New Issue
Block a user