// // GJBaseGameLayer::positionForShaderTarget from 0x1001f1ac4 to 0x1001f1b8c (200 bytes) // // 7 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x1001f135c // > GJBaseGameLayer::updateShaderLayer @ 0x1001f1390 // > GJBaseGameLayer::updateShaderLayer @ 0x1001f13bc // > GJBaseGameLayer::updateShaderLayer @ 0x1001f13dc // > GJBaseGameLayer::updateShaderLayer @ 0x1001f1400 // > GJBaseGameLayer::updateShaderLayer @ 0x1001f1424 // > GJBaseGameLayer::updateShaderLayer @ 0x1001f144c // // 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 GJBaseGameLayer::positionForShaderTarget(GJBaseGameLayer *a1, int a2) { _QWORD *v2; // x8 _QWORD *v5; // x19 PlayerObject *m_player2; // x0 double *v7; // x0 double v8; // d0 GameObject *MainObject; // x0 __int64 v11; // [xsp+8h] [xbp-28h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v5 = v2; sub_1000229B0(v2); if ( a2 == -1 ) goto LABEL_5; if ( a2 == -2 ) { if ( a1->m_gameState.m_isDualMode ) { m_player2 = a1->m_player2; LABEL_6: v7 = (double *)((__int64 (__fastcall *)(PlayerObject *))m_player2->getPosition)(m_player2); v8 = sub_1000229D0(v5, v7); goto LABEL_11; } LABEL_5: m_player2 = a1->m_player1; goto LABEL_6; } MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2); if ( MainObject ) ((void (__fastcall *)(__int64 *__return_ptr))MainObject->getRealPosition)(&v11); else sub_1000229B8(&v11, &qword_10086C9A0); v8 = sub_1000229D0(v5, (double *)&v11); LABEL_11: result.x = *(float *)&v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source