// // GJOptionsLayer::nextPosition from 0x1002d3914 to 0x1002d3a08 (244 bytes) // // 3 xrefs: // > GJOptionsLayer::addToggleInternal @ 0x1002d3608 // > GameOptionsLayer::setupOptions @ 0x1002e185c // > GameOptionsLayer::setupOptions @ 0x1002e19f8 // // 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 __fastcall GJOptionsLayer::nextPosition(GJOptionsLayer *a1, int a2) { __int64 v2; // x8 __int64 v5; // x19 cocos2d::CCDirector *v6; // x0 __n128 v7; // q0 __n128 v8; // q1 __n128 v9; // q0 __n128 v10; // q1 signed int v11; // w21 __int64 *v12; // x1 int v15; // [xsp+8h] [xbp-58h] BYREF _DWORD v16[2]; // [xsp+10h] [xbp-50h] BYREF float v17; // [xsp+18h] [xbp-48h] float v18; // [xsp+1Ch] [xbp-44h] cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v5 = v2; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); v7.n128_f32[0] = (float)(v17 * 0.5) + -160.0; v8.n128_f32[0] = a1->m_offset + (float)((float)(v18 * 0.5) + 80.0); sub_100022980(v7, v8, v16); v9.n128_f32[0] = (float)(v17 * 0.5) + 32.0; v10.n128_u64[0] = v16[1] | 0x4200000000000000LL; sub_100022980(v9, v10, &v15); v11 = GJOptionsLayer::countForPage(a1, a2); if ( (v11 & 1) != 0 ) v12 = (__int64 *)&v15; else v12 = (__int64 *)v16; result.x = sub_1000229B8((__int64 *)v5, v12); if ( v11 >= 2 ) { result.y = a1->m_gap; result.x = *(float *)(v5 + 4) - (float)((float)(int)floorf(vcvts_n_f32_u32(v11, 1u)) * result.y); *(float *)(v5 + 4) = result.x; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source