// // SetupSongTriggerPopup::onSavePlaybackPos from 0x14045d9d0 to 0x14045db59 (393 bytes) // // 3 xrefs: // > SetupSongTriggerPopup::init @ 0x14045d20c // > SetupSongTriggerPopup::init @ 0x14045d2c8 // > @ 0x1406dacac // // 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=4 void SetupSongTriggerPopup::onSavePlaybackPos(SetupSongTriggerPopup *a1, cocos2d::CCObject *a2) { int v4; // edi FMODAudioEngine *v5; // rcx int v6; // edx FMODAudioEngine *v7; // rcx signed int MusicTimeMS; // eax __int64 v9; // rax __int64 *v10; // r14 EffectGameObject *m_gameObject; // rcx __int64 v12; // rbx __int64 v13; // rax int v14; // edx FMODAudioEngine *v15; // [rsp+58h] [rbp+10h] BYREF v4 = 0; v5 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v15 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v5 = (FMODAudioEngine *)qword_1406C2E88; } if ( FMODAudioEngine::isMusicPlaying_1(v5, 0) ) { v7 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v15 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v7 = (FMODAudioEngine *)qword_1406C2E88; } MusicTimeMS = FMODAudioEngine::getMusicTimeMS(v7, v6); goto LABEL_12; } v9 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v15 = (FMODAudioEngine *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v9 = qword_1406C2ED8; } v10 = *(__int64 **)(v9 + 528); if ( v10 ) { m_gameObject = a1->m_gameObject; if ( m_gameObject ) { v12 = *v10; m_gameObject->getPosition_0(m_gameObject); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15); MusicTimeMS = (int)(float)((*(float (__fastcall **)(__int64 *, __int64, _QWORD, _QWORD, _BYTE, _DWORD))(v12 + 1208))( v10, v13, 0, 0, 0, 0) * 1000.0); LABEL_12: if ( MusicTimeMS < 0 ) MusicTimeMS = 0; v4 = MusicTimeMS; } } if ( a2->getTag(a2) ) { if ( a2->getTag(a2) != 1 ) return; v14 = 410; } else { v14 = 408; } SetupTriggerPopup::updateValue(a1, v14, (float)v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source