summaryrefslogtreecommitdiff
path: root/src/KingSystem/ActorSystem
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-04-11 14:31:55 +0200
committerLéo Lam <leo@leolam.fr>2021-04-11 15:54:21 +0200
commit73637128659db7df2f332ea3d3285d07abf25f4f (patch)
treed86c4f4d9cfe325f04e466f6e1850ec7d81571fe /src/KingSystem/ActorSystem
parent225ee27b41ae3e74cf0242108c6fc4df291c1987 (diff)
ksys/res: Finish implementing ASExtensions
Diffstat (limited to 'src/KingSystem/ActorSystem')
-rw-r--r--src/KingSystem/ActorSystem/actASSetting.cpp4
-rw-r--r--src/KingSystem/ActorSystem/actASSetting.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/KingSystem/ActorSystem/actASSetting.cpp b/src/KingSystem/ActorSystem/actASSetting.cpp
index 0202a85c..7c3d82e2 100644
--- a/src/KingSystem/ActorSystem/actASSetting.cpp
+++ b/src/KingSystem/ActorSystem/actASSetting.cpp
@@ -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;
}
diff --git a/src/KingSystem/ActorSystem/actASSetting.h b/src/KingSystem/ActorSystem/actASSetting.h
index 289d68dd..399ad201 100644
--- a/src/KingSystem/ActorSystem/actASSetting.h
+++ b/src/KingSystem/ActorSystem/actASSetting.h
@@ -16,7 +16,7 @@ class ASSetting {
public:
void init(const sead::SafeString& config_path);
- const res::ASSetting::BoneParams* getBoneParams(const sead::SafeString& key) const;
+ res::ASParamParser* getBoneParams(const sead::SafeString& key) const;
private:
res::Handle mHandle;