// // SetupSongTriggerPopup::onPlayback from 0x1002d3f30 to 0x1002d4116 (486 bytes) // // 2 xrefs: // > sub_1002D4130 @ 0x1002d413c // > @ 0x100908140 // // 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 SetupSongTriggerPopup::onPlayback(SetupSongTriggerPopup *a1, SongInfoObject *a2) { FMODAudioEngine *v2; // rax FMODAudioEngine *v3; // rax FMODAudioEngine *v4; // r14 float v5; // xmm0_4 int v6; // ebx int v7; // r14d int v8; // r15d int v9; // r12d _BOOL4 v10; // r13d FMODAudioEngine *v11; // rax FMODAudioEngine *v12; // rax MusicDownloadManager *v13; // rax std::string v14; // [rsp+20h] [rbp-60h] BYREF float v15; // [rsp+3Ch] [rbp-44h] float v16; // [rsp+40h] [rbp-40h] float v17; // [rsp+44h] [rbp-3Ch] float v18; // [rsp+48h] [rbp-38h] float v19; // [rsp+4Ch] [rbp-34h] float v20; // [rsp+50h] [rbp-30h] float v21; // [rsp+54h] [rbp-2Ch] v2 = FMODAudioEngine::sharedEngine(); if ( FMODAudioEngine::isMusicPlaying_1(v2, 0) ) { v3 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v3, 1); } else if ( GameManager::sharedState()->m_levelEditorLayer ) { v17 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 408); v18 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 410); v19 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 409); v20 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 411); v21 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 413); v16 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 406); v15 = ((float (__fastcall *)(SetupSongTriggerPopup *, __int64))a1->getValue)(a1, 404); v4 = FMODAudioEngine::sharedEngine(); MusicDownloadManager::sharedState(); MusicDownloadManager::pathForSong(&v14); FMODAudioEngine::sharedEngine(); v5 = FMODAudioEngine::pitchForIdx((int)v15); FMODAudioEngine::loadMusic( v4, &v14, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)LODWORD(v21), (__m128)0LL)) & 1, 0, 0, 0, v5, 0.0, v16); v6 = (int)v17; v7 = (int)v18; v8 = (int)v19; v9 = (int)v20; if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); v10 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)LODWORD(v21), (__m128)0LL)) & 1; v11 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::setMusicTimeMS(v11, v6, 0, 0); v12 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::startMusic(v12, v6, v7, v8, v9, v10, 0, 0, 0); } v13 = MusicDownloadManager::sharedState(); MusicDownloadManager::songStateChanged(v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source