// // GJBaseGameLayer::positionForShaderTarget from 0x4722c0 to 0x47233c (124 bytes) // // 7 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x472528 // > GJBaseGameLayer::updateShaderLayer @ 0x472546 // > GJBaseGameLayer::updateShaderLayer @ 0x472564 // > GJBaseGameLayer::updateShaderLayer @ 0x472584 // > GJBaseGameLayer::updateShaderLayer @ 0x47299c // > GJBaseGameLayer::updateShaderLayer @ 0x4729b0 // > GJBaseGameLayer::updateShaderLayer @ 0x4729c0 // // 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 *GJBaseGameLayer::positionForShaderTarget( cocos2d::CCPoint *__return_ptr retstr, GJBaseGameLayer *a2, int a3) { PlayerObject *m_player2; // r0 cocos2d::CCPoint *v7; // r1 int v8; // r2 bool v9; // r3 PlayerObject *v10; // r0 GameObject *MainObject; // r0 cocos2d::CCPoint v13; // [sp+4h] [bp-10h] BYREF cocos2d::CCPoint::CCPoint(retstr); if ( a3 == -1 ) goto LABEL_4; if ( a3 == -2 ) { if ( a2->m_gameState.m_isDualMode ) { m_player2 = a2->m_player2; goto LABEL_6; } LABEL_4: m_player2 = a2->m_player1; LABEL_6: v7 = (cocos2d::CCPoint *)m_player2->getPosition(m_player2); v10 = (PlayerObject *)retstr; goto LABEL_11; } MainObject = GJBaseGameLayer::tryGetMainObject(a2, a3); if ( MainObject ) MainObject->getRealPosition(&v13, MainObject); else cocos2d::CCPoint::CCPoint(&v13, &stru_AC68C0); v10 = (PlayerObject *)retstr; v7 = &v13; LABEL_11: cocos2d::CCPoint::operator=(v10, *(float *)&v7, v8, v9); return retstr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source