From 12e6979b6c175d7b9d8b871cb50bbbe9b545a74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 27 Sep 2020 16:11:56 +0200 Subject: ksys/res: Implement more Cache functions --- src/KingSystem/Utils/StrTreeMap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/KingSystem/Utils/StrTreeMap.h') diff --git a/src/KingSystem/Utils/StrTreeMap.h b/src/KingSystem/Utils/StrTreeMap.h index 62c4dd09..52f72f4d 100644 --- a/src/KingSystem/Utils/StrTreeMap.h +++ b/src/KingSystem/Utils/StrTreeMap.h @@ -3,6 +3,7 @@ #include #include #include +#include namespace ksys::util { @@ -10,7 +11,7 @@ class StrTreeMapKey { public: StrTreeMapKey() = default; StrTreeMapKey(u32 key_hash, const sead::SafeString& key) : mKeyHash(key_hash), mKey(key) {} - explicit StrTreeMapKey(const sead::SafeString& key) + StrTreeMapKey(const sead::SafeString& key) : StrTreeMapKey(sead::HashCRC32::calcStringHash(key.cstr()), key) {} const sead::SafeString& key() const { return mKey; } -- cgit v1.2.3