// // PauseLayer::setupLegacyProgressBars from 0x48f398 to 0x48f5fe (614 bytes) // // 1 xrefs: // > PauseLayer::setupProgressBars @ 0x490af0 // // 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:49:36 +0000 // int __fastcall PauseLayer::setupLegacyProgressBars(PauseLayer *this) { cocos2d::CCDirector *v2; // r0 const char **v3; // r11 const char *NormalPercent; // r0 int ProgressBar; // r5 void (__fastcall *v6)(int, _BYTE *); // r6 int v7; // r6 void (__fastcall *v8)(int, _BYTE *); // r9 int v9; // r10 const char *v10; // r0 cocos2d::CCString *v11; // r0 cocos2d::CCLabelBMFont *CString; // r0 const char *v13; // r2 int v14; // r9 int v15; // r0 cocos2d::CCString *v16; // r0 cocos2d::CCLabelBMFont *v17; // r0 const char *v18; // r2 int v19; // r9 void (__fastcall *v20)(int, int); // r11 int v21; // r0 const char *v22; // r2 int v23; // r9 void (__fastcall *v24)(int, _BYTE *); // r11 int v25; // r5 const char *v26; // r2 int v27; // r5 void (__fastcall *v28)(int, _BYTE *); // r8 int v29; // r6 void (__fastcall *v31)(int, int); // [sp+8h] [bp-2Ch] int v32; // [sp+10h] [bp-24h] float v33[2]; // [sp+14h] [bp-20h] BYREF _BYTE v34[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v35[8]; // [sp+24h] [bp-10h] BYREF v2 = (cocos2d::CCDirector *)GameManager::sharedState(this); v3 = *(const char ***)(*((_DWORD *)v2 + 101) + 1408); cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v33); NormalPercent = (const char *)GJGameLevel::getNormalPercent((GJGameLevel *)v3); ProgressBar = GameToolbox::createProgressBar(1065353216, NormalPercent, 65280); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 121) + 232))(*((_DWORD *)this + 121), ProgressBar, 3); v6 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)ProgressBar + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v33[0] * 0.5, (float)((float)(v33[1] * 0.5) + 80.0) + 0.0); v6(ProgressBar, v35); LOWORD(v32) = -256; BYTE2(v32) = -1; v7 = GameToolbox::createProgressBar(1065353216, v3[178], v32); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 121) + 232))(*((_DWORD *)this + 121), v7, 3); v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92); v9 = (*(int (__fastcall **)(int))(*(_DWORD *)ProgressBar + 96))(ProgressBar); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, -50.0); cocos2d::CCPoint::operator+(v35, v9, v34); v8(v7, v35); v10 = (const char *)GJGameLevel::getNormalPercent((GJGameLevel *)v3); v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v10); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v11); v14 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v13); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 121) + 232))(*((_DWORD *)this + 121), v14, 4); v31 = *(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 92); v15 = (*(int (__fastcall **)(int))(*(_DWORD *)ProgressBar + 96))(ProgressBar); v31(v14, v15); (*(void (__fastcall **)(int, float))(*(_DWORD *)v14 + 80))(v14, 0.5); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v3[178]); v17 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v16); v19 = cocos2d::CCLabelBMFont::create(v17, "bigFont.fnt", v18); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 121) + 232))(*((_DWORD *)this + 121), v19, 4); v20 = *(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 92); v21 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); v20(v19, v21); (*(void (__fastcall **)(int, float))(*(_DWORD *)v19 + 80))(v19, 0.5); v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Normal Mode", "bigFont.fnt", v22); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 121) + 232))(*((_DWORD *)this + 121), v23, 4); v24 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v23 + 92); v25 = (*(int (__fastcall **)(int))(*(_DWORD *)ProgressBar + 96))(ProgressBar); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, 20.0); cocos2d::CCPoint::operator+(v35, v25, v34); v24(v23, v35); (*(void (__fastcall **)(int, float))(*(_DWORD *)v23 + 80))(v23, 0.5); v27 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Practice Mode", "bigFont.fnt", v26); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 121) + 232))(*((_DWORD *)this + 121), v27, 4); v28 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v27 + 92); v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, 20.0); cocos2d::CCPoint::operator+(v35, v29, v34); v28(v27, v35); return (*(int (__fastcall **)(int, float))(*(_DWORD *)v27 + 80))(v27, 0.5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source