// // MoreOptionsLayer::nextPosition from 0x422bc0 to 0x422ca2 (226 bytes) // // 1 xrefs: // > MoreOptionsLayer::addToggle @ 0x422f3c // // 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 *MoreOptionsLayer::nextPosition(cocos2d::CCPoint *__return_ptr retstr, MoreOptionsLayer *a2, int a3) { cocos2d::CCDirector *v6; // r0 int v7; // r0 int v8; // r8 int v9; // r5 const cocos2d::CCPoint *v10; // r1 cocos2d::CCSize v12; // [sp+4h] [bp-20h] BYREF cocos2d::CCPoint v13; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v14; // [sp+14h] [bp-10h] BYREF v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v12, v6); cocos2d::CCPoint::CCPoint(&v13, (float)(v12.width * 0.5) - 160.0, (float)(v12.height * 0.5) + 80.0); cocos2d::CCPoint::CCPoint(&v14, (float)(v12.width * 0.5) + 32.0, v13.y); v7 = MoreOptionsLayer::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)(48 * (int)floorf((float)v9 * 0.5)); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source