// // SetupGradientPopup::onPlusButton from 0x1005f31c0 to 0x1005f3266 (166 bytes) // // 1 xrefs: // > @ 0x10097b280 // // 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 SetupGradientPopup::onPlusButton(SetupGradientPopup *a1, cocos2d::CCObject *a2) { LevelEditorLayer *m_levelEditorLayer; // rdi int NextFreeGradientID; // r14d std::__hash_node_base *>::__next_pointer next; // rdi std::__hash_node_base *> *v6; // r15 std::__hash_node_base *> **value; // rdi std::unordered_set v8; // [rsp+0h] [rbp-40h] BYREF if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 209 ) { m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer; memset(&v8, 0, 32); v8.__table_.__p3_.__value_ = 1.0; NextFreeGradientID = LevelEditorLayer::getNextFreeGradientID(m_levelEditorLayer, &v8); next = v8.__table_.__p1_.__value_.__next_; if ( v8.__table_.__p1_.__value_.__next_ ) { do { v6 = next->__next_; operator delete(next); next = v6; } while ( v6 ); } value = v8.__table_.__bucket_list_.__ptr_.__value_; v8.__table_.__bucket_list_.__ptr_.__value_ = nullptr; if ( value ) operator delete(value); SetupTriggerPopup::updateValue(a1, 209, (float)NextFreeGradientID); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source