From 42807160cfb33af9f3cf2fa6b0ba98f232208cdb Mon Sep 17 00:00:00 2001 From: AlexApps99 Date: Mon, 26 Jul 2021 21:58:51 +1200 Subject: Add #ifdef declarations for NON_MATCHING code --- src/KingSystem/ActorSystem/actASSetting.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/KingSystem/ActorSystem/actASSetting.cpp') diff --git a/src/KingSystem/ActorSystem/actASSetting.cpp b/src/KingSystem/ActorSystem/actASSetting.cpp index 2b020cfe..164d9e67 100644 --- a/src/KingSystem/ActorSystem/actASSetting.cpp +++ b/src/KingSystem/ActorSystem/actASSetting.cpp @@ -15,7 +15,8 @@ void ASSetting::init(const sead::SafeString& config_path, sead::Heap* heap) { mHandle.load(config_path, &req); } -// NON_MATCHING: sead::DirectResource to res::ASSetting cast nullptr check; branching for the return +// sead::DirectResource to res::ASSetting cast nullptr check; branching for the return +#ifdef NON_MATCHING res::ASParamParser* ASSetting::getBoneParams(const sead::SafeString& key) const { auto* res = sead::DynamicCast(mHandle.getResource()); if (!res) @@ -27,5 +28,6 @@ res::ASParamParser* ASSetting::getBoneParams(const sead::SafeString& key) const } return nullptr; } +#endif } // namespace ksys::act -- cgit v1.2.3