// // DrawGridLayer::update from 0x100369804 to 0x100369908 (260 bytes) // // 1 xrefs: // > @ 0x1007f4658 // // 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 DrawGridLayer::update(DrawGridLayer *a1, float a2) { EditorUI *m_editorUI; // x8 FMODAudioEngine *v5; // x0 _BOOL4 isMusicPlaying_1; // w20 LevelEditorLayer *m_editorLayer; // x9 float v8; // s8 FMODAudioEngine *v9; // x0 float MusicTime; // s0 float m_musicTime; // s1 bool v12; // zf float v13; // s1 bool v14; // nf float v15; // s1 a1->m_oldPlaybackTime = a1->m_playbackTime; m_editorUI = a1->m_editorLayer->m_editorUI; if ( m_editorUI && m_editorUI->m_playbackActive ) { v5 = FMODAudioEngine::sharedEngine(); isMusicPlaying_1 = FMODAudioEngine::isMusicPlaying_1(v5, 0); m_editorLayer = a1->m_editorLayer; if ( a1->m_musicTime == -1.0 ) a1->m_musicTime = m_editorLayer->m_editorUI->m_playbackStartWarp; LevelTools::posForTimeInternal( a1->m_playbackTime, a1->m_speedObjects, m_editorLayer->m_levelSettings->m_startSpeed, m_editorLayer->m_levelSettings->m_platformerMode, 0, 1, &m_editorLayer->m_gameState.m_rotateChannel, 0); v8 = LevelTools::getLastTimewarp() * a2; if ( isMusicPlaying_1 ) { v9 = FMODAudioEngine::sharedEngine(); MusicTime = FMODAudioEngine::getMusicTime(v9, 0); m_musicTime = a1->m_musicTime; } else { m_musicTime = a1->m_musicTime; MusicTime = v8 + m_musicTime; } v12 = m_musicTime == -1.0; v13 = vabds_f32(MusicTime, m_musicTime); v14 = !v12 && v13 < 1000.0; v15 = MusicTime; if ( v14 ) v15 = v8 + a1->m_playbackTime; a1->m_playbackTime = v15; a1->m_musicTime = MusicTime; } }