Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarAssetPath.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-24 22:49:47 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-24 22:49:47 +1000
commit7eb010d4a1c6a90d5040b3ec2e7d189fb387b9b2 (patch)
tree44445bce5cee5387511ac0045072539f5a928294 /source/core/StarAssetPath.cpp
parentaa08eaac993a309d3aebc2cd4321513a1e413254 (diff)
Pretty much working now
Diffstat (limited to 'source/core/StarAssetPath.cpp')
-rw-r--r--source/core/StarAssetPath.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/core/StarAssetPath.cpp b/source/core/StarAssetPath.cpp
index eb1cd4d..b49f24d 100644
--- a/source/core/StarAssetPath.cpp
+++ b/source/core/StarAssetPath.cpp
@@ -66,7 +66,7 @@ AssetPath AssetPath::split(String const& path) {
++i;
}
- if (!directives.empty());
+ if (!directives.empty())
components.directives.append(move(directives));
}
@@ -178,4 +178,8 @@ std::ostream& operator<<(std::ostream& os, AssetPath const& rhs) {
return os;
}
+size_t hash<AssetPath>::operator()(AssetPath const& s) const {
+ return hashOf(s.basePath, s.subPath, s.directives);
+}
+
}