summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/asset.cc6
-rw-r--r--src/asset.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/asset.cc b/src/asset.cc
index 60d3aab3..052f7328 100644
--- a/src/asset.cc
+++ b/src/asset.cc
@@ -145,3 +145,9 @@ Asset::set_file (boost::filesystem::path file) const
_file = boost::filesystem::absolute (file);
_hash = optional<string> ();
}
+
+void
+Asset::set_hash (string hash)
+{
+ _hash = hash;
+}
diff --git a/src/asset.h b/src/asset.h
index 7adf0090..a67af741 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -79,6 +79,8 @@ public:
/** @return the hash of this asset's file */
std::string hash (boost::function<void (float)> progress = 0) const;
+ void set_hash (std::string hash);
+
protected:
/** The most recent disk file used to read or write this asset; may be empty */