summaryrefslogtreecommitdiff
path: root/src/asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-12 22:24:12 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-19 22:34:01 +0100
commitc46f6125c482f2a3361cd33d1e1163927f038e9d (patch)
tree8b905cb411c395e617ba2c6d583497e1f4f43dea /src/asset.h
parente3fa86ef35f212b14b593dd36dbff66e845d37e4 (diff)
Report progress with done/total rather than a float.
Diffstat (limited to 'src/asset.h')
-rw-r--r--src/asset.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/asset.h b/src/asset.h
index 29cd69eb..390b6671 100644
--- a/src/asset.h
+++ b/src/asset.h
@@ -128,11 +128,11 @@ public:
/** Calculate the hash of this asset's file, if it has not already been calculated,
* then return it
- * @param progress Function that will be called with a parameter between 0 and 1 to indicate
- * progress in the calculation
+ * @param progress Function that will be called with the number of bytes calculated
+ * and the total number of bytes
* @return the hash
*/
- std::string hash (boost::function<void (float)> progress = {}) const;
+ std::string hash(boost::function<void (int64_t, int64_t)> progress = {}) const;
void set_hash (std::string hash);
void unset_hash();