From: Holger Schemel Date: Thu, 4 Feb 2021 00:03:41 +0000 (+0100) Subject: fixed invalidating artwork info cache for non-existing artwork config file X-Git-Tag: 4.2.3.0~25 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=869fe83e41f2fa6459b33d15816c730874326f08;p=rocksndiamonds.git fixed invalidating artwork info cache for non-existing artwork config file --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index bfe8d94b..e1840b1d 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -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;