// // GameToolbox::addProgressBarFill from 0x3cd7fc to 0x3cd90a (270 bytes) // // 2 xrefs: // > GameToolbox::createProgressBar @ 0x3cd95e // > PauseLayer::setupSessionProgressBar @ 0x48f20e // // 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:46:38 +0000 // float *__fastcall GameToolbox::addProgressBarFill(int a1, const char *a2, int a3, int a4) { float *v7; // r4 float v8; // s17 void (__fastcall *v9)(float *, _BYTE *); // r8 void (__fastcall *v10)(float *, _BYTE *); // r8 int v11; // r0 float v12; // s16 void (__fastcall *v13)(float *, _BYTE *); // r7 float v14; // r3 int v16; // [sp+Ch] [bp-1Ch] BYREF _BYTE v17[16]; // [sp+14h] [bp-14h] BYREF v16 = a3; v7 = (float *)cocos2d::CCSprite::create((cocos2d::CCSprite *)"GJ_progressBar_001.png", a2); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v7 + 64))(v7, 1065218998); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v7 + 72))(v7, 1063004406); (*(void (__fastcall **)(float *, int *))(*(_DWORD *)v7 + 480))(v7, &v16); v8 = v7[86]; (*(void (__fastcall **)(int, float *, int))(*(_DWORD *)a1 + 232))(a1, v7, a4); v9 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v7 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, 0.5); v9(v7, v17); v10 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v7 + 92); v11 = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 164))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (float)(v8 - (float)(v8 * 0.992)) * 0.5, *(float *)(v11 + 4) * 0.5); v10(v7, v17); v12 = (float)(int)a2; v13 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v7 + 568); if ( v8 > (float)(v8 * (float)(v12 / 100.0)) ) v14 = v8 * (float)(v12 / 100.0); else v14 = v8; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v17, 0.0, 0.0, v14, v7[87]); v13(v7, v17); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source