// // MapSelectLayer::ccTouchMoved from 0x1002698e0 to 0x100269add (509 bytes) // // 2 xrefs: // > sub_100269AE0 @ 0x100269aec // > @ 0x1008eb3d0 // // 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::ccTouchMoved(MapSelectLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { __m128 v3; // xmm0 GJBigSprite *m_bigSprite; // r15 __int64 v5; // rax cocos2d::CCDirector *v6; // rsi double v7; // xmm0_8 int v8; // ecx double v9; // xmm0_8 float v10; // xmm0_4 float x; // xmm1_4 float v12; // xmm0_4 float y; // xmm1_4 float v14; // xmm0_4 __int64 v15; // [rsp-68h] [rbp-68h] BYREF cocos2d::CCTouch v16; // [rsp-60h] [rbp-60h] BYREF if ( a1->m_inTouch ) { cocos2d::CCTouch::getLocation(&v16); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v16.m_uIndexInArray, (const cocos2d::CCPoint *)a1); *(double *)v3.i64 = sub_10028CC90(); sub_10028CD00(&v16.m_uID, &v16, &a1->m_lastTouchPos); m_bigSprite = a1->m_bigSprite; v5 = ((__int64 (__fastcall *)(GJBigSprite *, double))m_bigSprite->getPosition)(m_bigSprite, *(double *)v3.i64); sub_10028CCE0(&v16.m_uAutoReleaseCount, v5); v6 = cocos2d::CCDirector::sharedDirector(); *(cocos2d::CCSize *)v3.f32 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v16.m_uIndexInArray); *(double *)v3.i64 = ((double (__fastcall *)(GJBigSprite *, cocos2d::CCDirector *, double))a1->m_bigSprite->getScale)( a1->m_bigSprite, v6, *(double *)v3.i64); _mm_storel_ps( (double *)&v16.m_uAutoReleaseCount, _mm_max_ps( _mm_min_ps((__m128)0LL, (__m128)*(unsigned __int64 *)&v16.m_uAutoReleaseCount), _mm_add_ps( _mm_mul_ps(_mm_moveldup_ps(v3), (__m128)xmmword_100818420), (__m128)*(unsigned __int64 *)&v16.m_uIndexInArray))); v7 = sub_10028CC60(&v15); ((void (__fastcall *)(GJBigSprite *, __int64 *, double))m_bigSprite->setPosition)(m_bigSprite, &v15, v7); GJBigSprite::updateSpriteVisibility(a1->m_bigSprite); ftime((timeb *)&v16.m_uIndexInArray); v8 = LOWORD(v16.m_unknown2) + 1000 * (v16.m_uIndexInArray & 0xFFFFF); v9 = (double)v8 / 1000.0 - a1->m_lastTouchTime; if ( v9 > 0.0 ) { *(double *)&v16.m_nTag = (double)v8 / 1000.0; v10 = 1.0 / (v9 * 60.0); sub_10028CD40(&v16.m_uIndexInArray, &v16.m_uID, v10); sub_10028CC90(); x = a1->m_mapPos.x; v12 = 10.0; if ( x > 10.0 || (v12 = -10.0, x < -10.0) ) a1->m_mapPos.x = v12; y = a1->m_mapPos.y; v14 = 10.0; if ( y > 10.0 || (v14 = -10.0, y < -10.0) ) a1->m_mapPos.y = v14; sub_10028CC90(); a1->m_lastTouchTime = *(double *)&v16.m_nTag; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source