// // MapSelectLayer::getConstrainedMapPos from 0x97eb24 to 0x97ec44 (288 bytes) // // 3 xrefs: // > MapSelectLayer::update @ 0x97fd28 // > MapSelectLayer::ccTouchMoved @ 0x97ff34 // > @ 0xbc520 // // 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 // cocos2d::CCPoint MapSelectLayer::getConstrainedMapPos(MapSelectLayer *a1, cocos2d::CCPoint a2) { cocos2d::CCPoint *v2; // x1 cocos2d::CCPoint *v3; // x8 cocos2d::CCPoint *v4; // x19 cocos2d::CCPoint *v6; // x21 cocos2d::CCDirector *v7; // x0 float v8; // s0 float x; // s2 float v10; // s1 float v11; // s0 float v12; // s3 float y; // s1 float v16; // s2 float v17; // [xsp+30h] [xbp+30h] float v18; // [xsp+34h] [xbp+34h] cocos2d::CCSize WinSize; // 0:kr00_8.8 cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = v2; v6 = v3; v7 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v7); v8 = ((float (__fastcall *)(GJBigSprite *, float, float))a1->m_bigSprite->getScale)( a1->m_bigSprite, WinSize.width, WinSize.height); x = v4->x; v10 = v17 + (float)(v8 * -3600.0); v11 = v18 + (float)(v8 * -1500.0); v12 = 0.0; if ( v4->x <= 0.0 ) v12 = v4->x; if ( v12 <= v10 ) { v16 = v10; y = v4->y; v4->x = v16; if ( y > 0.0 ) goto LABEL_7; } else { if ( x > 0.0 ) x = 0.0; y = v4->y; v4->x = x; if ( y > 0.0 ) { LABEL_7: if ( v11 < 0.0 ) goto LABEL_8; LABEL_13: y = v11; goto LABEL_10; } } if ( y <= v11 ) goto LABEL_13; LABEL_8: if ( y > 0.0 ) y = 0.0; LABEL_10: v4->y = y; cocos2d::CCPoint::CCPoint(v6, v4); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source