aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Asset.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-14 17:01:10 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-14 17:01:10 +0100
commit213f947d0907858cace470736c15f87caa934591 (patch)
tree2d15878761eefb84e5ccdfa75a91646d9fab4aa2 /src/crepe/api/Asset.cpp
parent431b0bd7c6c502b42bb5be5488371d8c475e7024 (diff)
fix resource manager
Diffstat (limited to 'src/crepe/api/Asset.cpp')
-rw-r--r--src/crepe/api/Asset.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crepe/api/Asset.cpp b/src/crepe/api/Asset.cpp
index 8692c6c..1887814 100644
--- a/src/crepe/api/Asset.cpp
+++ b/src/crepe/api/Asset.cpp
@@ -48,3 +48,7 @@ string Asset::whereami() const noexcept {
return path;
}
+size_t std::hash<const Asset>::operator()(const Asset & asset) const noexcept {
+ return std::hash<string>{}(asset.get_path());
+};
+