// // SetupSongTriggerPopup::onSavePlaybackPos from 0x9a9820 to 0x9a9988 (360 bytes) // // 4 xrefs: // > @ 0x4f4d0 // > SetupSongTriggerPopup::init @ 0x9aa638 // > SetupSongTriggerPopup::init @ 0x9aa704 // > @ 0x122a8c8 // // 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 SetupSongTriggerPopup::onSavePlaybackPos(SetupSongTriggerPopup *a1, cocos2d::CCObject *a2) { FMODAudioEngine *v4; // x0 FMODAudioEngine *v5; // x0 signed int MusicTimeMS; // w0 int v7; // w19 LevelEditorLayer *m_levelEditorLayer; // x23 float (__fastcall *timeForPos)(LevelEditorLayer *__hidden, cocos2d::CCPoint, int, int, bool, int); // x24 const cocos2d::CCPoint *v10; // x0 cocos2d::CCPoint v11; // [xsp+40h] [xbp+40h] BYREF v4 = FMODAudioEngine::sharedEngine(); if ( FMODAudioEngine::isMusicPlaying(v4, 0) ) { v5 = FMODAudioEngine::sharedEngine(); MusicTimeMS = FMODAudioEngine::getMusicTimeMS(v5, 0); if ( MusicTimeMS < 0 ) v7 = 0; else v7 = MusicTimeMS; } else { if ( GameManager::sharedState()->m_levelEditorLayer && a1->m_gameObject ) { m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer; timeForPos = m_levelEditorLayer->timeForPos; v10 = a1->m_gameObject->getPosition(a1->m_gameObject); cocos2d::CCPoint::CCPoint(&v11, v10); v7 = (int)(float)(((float (__fastcall *)(LevelEditorLayer *, cocos2d::CCPoint *, _QWORD, _QWORD, _QWORD, _QWORD))timeForPos)( m_levelEditorLayer, &v11, 0, 0, 0, 0) * 1000.0); if ( v7 < 0 ) v7 = 0; if ( a2->getTag(a2) ) goto LABEL_6; LABEL_14: SetupTriggerPopup::updateValue(a1, 408, (float)v7); return; } v7 = 0; } if ( !a2->getTag(a2) ) goto LABEL_14; LABEL_6: if ( a2->getTag(a2) == 1 ) SetupTriggerPopup::updateValue(a1, 410, (float)v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source