// // MapSelectLayer::update from 0x100268e90 to 0x10026906d (477 bytes) // // 1 xrefs: // > @ 0x1008eb080 // // 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 MapSelectLayer::update(MapSelectLayer *a1, float a2) { GJBigSprite *m_bigSprite; // r14 __int64 v3; // rax GJBigSprite *v4; // r14 GJBigSprite *v5; // r15 __int64 v6; // r13 __m128 v7; // xmm0 cocos2d::CCDirector *v8; // rsi _BYTE v9[8]; // [rsp+0h] [rbp-50h] BYREF _BYTE v10[8]; // [rsp+8h] [rbp-48h] BYREF unsigned __int64 v11; // [rsp+10h] [rbp-40h] BYREF unsigned __int64 v12; // [rsp+18h] [rbp-38h] BYREF float v13; // [rsp+24h] [rbp-2Ch] if ( !a1->m_inTouch ) { if ( a1->m_editMode ) { m_bigSprite = a1->m_bigSprite; v3 = ((__int64 (__fastcall *)(cocos2d::CCLayer *, float))a1->m_editorLayer->m_objectLayer->getPosition)( a1->m_editorLayer->m_objectLayer, a2); ((void (__fastcall *)(GJBigSprite *, __int64))m_bigSprite->setPosition)(m_bigSprite, v3); v4 = a1->m_bigSprite; ((void (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); ((void (__fastcall *)(GJBigSprite *))v4->setScale)(v4); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); } else { v13 = a2 * 60.0; v5 = a1->m_bigSprite; v6 = ((__int64 (__fastcall *)(GJBigSprite *))v5->getPosition)(v5); v7 = (__m128)COERCE_UNSIGNED_INT(a2 * 60.0); sub_10028CD40(v10, &a1->m_mapPos, v13); sub_10028CCE0(&v12, v6); v8 = cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)v7.f32 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v11); *(double *)v7.i64 = ((double (__fastcall *)(GJBigSprite *, cocos2d::CCDirector *, double))a1->m_bigSprite->getScale)( a1->m_bigSprite, v8, *(double *)v7.i64); _mm_storel_ps( (double *)&v12, _mm_max_ps( _mm_min_ps((__m128)0LL, (__m128)v12), _mm_add_ps(_mm_mul_ps(_mm_moveldup_ps(v7), (__m128)xmmword_100818420), (__m128)v11))); *(double *)v7.i64 = sub_10028CC60(v9); ((void (__fastcall *)(GJBigSprite *, _BYTE *, double))v5->setPosition)(v5, v9, *(double *)v7.i64); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); sub_10028CD40(&v11, &a1->m_mapPos, (float)(v13 * -0.050000001) + 1.0); sub_10028CC90(); if ( fabs(a1->m_mapPos.x) <= 0.1 ) a1->m_mapPos.x = 0.0; if ( fabs(a1->m_mapPos.y) <= 0.1 ) a1->m_mapPos.y = 0.0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source