From 213f947d0907858cace470736c15f87caa934591 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 14 Nov 2024 17:01:10 +0100 Subject: fix resource manager --- src/crepe/api/Asset.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/crepe/api/Asset.cpp') 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::operator()(const Asset & asset) const noexcept { + return std::hash{}(asset.get_path()); +}; + -- cgit v1.2.3