// // LevelInfoLayer::onPlayReplay from 0x6d9194 to 0x6d9308 (372 bytes) // // 1 xrefs: // > @ 0x391c8 // // 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 LevelInfoLayer::onPlayReplay(LevelInfoLayer *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // x0 FMODAudioEngine *v4; // x22 void *v5; // x0 cocos2d::CCDirector *v6; // x21 cocos2d::CCScene *v7; // x0 cocos2d::CCTransitionFade *v8; // x0 unsigned int *v9; // x2 int v10; // w1 __int64 v11; // [xsp+40h] [xbp+40h] BYREF if ( !a1->m_isBusy ) { if ( LevelInfoLayer::shouldDownloadLevel(a1) ) { LevelInfoLayer::downloadLevel(a1); } else { 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); } GameManager::sharedState()->m_sceneEnum = 3; v6 = cocos2d::CCDirector::sharedDirector(); v7 = PlayLayer::scene(a1->m_level, (bool)&dword_0 + 1, 0); v8 = cocos2d::CCTransitionFade::create(0.5, v7); cocos2d::CCDirector::replaceScene(v6, v8); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source