projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a7efc8
)
fixed invalidating artwork info cache for non-existing artwork config file
author
Holger Schemel
<info@artsoft.org>
Thu, 4 Feb 2021 00:03:41 +0000
(
01:03
+0100)
committer
Holger Schemel
<info@artsoft.org>
Thu, 4 Feb 2021 00:03:41 +0000
(
01:03
+0100)
src/libgame/setup.c
patch
|
blob
|
history
diff --git
a/src/libgame/setup.c
b/src/libgame/setup.c
index bfe8d94b2bf0aa5d3f6eb843f73bc376c434700a..e1840b1d375e92491492ed31752ecaaf59c07b48 100644
(file)
--- 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;