summaryrefslogtreecommitdiff
path: root/riscos/save.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2007-07-05 04:29:09 +0000
committerJames Bursa <james@netsurf-browser.org>2007-07-05 04:29:09 +0000
commitdecb20da5216b4992c0b783b9a11b5811a8950fb (patch)
tree44001d0b031c83df70626e6cc5cbe8605b87e31c /riscos/save.c
parent1177df7388a7f6706d5c03816b10cdfdd2892e75 (diff)
downloadnetsurf-decb20da5216b4992c0b783b9a11b5811a8950fb.tar.gz
netsurf-decb20da5216b4992c0b783b9a11b5811a8950fb.tar.bz2
Add URL file (with the original URL) and Inventory file (listing URLs of objects) to Full Saves.
svn path=/trunk/netsurf/; revision=3383
Diffstat (limited to 'riscos/save.c')
-rw-r--r--riscos/save.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/riscos/save.c b/riscos/save.c
index d24231ff8..dab5562ae 100644
--- a/riscos/save.c
+++ b/riscos/save.c
@@ -2,7 +2,7 @@
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
- * Copyright 2004 James Bursa <bursa@users.sourceforge.net>
+ * Copyright 2004-2007 James Bursa <bursa@users.sourceforge.net>
* Copyright 2005 Adrian Lees <adrianl@users.sourceforge.net>
*/
@@ -799,6 +799,11 @@ bool ro_gui_save_complete(struct content *c, char *path)
/* restore sprite name in case the save fails and we need to try again */
memcpy(sprite->name, name, 12);
+ /* save URL file with original URL */
+ snprintf(buf, sizeof buf, "%s.URL", path);
+ if (!ro_gui_save_link(c, LINK_ANT, buf))
+ return false;
+
return save_complete(c, path);
}