ksys/res: Finish implementing ASExtensions

This commit is contained in:
Léo Lam
2021-04-11 14:31:55 +02:00
parent 225ee27b41
commit 7363712865
8 changed files with 120 additions and 15 deletions
+2 -2
View File
@@ -16,12 +16,12 @@ void ASSetting::init(const sead::SafeString& config_path) {
}
// NON_MATCHING: sead::DirectResource to res::ASSetting cast nullptr check; branching for the return
const res::ASSetting::BoneParams* ASSetting::getBoneParams(const sead::SafeString& key) const {
res::ASParamParser* ASSetting::getBoneParams(const sead::SafeString& key) const {
auto* res = sead::DynamicCast<res::ASSetting>(mHandle.getResource());
if (!res)
return nullptr;
for (const auto& bones : res->getBlenderBones()) {
for (auto& bones : res->getBlenderBones()) {
if (key == bones.mKeyName.ref())
return &bones.mBoneParams;
}