// // SongOptionsLayer::onPlayback from 0x83dea8 to 0x83e064 (444 bytes) // // 3 xrefs: // > @ 0x303d8 // > SongOptionsLayer::init @ 0x83da30 // > @ 0x12296d8 // // 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 SongOptionsLayer::onPlayback(SongOptionsLayer *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v3; // x0 double v4; // d0 char *v5; // x0 float v6; // s8 FMODAudioEngine *v7; // x23 char *v8; // x0 FMODAudioEngine *v9; // x0 unsigned int *v10; // x1 int v11; // w2 unsigned int *v12; // x1 int v13; // w2 char *v14; // [xsp+50h] [xbp+50h] BYREF v3 = FMODAudioEngine::sharedEngine(); if ( FMODAudioEngine::isMusicPlaying(v3, 0) ) { v9 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v9, 1); } else { CCTextInputNode::getString(a1->m_offsetInput, (__int64)&v14); v4 = atof(v14); v5 = v14 - 24; v6 = v4; if ( v14 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v14 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v5); } v7 = FMODAudioEngine::sharedEngine(); a1->m_delegate->getSongFileName(a1->m_delegate); FMODAudioEngine::loadAndPlayMusic(v7, (__int64)&v14, (unsigned int)(float)(v6 * 1000.0), 0); v8 = v14 - 24; if ( v14 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v14 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v8); } } SongOptionsLayer::updatePlaybackBtn(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source