// // GJEffectManager::hasBeenTriggered from 0x8a5304 to 0x8a537c (120 bytes) // // 5 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x5e4de0 // > GJBaseGameLayer::playerTouchedTrigger @ 0x88769c // > GJBaseGameLayer::collisionCheckObjects @ 0x88bdb4 // > GJBaseGameLayer::collisionCheckObjects @ 0x88bdf4 // > @ 0x2bef0 // // 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 GJEffectManager::hasBeenTriggered(GJEffectManager *a1, int a2, int a3) { std::_Rb_tree_node_base *p_M_header; // x5 std::_Rb_tree_node_base::_Base_ptr M_parent; // x0 std::_Rb_tree_node_base *v5; // x4 int M_color; // w3 int v7; // w3 p_M_header = &a1->m_unkMap498._M_t._M_impl._M_header; M_parent = a1->m_unkMap498._M_t._M_impl._M_header._M_parent; if ( !M_parent ) goto LABEL_14; v5 = p_M_header; do { while ( 1 ) { M_color = M_parent[1]._M_color; if ( a2 > M_color || a2 >= M_color && a3 > *((_DWORD *)&M_parent[1]._M_color + 1) ) break; v5 = M_parent; M_parent = M_parent->_M_left; if ( !M_parent ) goto LABEL_7; } M_parent = M_parent->_M_right; } while ( M_parent ); LABEL_7: if ( v5 == p_M_header ) { LABEL_14: LOBYTE(M_parent) = 0; } else { v7 = v5[1]._M_color; if ( a2 >= v7 ) { LOBYTE(M_parent) = 1; if ( a2 <= v7 ) LOBYTE(M_parent) = a3 >= *((_DWORD *)&v5[1]._M_color + 1); } } return (char)M_parent; }
GD Web Decomp Icon

GD Web Decomp

Raw Source