// // EndLevelLayer::playEndEffect from 0x428814 to 0x428944 (304 bytes) // // 3 xrefs: // > EndLevelLayer::starEnterFinished @ 0x428a08 // > EndLevelLayer::currencyEnterFinished @ 0x428ac8 // > EndLevelLayer::diamondEnterFinished @ 0x428b82 // // 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 EndLevelLayer::playEndEffect(EndLevelLayer *a1) { FMODAudioEngine *v2; // r6 int v3; // r2 int v4; // r3 FMODAudioEngine *v5; // r6 int v6; // r2 int v7; // r3 FMODAudioEngine *v8; // r6 int v9; // r2 int v10; // r3 int v11; // r2 int m_orbs; // r3 CurrencySpriteType m_secretKey; // r6 _BOOL4 v14; // r2 int m_stars; // r11 int m_moons; // r10 int m_diamonds; // r9 CurrencyRewardLayer *v18; // r0 int v19; // [sp+20h] [bp-24h] int v20; // [sp+24h] [bp-20h] cocos2d::CCPoint v21; // [sp+2Ch] [bp-18h] BYREF cocos2d::CCPoint v22; // [sp+34h] [bp-10h] BYREF if ( a1->m_endEffectPlayed ) return; a1->m_endEffectPlayed = 1; v2 = FMODAudioEngine::sharedEngine(); sub_776584((int)&v22, "gold02.ogg"); FMODAudioEngine::playEffect(v2, (int)&v22, v3, v4); sub_774008(&v22); if ( a1->m_secretKey ) { v5 = FMODAudioEngine::sharedEngine(); sub_776584((int)&v22, "secretKey.ogg"); FMODAudioEngine::playEffect(v5, (int)&v22, v6, v7); LABEL_6: sub_774008(&v22); goto LABEL_7; } if ( a1->m_orbs > 0 ) { v8 = FMODAudioEngine::sharedEngine(); sub_776584((int)&v22, "magicExplosion.ogg"); FMODAudioEngine::playEffect(v8, (int)&v22, v9, v10); goto LABEL_6; } LABEL_7: cocos2d::CCPoint::CCPoint(&v21, &a1->m_orbsPosition); m_orbs = a1->m_orbs; if ( m_orbs <= 0 ) cocos2d::CCPoint::operator=((PlayerObject *)&v21, COERCE_FLOAT((EndLevelLayer *)&a1->m_starsPosition), v11, m_orbs); m_secretKey = a1->m_secretKey; if ( a1->m_secretKey ) { m_secretKey = DemonKey; v14 = 1; } else { v14 = a1->m_secretKey; } v20 = v14; m_stars = a1->m_stars; v19 = a1->m_orbs; m_moons = a1->m_moons; m_diamonds = a1->m_diamonds; cocos2d::CCPoint::CCPoint(&v22, &v21); v18 = CurrencyRewardLayer::create( v19, m_stars, m_moons, m_diamonds, m_secretKey, v20, Icon, 0, (cocos2d::CCPoint)(unsigned int)&v22, (CurrencyRewardType)0, 1.0, *(float *)&v19); a1->addChild_0(a1, v18, 100); }
GD Web Decomp Icon

GD Web Decomp

Raw Source