// // MapSelectLayer::update from 0x50f128 to 0x50f254 (300 bytes) // // 0 xrefs: // // 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 MapSelectLayer::update(MapSelectLayer *a1, float a2) { GJBigSprite *m_bigSprite; // r6 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 const cocos2d::CCPoint *v6; // r0 GJBigSprite *v7; // r5 void (__fastcall *setScale)(cocos2d::CCNode *__hidden, float); // r6 int v9; // r0 void (__fastcall *v10)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r11 float v11; // s16 int v12; // r9 cocos2d::CCPoint v13; // r2 int v14; // r2 bool v15; // r3 float v16; // r3 float v17; // s14 bool v18; // cc float v19; // s14 cocos2d::CCPoint v20; // [sp+4h] [bp-20h] BYREF _BYTE v21[8]; // [sp+Ch] [bp-18h] BYREF _BYTE v22[8]; // [sp+14h] [bp-10h] BYREF if ( !a1->m_inTouch ) { m_bigSprite = a1->m_bigSprite; if ( a1->m_editMode ) { setPosition = m_bigSprite->setPosition; v6 = a1->m_editorLayer->m_objectLayer->getPosition(a1->m_editorLayer->m_objectLayer); setPosition(m_bigSprite, v6); v7 = a1->m_bigSprite; setScale = v7->setScale; v9 = ((int (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); ((void (__fastcall *)(GJBigSprite *, int))setScale)(v7, v9); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); } else { v10 = m_bigSprite->setPosition; v11 = a2 * 60.0; v12 = (int)m_bigSprite->getPosition(a1->m_bigSprite); cocos2d::CCPoint::operator*(v22, &a1->m_mapPos, a2 * 60.0); cocos2d::CCPoint::operator+(v21, v12, v22); LODWORD(v13.x) = v21; MapSelectLayer::getConstrainedMapPos(&v20, a1, v13); v10(m_bigSprite, &v20); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); cocos2d::CCPoint::operator*(v22, &a1->m_mapPos, 1.0 - (float)(v11 * 0.05)); cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_mapPos, COERCE_FLOAT(v22), v14, v15); v17 = fabsf(a1->m_mapPos.x); v18 = v17 > 0.1; if ( v17 <= 0.1 ) v16 = 0.0; v19 = fabsf(a1->m_mapPos.y); if ( !v18 ) a1->m_mapPos.x = v16; if ( v19 <= 0.1 ) a1->m_mapPos.y = 0.0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source