// // GJBaseGameLayer::positionForShaderTarget from 0x85ef5c to 0x85f04c (240 bytes) // // 8 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x85f2b8 // > GJBaseGameLayer::updateShaderLayer @ 0x85f2e8 // > GJBaseGameLayer::updateShaderLayer @ 0x85f314 // > GJBaseGameLayer::updateShaderLayer @ 0x85fa00 // > GJBaseGameLayer::updateShaderLayer @ 0x85fa28 // > GJBaseGameLayer::updateShaderLayer @ 0x85fa50 // > GJBaseGameLayer::updateShaderLayer @ 0x85fa78 // > @ 0x73968 // // 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(GJBaseGameLayer *a1, int a2) { cocos2d::CCPoint *v2; // x8 cocos2d::CCPoint *v4; // x20 GameObject *MainObject; // x0 float v6; // s0 float v7; // s1 PlayerObject *m_player2; // x1 float v11; // s0 float v12; // s1 cocos2d::CCPoint v14; // [xsp+40h] [xbp+40h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = v2; cocos2d::CCPoint::CCPoint(v2); if ( a2 == -1 ) goto LABEL_10; if ( a2 == -2 ) { if ( a1->m_gameState.m_isDualMode ) { m_player2 = a1->m_player2; LABEL_9: v11 = ((float (__fastcall *)(PlayerObject *))m_player2->getPosition)(m_player2); cocos2d::CCPoint::operator=(v4, v11, v12); return result; } LABEL_10: m_player2 = a1->m_player1; goto LABEL_9; } MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2); if ( MainObject ) MainObject->getRealPosition((GameObject *)&v14); else cocos2d::CCPoint::CCPoint(&v14, &stru_1242DA8); cocos2d::CCPoint::operator=(v4, v6, v7); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source