// // GJBaseGameLayer::rotateGameplay from 0x10012a8b0 to 0x10012aa40 (400 bytes) // // 3 xrefs: // > @ 0x1008b73c0 // > @ 0x1008c0710 // > @ 0x1008c1940 // // 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 __fastcall GJBaseGameLayer::rotateGameplay(GJBaseGameLayer *a1, RotateGameplayGameObject *a2) { unsigned int v2; // r15d double v3; // xmm0_8 _BYTE v4[8]; // [rsp+8h] [rbp-38h] BYREF _BYTE v5[8]; // [rsp+10h] [rbp-30h] BYREF _QWORD v6[5]; // [rsp+18h] [rbp-28h] BYREF if ( a2->m_changeChannel ) { a1->m_gameState.m_currentChannel = a2->m_targetChannelID; v2 = a2->m_groundDirection & 0xFFFFFFFE; v6[0] = &a1->m_gameState.m_currentChannel; *(_BYTE *)(sub_100167FF0( &a1->m_gameState.m_spawnChannelRelated1, &a1->m_gameState.m_currentChannel, &unk_100816AE0, v6, v5) + 20) = v2 == 2; if ( a2->m_channelOnly ) { LABEL_3: if ( !a2->m_instantOffset ) return; goto LABEL_4; } } else if ( a2->m_channelOnly ) { goto LABEL_3; } 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); ((void (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); v3 = sub_10028CC60(v6); ((void (__fastcall *)(_BYTE *, RotateGameplayGameObject *, double))a2->getRealPosition)(v5, a2, v3); sub_10028CD00(v4, v6, v5); ((void (__fastcall *)(GJBaseGameLayer *))a1->didRotateGameplay)(a1); if ( a2->m_instantOffset ) LABEL_4: a1->m_gameState.m_unkPoint30 = (cocos2d::CCPoint)0x3F8000003F800000LL; }
GD Web Decomp Icon

GD Web Decomp

Raw Source