// // PlayLayer::getCurrentPercent from 0x140512300 to 0x14051238c (140 bytes) // // 5 xrefs: // > PauseLayer::setupSessionProgressBar @ 0x1404d9e48 // > PlayLayer::updateProgressbar @ 0x140510e8f // > PlayLayer::destroyPlayer @ 0x14051247a // > PlayLayer::resetLevel @ 0x140519845 // > @ 0x14092abf0 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:33:31 +0000 // float __fastcall PlayLayer::getCurrentPercent(__int64 a1) { float *v3; // rax float v4; // xmm0_4 float v5; // xmm2_4 int v6; // eax if ( *(_BYTE *)(a1 + 12670) ) return (float)*(int *)(*(_QWORD *)(a1 + 2408) + 1008LL); v3 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3512) + 200LL))(*(_QWORD *)(a1 + 3512)); v4 = *(float *)(a1 + 13080); v5 = *v3; v6 = *(_DWORD *)(*(_QWORD *)(a1 + 2168) + 1336LL); if ( v6 > 0 ) { v5 = (float)*(int *)(a1 + 1000); v4 = (float)(2 * v6); } return fminf(100.0, fmaxf(0.0, (float)(v5 / v4) * 100.0)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source