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:
Vincent Sanders 2015-03-17 23:28:53 +00:00
parent f4d173b7ee
commit e7f1ad318f

View File

@ -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 */