From 7eb010d4a1c6a90d5040b3ec2e7d189fb387b9b2 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 24 Jun 2023 22:49:47 +1000 Subject: Pretty much working now --- source/core/StarAssetPath.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source/core/StarAssetPath.cpp') 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::operator()(AssetPath const& s) const { + return hashOf(s.basePath, s.subPath, s.directives); +} + } -- cgit v1.2.3