// // CustomSFXWidget::FLAlert_Clicked from 0x1400c2780 to 0x1400c297d (509 bytes) // // 2 xrefs: // > @ 0x14054ca68 // > @ 0x1406c7fe0 // // 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 // // Hidden C++ exception states: #wind=3 void CustomSFXWidget::FLAlert_Clicked(CustomSFXWidget *a1, FLAlertLayer *a2, bool a3) { int v5; // eax CustomSFXWidget *v6; // rdi SFXInfoObject *m_sfxObject; // rbx MusicDownloadManager *v8; // rax FMODAudioEngine *v9; // rcx unsigned int m_sfxID; // ebx MusicDownloadManager *v11; // rax const char *v12; // rcx _BOOL8 v13; // rdx GameManager *v14; // rcx __int16 v15; // [rsp+20h] [rbp-68h] BYREF char v16; // [rsp+22h] [rbp-66h] FMODAudioEngine *v17; // [rsp+28h] [rbp-60h] char *FileName[4]; // [rsp+30h] [rbp-58h] BYREF _BYTE v19[32]; // [rsp+50h] [rbp-38h] BYREF v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 1; if ( v5 ) { if ( v5 == 2 && a3 ) { v6 = (CustomSFXWidget *)((char *)a1 - 328); m_sfxObject = v6->m_sfxObject; if ( m_sfxObject ) { v8 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSFX(v8, v19, (unsigned int)m_sfxObject->m_sfxID); v9 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v17 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v9 = (FMODAudioEngine *)qword_1406C2E88; } FMODAudioEngine::stopAllEffects(v9); m_sfxID = v6->m_sfxObject->m_sfxID; v11 = MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSFX(v11, FileName, m_sfxID); v12 = (const char *)FileName; if ( FileName[3] > (char *)0xF ) v12 = FileName[0]; remove(v12); sub_14003A830((__int64)FileName); CustomSFXWidget::updateSFXInfo(v6); LOBYTE(v13) = 1; v6->m_errorLabel->setVisible(v6->m_errorLabel, v13); v15 = 25855; v16 = 0; v6->m_errorLabel->setColor(&v6->m_errorLabel->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v15); v6->m_errorLabel->setString(&v6->m_errorLabel->cocos2d::CCLabelProtocol, "SFX Deleted"); cocos2d::CCLabelBMFont::limitLabelWidth(v6->m_errorLabel, 230.0, 0.40000001, 0.0); sub_14003A830((__int64)v19); } } } else if ( a3 ) { v14 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v17 = (FMODAudioEngine *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v14 = (GameManager *)qword_1406C2ED8; } GameManager::setGameVariable(v14, "0016", 1); CustomSFXWidget::onDownload((CustomSFXWidget *)((char *)a1 - 328), nullptr); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source