diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-03-17 23:28:53 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-03-17 23:28:53 +0000 |
commit | e7f1ad318f85d54bee0bd3e18e8a86cb6688622c (patch) | |
tree | eefb23150beb0b3841fd9446be749efd72fbc0cc | |
parent | f4d173b7ee6e99b5f20790a19f87bff358e073d3 (diff) | |
download | netsurf-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.c | 9 |
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 */ |