// // PlayLayer::getCurrentPercent from 0x6f5f48 to 0x6f5ff4 (172 bytes) // // 3 xrefs: // > PlayLayer::getCurrentPercentInt @ 0x6f6000 // > PlayLayer::updateProgressbar @ 0x7001ac // > @ 0xdd140 // // This function is hookable on this platform (idp: arm, 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 12:51:50 +0000 // float __fastcall PlayLayer::getCurrentPercent(PlayLayer *this) { float result; // s0 float v3; // s0 float v4; // s2 int v5; // w0 if ( *((_BYTE *)this + 12238) ) return (float)*(int *)(*((_QWORD *)this + 269) + 832LL); v3 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 407) + 192LL))(*((_QWORD *)this + 407)); v4 = *((float *)this + 3150); v5 = *(_DWORD *)(*((_QWORD *)this + 242) + 1232LL); if ( v5 > 0 ) { v4 = (float)(2 * v5); v3 = (float)*((int *)this + 238); } result = (float)(v3 / v4) * 100.0; if ( result <= 0.0 ) return 0.0; if ( result >= 100.0 ) return 100.0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source