uking/ui: Fix another minor accuracy issue (add inline function)

Both versions match perfectly, but there is a wrapper function for
getSameGroupActorName in the Wii U version.
This commit is contained in:
Léo Lam 2021-01-10 20:47:15 +01:00
parent dd653e871f
commit 2ae06d6b39
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 10 additions and 5 deletions

View File

@ -126,6 +126,15 @@ struct PouchConstants {
PouchConstants sValues;
void getSameGroupActorName(sead::SafeString* group, const sead::SafeString& item,
al::ByamlIter* iter) {
if (iter) {
ksys::act::getSameGroupActorName(group, item, iter);
} else {
ksys::act::getSameGroupActorName(group, item);
}
}
} // namespace
PauseMenuDataMgr::PauseMenuDataMgr() {
@ -218,11 +227,7 @@ void PauseMenuDataMgr::initForNewSave() {
PouchItemType PauseMenuDataMgr::getType(const sead::SafeString& item, al::ByamlIter* iter) {
sead::SafeString group;
if (iter) {
ksys::act::getSameGroupActorName(&group, item, iter);
} else {
ksys::act::getSameGroupActorName(&group, item);
}
getSameGroupActorName(&group, item, iter);
al::ByamlIter actor_iter;
if (iter && iter->isValid() && group == item) {