// // GJBaseGameLayer::speedForShaderTarget from 0x85f04c to 0x85f1d8 (396 bytes) // // 3 xrefs: // > GJBaseGameLayer::updateShaderLayer @ 0x85f9c4 // > GJBaseGameLayer::updateShaderLayer @ 0x85f9e0 // > @ 0xafc20 // // 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::speedForShaderTarget(GJBaseGameLayer *a1, int a2) { cocos2d::CCPoint *v2; // x8 cocos2d::CCPoint *v4; // x20 GameObject *MainObject; // x0 GameObject *v6; // x21 const cocos2d::CCPoint *v7; // x0 float v8; // s0 float v9; // s1 const cocos2d::CCPoint *v12; // x23 PlayerObject *m_player2; // x0 const cocos2d::CCPoint *LastPosition; // x0 float v15; // s0 float v16; // s1 float v17; // s0 float v18; // s1 __int64 v20; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v21; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint result; // 0:s0.4,4:s1.4 v4 = v2; cocos2d::CCPoint::CCPoint(v2); if ( a2 == -1 ) goto LABEL_11; if ( a2 == -2 ) { if ( a1->m_gameState.m_isDualMode ) { v12 = a1->m_player2->getPosition(a1->m_player2); m_player2 = a1->m_player2; LABEL_10: LastPosition = GameObject::getLastPosition(m_player2); cocos2d::CCPoint::operator-(&v21, v12, LastPosition); cocos2d::CCPoint::operator=(v4, v15, v16); return result; } LABEL_11: v12 = a1->m_player1->getPosition(a1->m_player1); m_player2 = a1->m_player1; goto LABEL_10; } if ( a2 <= 0 ) { cocos2d::CCPoint::operator-(&v21, &a1->m_gameState.m_cameraStepDiff); cocos2d::CCPoint::operator=(v4, v17, v18); } else { MainObject = GJBaseGameLayer::tryGetMainObject(a1, a2); v6 = MainObject; if ( MainObject ) { MainObject->getRealPosition((GameObject *)&v20); v7 = GameObject::getLastPosition(v6); cocos2d::CCPoint::operator-(&v21, &v20, v7); } else { cocos2d::CCPoint::CCPoint(&v21, &stru_1242DA8); } cocos2d::CCPoint::operator=(v4, v8, v9); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source