// // RateDemonLayer::selectRating from 0x100426714 to 0x100426810 (252 bytes) // // 2 xrefs: // > RateDemonLayer::init @ 0x1004266ec // > RateDemonLayer::init @ 0x100426504 // // 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 RateDemonLayer::selectRating(RateDemonLayer *a1, cocos2d::CCObject *a2) { int v3; // w0 unsigned int v4; // w20 __int64 v5; // x21 __int64 v6; // x22 int m_demonRate; // w25 void *v8; // x1 int v9; // w20 ButtonSprite *v10; // x0 int v11; // w1 if ( a2 ) v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); else v3 = -1; a1->m_demonRate = v3; if ( (unsigned int)sub_10024A36C((__int64)a1->m_demons) ) { v4 = 0; do { v5 = sub_10024A388((__int64)a1->m_demons, v4); v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5); m_demonRate = a1->m_demonRate; if ( m_demonRate == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) ) v8 = &unk_100647897; else v8 = &unk_100647894; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v6 + 944LL))(v6, v8); ++v4; } while ( v4 < (unsigned int)sub_10024A36C((__int64)a1->m_demons) ); } v9 = a1->m_demonRate; v10 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_submitButton->getNormalImage)(a1->m_submitButton); if ( v9 == -1 ) v11 = 10921638; else v11 = 0xFFFFFF; ButtonSprite::setColor(v10, (cocos2d::ccColor3B)v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source