improved handling of failed tape uploads to score server
[rocksndiamonds.git] / src / libgame / misc.c
index 8bc457216de7448418ad5cebd885728e562b5b60..faf6c011f25a873980f7b42c1c0a0c24a3a858af 100644 (file)
@@ -2786,6 +2786,22 @@ int copyFile(char *filename_from, char *filename_to)
   return 0;
 }
 
+boolean touchFile(char *filename)
+{
+  FILE *file;
+
+  if (!(file = fopen(filename, MODE_WRITE)))
+  {
+    Warn("cannot touch file '%s'", filename);
+
+    return FALSE;
+  }
+
+  fclose(file);
+
+  return TRUE;
+}
+
 
 // ----------------------------------------------------------------------------
 // functions for directory handling