// // ClearPlatformerSavesPopup::updateStats from 0x7618c0 to 0x7619c4 (260 bytes) // // 3 xrefs: // > ClearPlatformerSavesPopup::onIncludeFavoritesToggle @ 0x7619f4 // > ClearPlatformerSavesPopup::init @ 0x7622f0 // > ClearPlatformerSavesPopup::FLAlert_Clicked @ 0x762376 // // 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:59:04 +0000 // int __fastcall ClearPlatformerSavesPopup::updateStats(cocos2d::CCLabelBMFont **this) { GameLevelManager *v2; // r0 int v3; // r2 int v4; // r3 const char *v5; // r8 __int16 *v6; // r7 cocos2d::CCString *v7; // r0 int CString; // r7 GameLevelManager *v9; // r0 GameLevelManager *v10; // r0 int *v11; // r7 void (__fastcall *v12)(int *, int); // r8 int v13; // r2 const char *v14; // r1 cocos2d::CCString *v15; // r0 int v16; // r0 const char *v18; // [sp+0h] [bp-20h] BYREF unsigned int v19; // [sp+4h] [bp-1Ch] BYREF int v20; // [sp+8h] [bp-18h] BYREF unsigned int v21; // [sp+Ch] [bp-14h] BYREF int v22[3]; // [sp+10h] [bp-10h] BYREF v18 = nullptr; v19 = 0; v2 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)this); GameLevelManager::getPlatformerSaveStats(v2, *((unsigned __int8 *)this + 524), (int *)&v18, &v19); v5 = v18; if ( v18 == (_BYTE *)&dword_0 + 1 ) v6 = (__int16 *)&unk_B6B226; else v6 = &a1i2r3e45s789g[8]; sub_761858(v22, (const char *)v19, v3, v4); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i save%s - %s", v5, v6); CString = cocos2d::CCString::getCString(v7); std::string::~string((int)v22); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 133) + 464))(*(this + 133), CString); v9 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 133), 280.0, 0.6, 0.3); v20 = 0; v21 = 0; v10 = (GameLevelManager *)GameLevelManager::sharedState(v9); GameLevelManager::getPlatformerSaveStats(v10, 2, &v20, &v21); v11 = (int *)*(this + 134); v12 = *(void (__fastcall **)(int *, int))(*v11 + 464); sub_761858(v22, (const char *)v21, v13, *v11); if ( (v22[0] & 1) != 0 ) v14 = (const char *)v22[2]; else v14 = (char *)v22 + 1; v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Favorites: %s", v14); v16 = cocos2d::CCString::getCString(v15); v12(v11, v16); std::string::~string((int)v22); return cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 134), 280.0, 0.4, 0.3); }