// // SongOptionsLayer::onPlayback from 0x100217390 to 0x1002174bd (301 bytes) // // 1 xrefs: // > SongOptionsLayer::init @ 0x100216ff8 // // 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 __fastcall SongOptionsLayer::onPlayback(SongOptionsLayer *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 FMODAudioEngine *v3; // rax FMODAudioEngine *v4; // rax double v5; // xmm0_8 char *v6; // r14 float v7; // xmm0_4 FMODAudioEngine *v8; // r14 __int64 v9; // rbx FMODAudioEngine *v10; // rax bool isMusicPlaying_1; // r14 cocos2d::CCSpriteFrameCache *v12; // rax const char *v13; // rsi cocos2d::CCSpriteFrame *v14; // rax char *v15[2]; // [rsp+0h] [rbp-50h] BYREF char *v16; // [rsp+10h] [rbp-40h] _BYTE v17[16]; // [rsp+18h] [rbp-38h] BYREF void *__p; // [rsp+28h] [rbp-28h] double v19; // [rsp+30h] [rbp-20h] v3 = FMODAudioEngine::sharedEngine(); if ( FMODAudioEngine::isMusicPlaying_1(v3, 0) ) { v4 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v4, 1); } else { CCTextInputNode::getString(v15, (__int64)a1->m_offsetInput, v2); if ( ((__int64)v15[0] & 1) != 0 ) { v6 = v16; v19 = atof(v16); operator delete(v6); v5 = v19; } else { v5 = atof((const char *)v15 + 1); } v7 = v5; *(float *)&v19 = v7; v8 = FMODAudioEngine::sharedEngine(); ((void (__fastcall *)(_BYTE *))a1->m_delegate->getSongFileName)(v17); FMODAudioEngine::loadAndPlayMusic(v8, v17, (unsigned int)(int)(float)(*(float *)&v19 * 1000.0), 0); if ( (v17[0] & 1) != 0 ) operator delete(__p); } v9 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_playbackButton->getNormalImage)(a1->m_playbackButton); v10 = FMODAudioEngine::sharedEngine(); isMusicPlaying_1 = FMODAudioEngine::isMusicPlaying_1(v10, 0); v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v13 = "GJ_playMusicBtn_001.png"; if ( isMusicPlaying_1 ) v13 = "GJ_stopMusicBtn_001.png"; v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v13); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v9 + 1144LL))(v9, v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source