// // GJBaseGameLayer::rotateGameplay from 0x4813f8 to 0x481502 (266 bytes) // // 0 xrefs: // // 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 // void GJBaseGameLayer::rotateGameplay(GJBaseGameLayer *a1, RotateGameplayGameObject *a2) { int m_groundDirection; // r6 bool v5; // r6 const cocos2d::CCPoint *v6; // r0 cocos2d::CCPoint v7; // [sp+14h] [bp-1Ch] BYREF _BYTE v8[8]; // [sp+1Ch] [bp-14h] BYREF _BYTE v9[8]; // [sp+24h] [bp-Ch] BYREF if ( a2->m_changeChannel ) { a1->m_gameState.m_currentChannel = a2->m_targetChannelID; m_groundDirection = a2->m_groundDirection; v5 = m_groundDirection == 3 || m_groundDirection == 2; *(_BYTE *)std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( &a1->m_gameState.m_spawnChannelRelated1._M_h._M_buckets, (unsigned int *)&a1->m_gameState.m_currentChannel) = v5; } if ( !a2->m_channelOnly ) { PlayerObject::rotateGameplay( a1->m_player1, a2->m_moveDirection, a2->m_groundDirection, a2->m_editVelocity, a2->m_velocityModX, a2->m_velocityModY, a2->m_overrideVelocity, a2->m_dontSlide); if ( a1->m_gameState.m_isDualMode ) PlayerObject::rotateGameplay( a1->m_player2, a2->m_moveDirection, a2->m_groundDirection, a2->m_editVelocity, a2->m_velocityModX, a2->m_velocityModY, a2->m_overrideVelocity, a2->m_dontSlide); v6 = a1->m_player1->getPosition(a1->m_player1); cocos2d::CCPoint::CCPoint(&v7, v6); a2->getRealPosition((cocos2d::CCPoint *)v8, a2); cocos2d::CCPoint::operator-(v9, &v7, v8); a1->didRotateGameplay(a1); } if ( a2->m_instantOffset ) { a1->m_gameState.m_unkPoint30.x = 1.0; a1->m_gameState.m_unkPoint30.y = 1.0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source