// // SelectEventLayer::nextPosition from 0x578638 to 0x5786f8 (192 bytes) // // 1 xrefs: // > SelectEventLayer::addToggle @ 0x57f046 // // 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 *SelectEventLayer::nextPosition(cocos2d::CCPoint *__return_ptr retstr, SelectEventLayer *a2) { cocos2d::CCDirector *v4; // r0 int v5; // r7 const cocos2d::CCPoint *v6; // r1 cocos2d::CCSize v8; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCPoint v9; // [sp+Ch] [bp-14h] BYREF cocos2d::CCPoint v10; // [sp+14h] [bp-Ch] BYREF v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v4); cocos2d::CCPoint::CCPoint(&v9, (float)(v8.width * 0.5) - 140.0, (float)(v8.height * 0.5) + 90.0); cocos2d::CCPoint::CCPoint(&v10, (float)(v8.width * 0.5) + 40.0, v9.y); v5 = (a2->m_toggleCount - 1) % 12; if ( v5 > 5 ) v6 = &v10; else v6 = &v9; cocos2d::CCPoint::CCPoint(retstr, v6); retstr->y = retstr->y - (float)(34 * (v5 % 6)); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source