fixed invalidating artwork info cache for non-existing artwork config file
authorHolger Schemel <info@artsoft.org>
Thu, 4 Feb 2021 00:03:41 +0000 (01:03 +0100)
committerHolger Schemel <info@artsoft.org>
Thu, 4 Feb 2021 00:03:41 +0000 (01:03 +0100)
src/libgame/setup.c

index bfe8d94b2bf0aa5d3f6eb843f73bc376c434700a..e1840b1d375e92491492ed31752ecaaf59c07b48 100644 (file)
@@ -3026,6 +3026,9 @@ static boolean modifiedFileTimestamp(char *filename, char *timestamp_string)
   if (timestamp_string == NULL)
     return TRUE;
 
+  if (!fileExists(filename))                   // file does not exist
+    return (atoi(timestamp_string) != 0);
+
   if (stat(filename, &file_status) != 0)       // cannot stat file
     return TRUE;