// // PlayLayer::startMusic from 0x4120a8 to 0x4121a4 (252 bytes) // // 4 xrefs: // > PlayLayer::startGame @ 0x4121e0 // > PlayLayer::startGameDelayed @ 0x4121f2 // > PlayLayer::switchToStartPosObject @ 0x412238 // > PlayLayer::resetLevel @ 0x412a3a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:37 +0000 // void __fastcall PlayLayer::startMusic(cocos2d::CCDictionary **this) { PlayLayer *v1; // r4 int v2; // r3 FMODAudioEngine *v3; // r0 FMODAudioEngine *updated; // r0 float v5; // s15 cocos2d::CCObject *Checkpoint; // r0 FMODAudioEngine *v7; // r0 v1 = (PlayLayer *)this; if ( !*((_BYTE *)this + 10866) ) { if ( *((_BYTE *)this + 10880) ) { v2 = (int)*(this + 2680); if ( !v2 || (this = (cocos2d::CCDictionary **)cocos2d::CCDictionary::objectForKey(*(this + 2961), *(_DWORD *)(v2 + 780))) == nullptr ) { v3 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this); FMODAudioEngine::getBackgroundMusicVolume(v3); if ( !*((_BYTE *)v1 + 12284) ) PlayLayer::prepareMusic(v1, *((unsigned __int8 *)v1 + 12284)); GJBaseGameLayer::processQueuedAudioTriggers(v1); updated = (FMODAudioEngine *)GJBaseGameLayer::updateProximityVolumeEffects(v1); if ( *((double *)v1 + 99) <= 0.0 && *(_BYTE *)(*((_DWORD *)v1 + 521) + 288) && (!*((_BYTE *)v1 + 10784) || *((_BYTE *)v1 + 10785)) ) { v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(updated); FMODAudioEngine::fadeInMusic(v7, 2.0, 0); } if ( *((_DWORD *)v1 + 2680) ) { if ( !*((_BYTE *)v1 + 10784) || *((_BYTE *)v1 + 10785) ) { GJBaseGameLayer::pauseAudio(v1); v5 = *((double *)v1 + 99); GJBaseGameLayer::processActivatedAudioTriggers(v1, v5); } if ( !cocos2d::CCDictionary::objectForKey( *((cocos2d::CCDictionary **)v1 + 2961), *(_DWORD *)(*((_DWORD *)v1 + 2680) + 780)) ) { Checkpoint = (cocos2d::CCObject *)PlayLayer::createCheckpoint(v1); cocos2d::CCDictionary::setObject( *((cocos2d::CCDictionary **)v1 + 2961), Checkpoint, *(_DWORD *)(*((_DWORD *)v1 + 2680) + 780)); } } *((_BYTE *)v1 + 12284) = 0; *((_BYTE *)v1 + 11570) = 1; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source