summaryrefslogtreecommitdiff
path: root/src/asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-06 01:01:04 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-06 01:01:04 +0100
commit53b444191fddd72416647ec9d24aff1e317a1824 (patch)
treed2f2ec726c1df87ba399f4b1ce1afcf4ad278fa6 /src/asset.cc
parentbe24bd183525f300c7699dd6b4c058a1e00cc5d7 (diff)
Add Asset::rename_file().
Diffstat (limited to 'src/asset.cc')
-rw-r--r--src/asset.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/asset.cc b/src/asset.cc
index c164a26b..cd56c3ea 100644
--- a/src/asset.cc
+++ b/src/asset.cc
@@ -163,6 +163,13 @@ Asset::set_file (path file) const
void
+Asset::rename_file(path file)
+{
+ _file = absolute(file);
+}
+
+
+void
Asset::set_hash (string hash)
{
_hash = hash;