mirror of
https://github.com/zeldaret/botw
synced 2026-07-31 07:56:30 -04:00
ksys/res: Implement more Cache functions
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user