// // PlayLayer::getCurrentPercent from 0x1000b9740 to 0x1000b97a8 (104 bytes) // // 0 xrefs: // // 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 *v1; // rax int m_timestamp; // ecx float m_currentProgress; // xmm0_4 float m_levelLength; // xmm1_4 v1 = (float *)((__int64 (__fastcall *)(PlayerObject *))a1->m_player1->getPosition)(a1->m_player1); m_timestamp = a1->m_level->GJBaseGameLayer::m_timestamp; if ( m_timestamp <= 0 ) { m_currentProgress = *v1; m_levelLength = a1->m_levelLength; } else { m_currentProgress = (float)(int)a1->m_gameState.m_currentProgress; m_levelLength = (float)(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