summaryrefslogtreecommitdiff
path: root/src/KingSystem/Utils/StrTreeMap.h
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-09-27 16:11:56 +0200
committerLéo Lam <leo@leolam.fr>2020-10-04 02:00:38 +0200
commit12e6979b6c175d7b9d8b871cb50bbbe9b545a74e (patch)
tree23c778e41c0c96eeabaa5e60341ee2f127cfc59f /src/KingSystem/Utils/StrTreeMap.h
parentf8db98617c3ccdac22276a2f0e7e9c033b4b62f2 (diff)
ksys/res: Implement more Cache functions
Diffstat (limited to 'src/KingSystem/Utils/StrTreeMap.h')
-rw-r--r--src/KingSystem/Utils/StrTreeMap.h3
1 files changed, 2 insertions, 1 deletions
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 <basis/seadTypes.h>
#include <codec/seadHashCRC32.h>
#include <container/seadTreeMap.h>
+#include <prim/seadDelegate.h>
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; }