// // SetupSFXPopup::onPlusButton from 0x1004ba710 to 0x1004ba85f (335 bytes) // // 1 xrefs: // > @ 0x10094c2a8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SetupSFXPopup::onPlusButton(SetupSFXPopup *a1, cocos2d::CCObject *a2) { int v3; // eax LevelEditorLayer *v4; // rdi int NextFreeSFXID; // r14d std::__hash_node_base *>::__next_pointer v6; // rdi std::__hash_node_base *> *v7; // r15 std::__hash_node_base *> **v8; // rdi float v9; // xmm0_4 SetupSFXPopup *v10; // rdi int v11; // esi LevelEditorLayer *m_levelEditorLayer; // rdi int NextFreeSFXGroupID; // r14d std::__hash_node_base *>::__next_pointer next; // rdi std::__hash_node_base *> *v15; // r15 std::__hash_node_base *> **value; // rdi SetupReverbPopup *v17; // rax std::unordered_set v18; // [rsp+0h] [rbp-40h] BYREF v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( v3 == 2 ) { v17 = SetupReverbPopup::create((SFXTriggerGameObject *)a1->m_gameObject, a1->m_gameObjects); ((void (__fastcall *)(SetupReverbPopup *))v17->show)(v17); return; } if ( v3 == 1 ) { m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer; memset(&v18, 0, 32); v18.__table_.__p3_.__value_ = 1.0; NextFreeSFXGroupID = LevelEditorLayer::getNextFreeSFXGroupID(m_levelEditorLayer, &v18); next = v18.__table_.__p1_.__value_.__next_; if ( v18.__table_.__p1_.__value_.__next_ ) { do { v15 = next->__next_; operator delete(next); next = v15; } while ( v15 ); } value = v18.__table_.__bucket_list_.__ptr_.__value_; v18.__table_.__bucket_list_.__ptr_.__value_ = nullptr; if ( value ) operator delete(value); v9 = (float)NextFreeSFXGroupID; v10 = a1; v11 = 455; } else { if ( v3 ) return; v4 = GameManager::sharedState()->m_levelEditorLayer; memset(&v18, 0, 32); v18.__table_.__p3_.__value_ = 1.0; NextFreeSFXID = LevelEditorLayer::getNextFreeSFXID(v4, &v18); v6 = v18.__table_.__p1_.__value_.__next_; if ( v18.__table_.__p1_.__value_.__next_ ) { do { v7 = v6->__next_; operator delete(v6); v6 = v7; } while ( v7 ); } v8 = v18.__table_.__bucket_list_.__ptr_.__value_; v18.__table_.__bucket_list_.__ptr_.__value_ = nullptr; if ( v8 ) operator delete(v8); v9 = (float)NextFreeSFXID; v10 = a1; v11 = 416; } SetupTriggerPopup::updateValue(v10, v11, v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source