mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-18 15:34:31 +03:00
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
This commit is contained in:
parent
f4d173b7ee
commit
e7f1ad318f
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user