// // GJBaseGameLayer::stopCustomEnterEffect from 0x1001e2964 to 0x1001e2ae0 (380 bytes) // // 2 xrefs: // > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x1001e292c // > GJBaseGameLayer::stopCustomEnterEffect_1 @ 0x1001e2954 // // 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::stopCustomEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2, bool a3) { _BOOL4 v3; // w20 unsigned int m_enterChannel; // w8 std::unordered_map> *p_m_enterEffectInstanceVectors; // x0 __int64 v8; // x21 __int64 v9; // x8 __int64 v10; // x22 int m_effectID; // w9 unsigned __int64 v12; // x10 __int64 v13; // x1 __int64 v14; // x8 __int64 v15; // x1 __int64 v16; // x24 __int64 v17; // x9 unsigned int v18; // [xsp+0h] [xbp-40h] BYREF char v19; // [xsp+7h] [xbp-39h] BYREF unsigned int *v20; // [xsp+8h] [xbp-38h] BYREF v3 = a3; m_enterChannel = a2->m_enterChannel; if ( m_enterChannel > 0x64 ) m_enterChannel = 0; v18 = m_enterChannel; v20 = &v18; if ( a3 ) p_m_enterEffectInstanceVectors = &a1->m_gameState.m_enterEffectInstanceVectors; else p_m_enterEffectInstanceVectors = &a1->m_gameState.m_exitEffectInstanceVectors; v8 = sub_10020A040(p_m_enterEffectInstanceVectors, &v18, &unk_10063A31C, &v20, &v19); v9 = *(_QWORD *)(v8 + 24); v10 = *(_QWORD *)(v8 + 32); if ( v10 != v9 ) { m_effectID = a2->m_effectID; if ( !m_effectID ) { LODWORD(v20) = v18; if ( v18 <= 0x64 ) { v14 = 1392; if ( v3 ) v14 = 1352; sub_10020A990((char *)a1 + v14, &v20); } LABEL_22: v17 = 1456; if ( v3 ) v17 = 1432; *((_DWORD *)&(*(GJBaseGameLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v17))->copyWithZone + (int)v18) = -2; return; } v12 = 0xEEEEEEEEEEEEEEEFLL * ((v10 - v9) >> 4); if ( v12 <= 1 ) v12 = 1; v13 = v9 + 240; while ( *(_DWORD *)(*(_QWORD *)(v13 - 72) + 1988LL) != m_effectID ) { v13 += 240; if ( !--v12 ) goto LABEL_21; } sub_10020A2BC(&v20, v13); v10 = v15; v16 = *(_QWORD *)(v8 + 32); if ( v16 != v15 ) { do { v16 -= 240; sub_100124FA0(v8 + 24, v16); } while ( v16 != v10 ); } *(_QWORD *)(v8 + 32) = v10; v9 = *(_QWORD *)(v8 + 24); LABEL_21: if ( v10 == v9 ) goto LABEL_22; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source