// // PlayLayer::getCurrentPercent from 0x1403b3950 to 0x1403b39c8 (120 bytes) // // 4 xrefs: // > PlayLayer::updateProgressbar @ 0x1403b23fb // > PlayLayer::destroyPlayer @ 0x1403b3cfc // > PlayLayer::destroyPlayer @ 0x1403b3f54 // > @ 0x1406d6ec0 // // 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 PlayLayer::getCurrentPercent(PlayLayer *a1) { const cocos2d::CCPoint *v2; // rax float m_levelLength; // xmm1_4 float x; // xmm0_4 int m_timestamp; // eax float v6; // xmm1_4 v2 = a1->m_player1->getPosition_0(a1->m_player1); m_levelLength = a1->m_levelLength; x = v2->x; m_timestamp = a1->m_level->GJBaseGameLayer::m_timestamp; if ( m_timestamp > 0 ) { x = (float)(int)a1->m_gameState.m_currentProgress; m_levelLength = (float)(2 * m_timestamp); } v6 = fmaxf(0.0, (float)(x / m_levelLength) * 100.0); if ( v6 <= 100.0 ) return v6; else return 100.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source