From 73329896f92df082445ef5a9d69f7c56df933e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 22 Jan 2021 12:35:29 +0100 Subject: [PATCH] ksys/act: Add convenient default for InfoData::getString --- src/KingSystem/ActorSystem/actInfoData.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/KingSystem/ActorSystem/actInfoData.h b/src/KingSystem/ActorSystem/actInfoData.h index c910c673..7295ad10 100644 --- a/src/KingSystem/ActorSystem/actInfoData.h +++ b/src/KingSystem/ActorSystem/actInfoData.h @@ -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 {