// // UILayer::updateCheckState from 0x30cb28 to 0x30cc46 (286 bytes) // // 2 xrefs: // > UILayer::init @ 0x30e36c // > UIPOptionsLayer::onClose @ 0x4a9a50 // // 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; // r0 GameManager *v3; // r0 float v4; // s16 cocos2d::CCDirector *v5; // r0 float v6; // r0 unsigned int v7; // r4 const void *v8; // r0 const void *v9; // r8 void *v10; // r0 void (*v11)(void); // r3 void *v12; // r0 cocos2d::CCSize v13; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCPoint v14; // [sp+Ch] [bp-14h] BYREF cocos2d::CCPoint v15; // [sp+14h] [bp-Ch] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v13, v2); v3 = GameManager::sharedState(); cocos2d::CCPoint::CCPoint(&v14, &v3->m_practicePos); if ( v14.x == 0.0 && v14.y == 0.0 ) { v4 = v13.width * 0.5; v5 = cocos2d::CCDirector::sharedDirector(); v6 = COERCE_FLOAT(cocos2d::CCDirector::getScreenBottom(v5)); cocos2d::CCPoint::CCPoint(&v15, v4, v6 + 40.0); cocos2d::CCPoint::operator=(&v14, &v15); } v7 = 0; a1->m_checkpointMenu->setPosition(a1->m_checkpointMenu, &v14); GameManager::sharedState(); while ( v7 < cocos2d::CCArray::count(a1->m_controllerButtons) ) { v8 = (const void *)cocos2d::CCArray::objectAtIndex(a1->m_controllerButtons, v7); v9 = v8; if ( !v8 ) goto LABEL_12; v10 = _dynamic_cast( v8, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCSprite, 0); if ( v10 ) { v11 = *(void (**)(void))(*(_DWORD *)v10 + 448); } else { v12 = _dynamic_cast( v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCLabelBMFont, 0); if ( !v12 ) goto LABEL_12; v11 = *(void (**)(void))(*(_DWORD *)v12 + 504); } v11(); LABEL_12: ++v7; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source