// // UILayer::updateCheckState from 0x5c5f44 to 0x5c60f8 (436 bytes) // // 3 xrefs: // > UILayer::init @ 0x5c8268 // > UIPOptionsLayer::onClose @ 0x8c3c34 // > @ 0x755b8 // // 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 UILayer::updateCheckState(UILayer *a1) { cocos2d::CCDirector *v2; // x0 GameManager *v3; // x0 long double v4; // q0 unsigned int v5; // w19 unsigned int v6; // w23 const void *v7; // x0 const void *v8; // x21 void *v9; // x0 void *v10; // x0 cocos2d::CCDirector *v11; // x0 float v12; // s0 float v13; // s0 float v14; // s1 float v15; // [xsp+70h] [xbp+70h] cocos2d::CCPoint v16; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v17; // [xsp+80h] [xbp+80h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2); v3 = GameManager::sharedState(); cocos2d::CCPoint::CCPoint(&v16, &v3->m_practicePos); *(float *)&v4 = v16.x; if ( v16.x == 0.0 ) { *(float *)&v4 = v16.y; if ( v16.y == 0.0 ) { v11 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getScreenBottom(v11); cocos2d::CCPoint::CCPoint(&v17, v15 * 0.5, v12 + 40.0); cocos2d::CCPoint::operator=(&v16, v13, v14); } } v5 = 0; ((void (__fastcall *)(cocos2d::CCMenu *, cocos2d::CCPoint *, long double))a1->m_checkpointMenu->setPosition)( a1->m_checkpointMenu, &v16, v4); v6 = (unsigned int)(float)(GameManager::sharedState()->m_practiceOpacity * 255.0); if ( (unsigned int)cocos2d::CCArray::count(a1->m_controllerButtons) ) { do { v7 = (const void *)cocos2d::CCArray::objectAtIndex(a1->m_controllerButtons, v5); v8 = v7; if ( v7 ) { v9 = _dynamic_cast( v7, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite, 0); if ( v9 ) { (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v9 + 896LL))(v9, v6); } else { v10 = _dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont, 0); if ( v10 ) { ++v5; (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v10 + 1008LL))(v10, v6); continue; } } } ++v5; } while ( v5 < (unsigned int)cocos2d::CCArray::count(a1->m_controllerButtons) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source