summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-17 23:28:53 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-17 23:28:53 +0000
commite7f1ad318f85d54bee0bd3e18e8a86cb6688622c (patch)
treeeefb23150beb0b3841fd9446be749efd72fbc0cc
parentf4d173b7ee6e99b5f20790a19f87bff358e073d3 (diff)
downloadnetsurf-e7f1ad318f85d54bee0bd3e18e8a86cb6688622c.tar.gz
netsurf-e7f1ad318f85d54bee0bd3e18e8a86cb6688622c.tar.bz2
Create an empty !RunImage file in RISC OS page save apps
RISC OS apps take their creation date from the !RunImage apparently and loose the data if the application directory gets copied without one. Fixes #1970
-rw-r--r--riscos/save.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/riscos/save.c b/riscos/save.c
index 7090a911d..69a8fe1fc 100644
--- a/riscos/save.c
+++ b/riscos/save.c
@@ -1069,6 +1069,15 @@ bool ro_gui_save_complete(hlcache_handle *h, char *path)
return false;
}
+ /* create an empty !Runimage so the date gets correctly set */
+ snprintf(buf, sizeof buf, "%s.!RunImage", path);
+ fp = fopen(buf, "w");
+ if (!fp) {
+ LOG(("Creating !RunImage failed: errno = %i", errno));
+ } else {
+ fclose(fp);
+ }
+
/* Make sure the sprite name matches the directory name, because
the user may have renamed the directory since we created the
thumbnail sprite */