// // GJBaseGameLayer::canBeActivatedByPlayer from 0x1001e8d08 to 0x1001e8e28 (288 bytes) // // 20 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8384 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8400 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8440 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8478 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8528 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e85a0 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e85d8 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8620 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8698 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8738 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e87bc // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e87f4 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e886c // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e88e8 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8920 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e89a0 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8a28 // > GJBaseGameLayer::collisionCheckObjects @ 0x1001e8a64 // > GJBaseGameLayer::bumpPlayer @ 0x1001e8fb0 // > GJBaseGameLayer::gravBumpPlayer @ 0x1001e9124 // // 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 // bool __fastcall GJBaseGameLayer::canBeActivatedByPlayer(GJBaseGameLayer *a1, PlayerObject *a2, EffectGameObject *a3) { int m_uniqueID; // w8 int v7; // w9 std::__tree_end_node *>::pointer left; // x10 int v9; // w11 int v10; // w11 unsigned int m_commandIndex; // w22 unsigned int v13; // w19 int v14; // [xsp+Ch] [xbp-34h] BYREF int v15; // [xsp+10h] [xbp-30h] int *v16; // [xsp+18h] [xbp-28h] BYREF if ( (((__int64 (__fastcall *)(EffectGameObject *, bool))a3->canMultiActivate)(a3, a2->m_isPlatformer) & 1) == 0 ) { m_uniqueID = a3->m_uniqueID; v7 = a2->m_uniqueID; goto LABEL_11; } m_uniqueID = a3->m_uniqueID; v7 = a2->m_uniqueID; left = a1->m_gameState.m_activatedObjectIDs.__tree_.__pair1_.__value_.__left_; if ( !left ) { LABEL_11: v14 = m_uniqueID; v15 = v7; m_commandIndex = a1->m_gameState.m_commandIndex; v16 = &v14; *((_DWORD *)sub_10006E558( (__int64 **)&a1->m_gameState.m_activatedObjectIDs, &v14, (__int64)&unk_10063A31C, (_QWORD **)&v16) + 9) = m_commandIndex; return ((__int64 (__fastcall *)(EffectGameObject *, PlayerObject *))a3->hasBeenActivatedByPlayer)(a3, a2) ^ 1; } while ( 1 ) { v9 = *((_DWORD *)left + 7); if ( m_uniqueID >= v9 ) { if ( v9 < m_uniqueID ) goto LABEL_7; v10 = *((_DWORD *)left + 8); if ( v7 >= v10 ) break; } LABEL_8: left = *(std::__tree_end_node *>::pointer *)left; if ( !left ) goto LABEL_11; } if ( v10 < v7 ) { LABEL_7: left = (std::__tree_end_node *>::pointer)((char *)left + 8); goto LABEL_8; } v14 = a3->m_uniqueID; v15 = v7; v13 = a1->m_gameState.m_commandIndex; v16 = &v14; *((_DWORD *)sub_10006E558( (__int64 **)&a1->m_gameState.m_activatedObjectIDs, &v14, (__int64)&unk_10063A31C, (_QWORD **)&v16) + 9) = v13; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source