// // PlayLayer::getCurrentPercent from 0x401b24 to 0x401ba6 (130 bytes) // // 2 xrefs: // > PlayLayer::getCurrentPercentInt @ 0x401bb2 // > PlayLayer::updateProgressbar @ 0x4064c4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:24 +0000 // int __fastcall PlayLayer::getCurrentPercent(PlayLayer *this) { int v1; // s15 float v3; // s15 float *v4; // r0 float v5; // s13 int v6; // r3 float v7; // s14 if ( *((_BYTE *)this + 10614) ) { v3 = (float)*(int *)(*((_DWORD *)this + 381) + 520); } else { v4 = (float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 519) + 96))(*((_DWORD *)this + 519)); v5 = *((float *)this + 2706); v6 = *(_DWORD *)(*((_DWORD *)this + 352) + 1000); if ( v6 > 0 ) v1 = 2 * v6; v7 = *v4; if ( v6 > 0 ) { v5 = (float)v1; v7 = (float)*((int *)this + 204); } v3 = (float)(v7 / v5) * 100.0; if ( v3 <= 0.0 ) { v3 = 0.0; } else if ( v3 >= 100.0 ) { v3 = 100.0; } } return LODWORD(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source