// // CustomSongWidget::onPlayback from 0x4e2fd0 to 0x4e311c (332 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:51:02 +0000 // int (__fastcall ***__fastcall CustomSongWidget::onPlayback( CustomSongWidget *this, cocos2d::CCObject *a2))(_DWORD, _DWORD) { char *v2; // r10 int (__fastcall ***result)(_DWORD, _DWORD); // r0 int v5; // r0 FMODAudioEngine *v6; // r0 FMODAudioEngine *v7; // r0 char **isMusicPlaying; // r0 FMODAudioEngine *v9; // r0 char **v10; // r0 FMODAudioEngine *v11; // r8 int v12; // r3 _BOOL4 v13; // r8 FMODAudioEngine *v14; // r0 FMODAudioEngine *v15; // r0 MusicDownloadManager *v16; // r9 int v17; // r0 size_t v18; // r0 MusicDownloadManager *v19; // r0 _BYTE v20[12]; // [sp+Ch] [bp-34h] BYREF int v21[3]; // [sp+18h] [bp-28h] BYREF char v22; // [sp+24h] [bp-1Ch] BYREF char v23; // [sp+25h] [bp-1Bh] BYREF char *v24; // [sp+2Ch] [bp-14h] int v25[3]; // [sp+30h] [bp-10h] BYREF result = *((int (__fastcall ****)(_DWORD, _DWORD))this + 93); if ( result ) return (int (__fastcall ***)(_DWORD, _DWORD))(**result)(result, *((_DWORD *)this + 68)); if ( *((_DWORD *)this + 68) ) { v5 = MusicDownloadManager::sharedState(nullptr); v6 = (FMODAudioEngine *)MusicDownloadManager::pathForSong((MusicDownloadManager *)v20, v5); v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v6); isMusicPlaying = (char **)FMODAudioEngine::isMusicPlaying(v7, 0); if ( isMusicPlaying ) { v11 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); std::string::basic_string(v21, (int)v20); v13 = FMODAudioEngine::isMusicPlaying(v11, (unsigned __int8 *)v21, 0, v12); isMusicPlaying = (char **)std::string::~string((int)v21); if ( !v13 ) { v14 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); isMusicPlaying = FMODAudioEngine::stopAllMusic(v14, 1); } } v9 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)isMusicPlaying); v10 = (char **)FMODAudioEngine::isMusicPlaying(v9, 0); if ( v10 ) { v15 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine((FMODAudioEngine *)v10); v10 = FMODAudioEngine::stopAllMusic(v15, 1); } else if ( *((_DWORD *)this + 68) ) { v16 = (MusicDownloadManager *)FMODAudioEngine::sharedEngine(nullptr); v17 = MusicDownloadManager::sharedState(v16); MusicDownloadManager::pathForSong((MusicDownloadManager *)&v22, v17); v25[0] = 0; v25[1] = 0; if ( (v22 & 1) == 0 ) v2 = &v23; v25[2] = 0; if ( (v22 & 1) != 0 ) v2 = v24; v18 = strlen(v2); std::string::__init(v25, v2, v18); FMODAudioEngine::playMusic(v16, (int)v25, 0, 0.0, 0); std::string::~string((int)v25); v10 = (char **)std::string::~string((int)&v22); } v19 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v10); MusicDownloadManager::songStateChanged(v19); return (int (__fastcall ***)(_DWORD, _DWORD))std::string::~string((int)v20); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source