// // SetupSFXPopup::onClose from 0x6afd24 to 0x6afe62 (318 bytes) // // 0 xrefs: // // 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:56:38 +0000 // int __fastcall SetupSFXPopup::onClose(cocos2d::CCArray **this, cocos2d::CCObject *a2) { FMOD::ChannelControl **v3; // r0 cocos2d::CCObject *v4; // r1 cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r11 unsigned int i; // r9 int v8; // r5 MusicDownloadManager *v9; // r0 MusicDownloadManager *SFXObject; // r0 MusicDownloadManager *v11; // r0 FMODAudioEngine *v12; // r0 int v13; // r4 FMODAudioEngine *v14; // r0 int v15; // r4 int *v16; // r4 FMODAudioEngine *v17; // r0 int v18; // r3 int v19; // r7 int v20; // r1 float v21; // s14 _BYTE v24[12]; // [sp+8h] [bp-2Ch] BYREF int v25[3]; // [sp+14h] [bp-20h] BYREF int v26[3]; // [sp+20h] [bp-14h] BYREF v3 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this); FMODAudioEngine::stopAllEffects(v3); v5 = *(this + 132); if ( v5 ) v6 = (cocos2d::CCArray *)cocos2d::CCArray::createWithObject(v5, v4); else v6 = *(this + 133); for ( i = 0; i < cocos2d::CCArray::count(v6); ++i ) { v8 = cocos2d::CCArray::objectAtIndex(v6, i); v9 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v8); SFXObject = MusicDownloadManager::getSFXObject(v9, *(_DWORD *)(v8 + 1660)); v11 = (MusicDownloadManager *)MusicDownloadManager::sharedState(SFXObject); v12 = MusicDownloadManager::pathForSFX((MusicDownloadManager *)v24, v11, *(_DWORD *)(v8 + 1660)); v13 = FMODAudioEngine::sharedEngine(v12); std::string::basic_string(v25, (int)v24); FMODAudioEngine::preloadEffect(v13, (int)v25); v14 = (FMODAudioEngine *)std::string::~string((int)v25); v15 = FMODAudioEngine::sharedEngine(v14); std::string::basic_string(v26, (int)v24); v16 = FMODAudioEngine::lengthForSound(v15, (unsigned __int8 *)v26); v17 = (FMODAudioEngine *)std::string::~string((int)v26); v18 = *(_DWORD *)(v8 + 1692); v19 = *(_DWORD *)(v8 + 1684); if ( v18 && v18 >= v19 ) v16 = *(int **)(v8 + 1692); if ( *(_DWORD *)(v8 + 1672) ) { FMODAudioEngine::sharedEngine(v17); v21 = COERCE_FLOAT(FMODAudioEngine::pitchForIdx(*(FMODAudioEngine **)(v8 + 1672), v20)); } else { v21 = 1.0; } *(float *)(v8 + 1772) = (float)(int)(float)((float)((int)v16 - v19) / v21) / 1000.0; std::string::~string((int)v24); } return SetupTriggerPopup::onClose((SetupTriggerPopup *)this, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source