Asset::digest () const
{
if (_digest.empty ()) {
- _digest = make_digest (path().string());
+ _digest = make_digest (path().string(), 0);
}
return _digest;
}
+void
+Asset::compute_digest (boost::function<void (float)> progress)
+{
+ if (!_digest.empty ()) {
+ return;
+ }
+
+ _digest = make_digest (path().string(), &progress);
+}
+
bool
Asset::equals (shared_ptr<const Asset> other, EqualityOptions, boost::function<void (NoteType, string)> note) const
{