// // GameLevelManager::getSavedLevel from 0x100537620 to 0x1005376f9 (217 bytes) // // 13 xrefs: // > GameStatsManager::getTotalCollectedCurrency @ 0x100074f14 // > CommentCell::loadFromComment @ 0x1002486b2 // > CommentCell::loadFromComment @ 0x1002488e2 // > CommentCell::loadFromComment @ 0x10024907e // > LevelCell::loadCustomLevelCell @ 0x10024f828 // > GameLevelManager::onLikeItemCompleted @ 0x100522864 // > GameLevelManager::onGetLevelSaveDataCompleted @ 0x100526772 // > GameLevelManager::saveFetchedLevels @ 0x100531470 // > GameLevelManager::getSavedLevel_1 @ 0x100531643 // > GameLevelManager::saveLevel @ 0x1005377ff // > GameLevelManager::gotoLevelPage @ 0x100538097 // > GameLevelManager::processOnDownloadLevelCompleted @ 0x100545542 // > GJLevelList::getListLevelsArray @ 0x100562470 // // 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 // GJGameLevel *__fastcall GameLevelManager::getSavedLevel(GameLevelManager *a1, int a2) { double v2; // xmm0_8 cocos2d::CCDictionary *m_onlineLevels; // rbx cocos2d::CCString *v4; // rax const char *CString; // r15 size_t v6; // rax size_t v7; // r14 char *v8; // r12 size_t v9; // r13 GJGameLevel *result; // rax GJGameLevel *v11; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] m_onlineLevels = a1->m_onlineLevels; v4 = (cocos2d::CCString *)sub_1007AB580("%i", __dst[0]); CString = cocos2d::CCString::getCString(v4); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v7 = v6; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 + 1; __dst[1] = v7; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_8: memmove(v8, CString, v7); v8[v7] = 0; result = (GJGameLevel *)cocos2d::CCDictionary::objectForKey_1((__int64)m_onlineLevels, (char *)__dst); if ( (__dst[0] & 1) != 0 ) { v11 = result; operator delete(__p); return v11; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source