// // UIOptionsLayer::toggleUIGroup from 0x1002b4300 to 0x1002b4412 (274 bytes) // // 2 xrefs: // > UIOptionsLayer::init @ 0x1002b4034 // > UIOptionsLayer::ccTouchBegan @ 0x1002b4e5d // // 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 UIOptionsLayer::toggleUIGroup(UIOptionsLayer *a1, int a2) { const std::string::value_type *v4; // rsi cocos2d::CCLabelBMFont *m_nameLabel; // rdi std::string::pointer data; // rsi std::string v7; // [rsp+8h] [rbp-28h] BYREF if ( a1->m_activeUIGroup == a2 ) return; v7.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v7.__r_.__value_.__s.__data_, "P1 Move"); switch ( a2 ) { case 2: v4 = "P2 Move"; LABEL_8: std::string::assign(&v7, v4); break; case 3: v4 = "P1 Jump"; goto LABEL_8; case 4: v4 = "P2 Jump"; goto LABEL_8; } m_nameLabel = a1->m_nameLabel; if ( m_nameLabel ) { if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 ) data = v7.__r_.__value_.__l.__data_; else data = v7.__r_.__value_.__s.__data_; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))m_nameLabel->setString)(m_nameLabel, data); } a1->m_activeUIGroup = a2; ((void (__fastcall *)(UIOptionsLayer *, __int64, bool))a1->toggleGroup)(a1, 1, a2 == 1); ((void (__fastcall *)(UIOptionsLayer *, __int64, bool))a1->toggleGroup)(a1, 2, a2 == 2); ((void (__fastcall *)(UIOptionsLayer *, __int64, bool))a1->toggleGroup)(a1, 3, a2 == 3); ((void (__fastcall *)(UIOptionsLayer *, __int64, bool))a1->toggleGroup)(a1, 4, a2 == 4); if ( (*(_BYTE *)&v7.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v7.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source