// // GameLevelManager::createAndGetScores from 0x3cb248 to 0x3cb33c (244 bytes) // // 3 xrefs: // > GameLevelManager::onGetLeaderboardScoresCompleted @ 0x3cb400 // > GameLevelManager::onGetUsersCompleted @ 0x3cb616 // > GameLevelManager::onGetLevelLeaderboardCompleted @ 0x3cec54 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCArray *__fastcall GameLevelManager::createAndGetScores(cocos2d::CCArray *a1, char **a2, int a3) { cocos2d::CCArray *v5; // r9 cocos2d::CCArray *v6; // r10 unsigned int i; // r8 cocos2d::CCString *v8; // r0 char *CString; // r0 GJUserScore *v10; // r5 const char *m_userID; // [sp+0h] [bp-24h] const char *m_accountID; // [sp+4h] [bp-20h] _BYTE v15[4]; // [sp+10h] [bp-14h] BYREF char *v16; // [sp+14h] [bp-10h] BYREF char *v17; // [sp+18h] [bp-Ch] BYREF v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); sub_776584((int)&v17, *a2); v6 = sub_3BE530((cocos2d::CCArray *)&v17, "|"); sub_774008(&v17); for ( i = 0; i < cocos2d::CCArray::count(v6); ++i ) { v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, i); CString = (char *)cocos2d::CCString::getCString(v8); sub_776584((int)v15, CString); sub_775C20(&v16, v15); GameLevelManager::responseToDict(&v16, 0); v10 = GJUserScore::create(); sub_774008(&v16); if ( v10 ) { v10->m_scoreType = a3; cocos2d::CCArray::addObject(v5, v10); m_userID = (const char *)v10->m_userID; m_accountID = (const char *)v10->m_accountID; sub_775C20(&v17, &v10->m_userName); GameLevelManager::storeUserName(a1, m_userID, m_accountID, &v17); sub_774008(&v17); } sub_774008(v15); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source