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:
Meep-Eep
2007-07-28 16:41:56 +00:00
parent ca29fa8443
commit c82e1fa430
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -1,4 +1,6 @@
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
- Allow building without ogg vorbis support (bug #852) - SvdB
- Reworked SuperMelee fleet loading (fixes bug #823) - SvdB
+3
View File
@@ -97,7 +97,10 @@ getTempDir (char *buf, size_t buflen) {
if (tryTempDir (buf, buflen, getenv("TMP")) &&
tryTempDir (buf, buflen, getenv("TEMP")) &&
#if !defined(WIN32) || defined (__CYGWIN__)
tryTempDir (buf, buflen, "/tmp/") &&
tryTempDir (buf, buflen, "/var/tmp/") &&
#endif
tryTempDir (buf, buflen, getcwd (cwd, sizeof cwd)))
{
log_add (log_Fatal, "Fatal Error: Cannot find a suitable location "