// // GJEffectManager::opacityModForGroup from 0x8a4918 to 0x8a49a8 (144 bytes) // // 8 xrefs: // > GameObject::groupOpacityMod @ 0x64757c // > LevelEditorLayer::updateObjectColors @ 0x65f990 // > LevelEditorLayer::updateObjectColors @ 0x65fb6c // > LevelEditorLayer::updateVisibility @ 0x66301c // > LevelEditorLayer::updateVisibility @ 0x663540 // > GJBaseGameLayer::opacityForObject @ 0x855760 // > GJEffectManager::runOpacityActionOnGroup @ 0x8b63b4 // > @ 0x74bb0 // // 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 // float GJEffectManager::opacityModForGroup(GJEffectManager *a1, int a2) { unsigned __int64 v2; // x7 std::_Hashtable, 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>::size_type M_bucket_count; // x4 unsigned __int64 v4; // x7 std::_Hashtable, 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>::__bucket_type v5; // x6 std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_base *M_nxt; // x3 int v7; // w5 std::__detail::_Hashtable_alloc<_NodeAlloc>::__node_base v8; // x0 if ( a2 > 9998 ) { v2 = 9999; a2 = 9999; } else { if ( a2 < 0 ) a2 = 0; v2 = a2; } M_bucket_count = a1->m_opacityEffectMap._M_h._M_bucket_count; v4 = v2 % M_bucket_count; v5 = a1->m_opacityEffectMap._M_h._M_buckets[v4]; if ( !v5 ) return 1.0; M_nxt = v5->_M_nxt; v7 = (int)v5->_M_nxt[1]._M_nxt; while ( a2 != v7 ) { v8._M_nxt = M_nxt->_M_nxt; v5 = M_nxt; M_nxt = v8._M_nxt; if ( v8._M_nxt ) { v7 = (int)v8._M_nxt[1]._M_nxt; if ( v4 == v7 % M_bucket_count ) continue; } return 1.0; } if ( v5->_M_nxt ) return *((float *)&v5->_M_nxt[4]._M_nxt + 1); else return 1.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source