ksys/act: Add convenient default for InfoData::getString

This commit is contained in:
Léo Lam 2021-01-22 12:35:29 +01:00
parent bb3f05e209
commit 73329896f9
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 5 additions and 3 deletions

View File

@ -127,7 +127,8 @@ public:
bool getVariationMatAnim(const char* actor, const char** anim, f32* frame) const;
bool getName(al::ByamlIter* iter, const char** name, s32 idx) const;
const char* getString(const char* actor, const char* key, const sead::SafeString& default_,
const char* getString(const char* actor, const char* key,
const sead::SafeString& default_ = sead::SafeString::cEmptyString,
bool x = true) const;
s32 getInt(const char* actor, const char* key, s32 default_ = 0, bool x = true) const;
f32 getFloat(const char* actor, const char* key, f32 default_ = 0, bool x = true) const;
@ -139,8 +140,9 @@ public:
bool x = true);
static bool getBoolByKey(const al::ByamlIter& iter, const char* key, bool default_ = false,
bool x = true);
static const char* getStringByKey(const al::ByamlIter& iter, const char* key,
const sead::SafeString& default_);
static const char*
getStringByKey(const al::ByamlIter& iter, const char* key,
const sead::SafeString& default_ = sead::SafeString::cEmptyString);
private:
struct DebugEntry {