// // EditLevelLayer::onPlay from 0x6e2948 to 0x6e2ae0 (408 bytes) // // 4 xrefs: // > EditLevelLayer::keyDown @ 0x6e3280 // > @ 0x8ef50 // > EditLevelLayer::init @ 0x6e0b44 // > @ 0x122cde0 // // 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 EditLevelLayer::onPlay(EditLevelLayer *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // x0 FMODAudioEngine *v4; // x22 void *v5; // x0 cocos2d::CCSequence *v6; // x21 cocos2d::CCFiniteTimeAction *v7; // x0 cocos2d::CCAction *v8; // x0 unsigned int *v9; // x2 int v10; // w1 __int64 v11; // [xsp+40h] [xbp+40h] BYREF if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning && !a1->m_exiting ) { EditLevelLayer::closeTextInputs(a1); a1->setKeypadEnabled(a1, 0); a1->m_exiting = 1; v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v3, 1); v4 = FMODAudioEngine::sharedEngine(); sub_D153B8((int)&v11, "playSound_01.ogg"); FMODAudioEngine::playEffect((__int64)v4, (__int64)&v11, 1.0, 0.0, 0.3); v5 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v11 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v10 - 1; } if ( v10 <= 0 ) operator delete(v5); } EditLevelLayer::verifyLevelName(a1); v6 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(0.0); v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, EditLevelLayer::playStep2, 0); v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v7, 0); cocos2d::CCNode::runAction(a1, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source