// // GJOptionsLayer::nextPosition from 0x4ab00c to 0x4ab0ee (226 bytes) // // 3 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x4b4382 // > GameOptionsLayer::setupOptions @ 0x4b4f14 // > GameOptionsLayer::setupOptions @ 0x4b5068 // // 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 *GJOptionsLayer::nextPosition(cocos2d::CCPoint *__return_ptr retstr, GJOptionsLayer *a2, int a3) { cocos2d::CCDirector *v6; // r0 int v7; // r0 int v8; // r9 int v9; // r6 const cocos2d::CCPoint *v10; // r1 cocos2d::CCSize v12; // [sp+4h] [bp-8h] BYREF cocos2d::CCPoint v13; // [sp+Ch] [bp+0h] BYREF cocos2d::CCPoint v14; // [sp+14h] [bp+8h] BYREF v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v12, v6); cocos2d::CCPoint::CCPoint( &v13, (float)(v12.width * 0.5) - 160.0, (float)((float)(v12.height * 0.5) + 80.0) + a2->m_offset); cocos2d::CCPoint::CCPoint(&v14, (float)(v12.width * 0.5) + 32.0, v13.y); v7 = GJOptionsLayer::countForPage(a2, a3); v8 = v7 + 1; v9 = v7; if ( ((v7 + 1) & 1) != 0 ) v10 = &v13; else v10 = &v14; cocos2d::CCPoint::CCPoint(retstr, v10); if ( v8 > 2 ) retstr->y = retstr->y - (float)((float)(int)floorf((float)v9 * 0.5) * a2->m_gap); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source