// // GJEffectManager::updateEffects from 0x1002df670 to 0x1002df783 (275 bytes) // // 9 xrefs: // > PlayLayer::setupHasCompleted @ 0x1000ae905 // > PlayLayer::loadDefaultColors @ 0x1000b1f18 // > LevelEditorLayer::updateGameObjects @ 0x1000de042 // > LevelEditorLayer::updateGameObjects @ 0x1000de6dc // > LevelEditorLayer::onPlaytest @ 0x1000f22dc // > GJBaseGameLayer::loadUpToPosition @ 0x10014e882 // > GJBaseGameLayer::update @ 0x1001514d5 // > GJBaseGameLayer::update @ 0x100152e92 // > GJEffectManager::loadFromState @ 0x1002ef999 // // 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 GJEffectManager::updateEffects(GJEffectManager *a1, float a2) { std::__hash_node_base, void *> *>::__next_pointer next; // rdx __int64 *p_m_opacityEffectMap; // rbx char v4; // al float v5; // xmm0_4 float v6; // xmm0_4 float v7; // xmm1_4 float v8; // xmm2_4 std::__hash_node_base, void *> *> *v9; // r15 void *v10; // rdi void *__p; // [rsp+8h] [rbp-38h] BYREF float v12; // [rsp+24h] [rbp-1Ch] v12 = a2; GJEffectManager::updateColorEffects(a1, a2); GJEffectManager::updatePulseEffects(a1, a2); next = a1->m_opacityEffectMap.__table_.__p1_.__value_.__next_; if ( next ) { p_m_opacityEffectMap = (__int64 *)&a1->m_opacityEffectMap; do { while ( 1 ) { v4 = (char)next[4].__next_; if ( !v4 && !BYTE1(next[4].__next_) ) { v5 = *((float *)&next[4].__next_ + 1) + v12; *((float *)&next[4].__next_ + 1) = v5; v6 = v5 + *(float *)&next[7].__next_; v7 = *((float *)&next[2].__next_ + 1); v8 = 1.0; if ( v6 < v7 ) { v8 = 0.0; if ( v6 > 0.0 ) v8 = v6 / v7; } *((float *)&next[5].__next_ + 1) = (float)((float)(*((float *)&next[3].__next_ + 1) - *(float *)&next[3].__next_) * v8) + *(float *)&next[3].__next_; v4 = v6 >= v7; LOBYTE(next[4].__next_) = v6 >= v7; } if ( v4 && *((float *)&next[5].__next_ + 1) >= 1.0 ) break; next = next->__next_; if ( !next ) return; } v9 = next->__next_; sub_100056B40((__int64)&__p, p_m_opacityEffectMap, (__int64 *)next); v10 = __p; __p = nullptr; if ( v10 ) operator delete(v10); next = v9; } while ( v9 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source