// // PlayLayer::getCurrentPercent from 0x10011e338 to 0x10011e3ac (116 bytes) // // 3 xrefs: // > PlayLayer::updateProgressbar @ 0x100118518 // > PlayLayer::destroyPlayer @ 0x10011eb84 // > PlayLayer::destroyPlayer @ 0x10011ecfc // // 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 // float __fastcall PlayLayer::getCurrentPercent(PlayLayer *a1) { float *v2; // x0 int m_timestamp; // w8 float m_currentProgress; // s0 float m_levelLength; // s1 v2 = (float *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); m_timestamp = a1->m_level->GJBaseGameLayer::m_timestamp; if ( m_timestamp < 1 ) { m_currentProgress = *v2; m_levelLength = a1->m_levelLength; } else { m_currentProgress = (float)(int)a1->m_gameState.m_currentProgress; m_levelLength = (float)(unsigned int)(2 * m_timestamp); } return fminf(fmaxf((float)(m_currentProgress / m_levelLength) * 100.0, 0.0), 100.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source