// // GJRateLevelLayer::selectRating from 0x1001b1658 to 0x1001b17bc (356 bytes) // // 2 xrefs: // > GJRateLevelLayer::init @ 0x1001b14ac // > GJRateLevelLayer::init @ 0x1001b0f0c // // 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 GJRateLevelLayer::selectRating(GJRateLevelLayer *a1, cocos2d::CCObject *a2) { int v3; // w0 __int64 v4; // x20 __int64 v5; // x21 ButtonSprite *v6; // x22 int m_stars; // w25 const char *v8; // x1 int v9; // w20 ButtonSprite *v10; // x0 int v11; // w1 unsigned int v12; // w8 int v13; // w9 int v14; // w12 int v15; // w11 int v16; // w10 int v17; // w1 if ( a2 ) v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); else v3 = -1; a1->m_stars = v3; if ( (unsigned int)sub_10024A36C(a1->m_starButtons) ) { v4 = 0; do { v5 = sub_10024A388(a1->m_starButtons, v4); v6 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5); m_stars = a1->m_stars; if ( m_stars == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) ) v8 = "GJ_button_01.png"; else v8 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, v8); v4 = (unsigned int)(v4 + 1); } while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_starButtons) ); } v9 = a1->m_stars; 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); v12 = a1->m_stars; if ( (int)v12 >= 2 ) { if ( v12 == 2 ) { v13 = 1; } else if ( v12 == 3 ) { v13 = 2; } else { if ( v12 == 10 ) v14 = 6; else v14 = 0; if ( v12 >= 0xA ) v15 = v14; else v15 = 5; if ( v12 >= 8 ) v16 = v15; else v16 = 4; if ( v12 >= 6 ) v13 = v16; else v13 = 3; } } else { v13 = 0; } if ( v12 == 1 ) v17 = -1; else v17 = v13; GJDifficultySprite::updateDifficultyFrame(a1->m_difficultySprite, v17, Short); }
GD Web Decomp Icon

GD Web Decomp

Raw Source