// // GameLevelManager::getStoredLevelComments from 0x1005516e0 to 0x1005517bb (219 bytes) // // 2 xrefs: // > InfoLayer::init @ 0x1007aff91 // > InfoLayer::loadPage @ 0x1007b13c9 // // 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::getStoredLevelComments(GameLevelManager *a1, const char *a2) { cocos2d::CCDictionary *m_storedLevels; // r14 size_t v3; // rax size_t v4; // r15 char *v5; // r12 cocos2d::CCArray *result; // rax size_t v7; // r13 cocos2d::CCArray *v8; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( !GameLevelManager::isTimeValid(a1, a2, 600.0) ) return nullptr; m_storedLevels = a1->m_storedLevels; v3 = strlen(a2); if ( v3 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(COERCE_DOUBLE(1142292480)); v4 = v3; if ( v3 >= 0x17 ) { v7 = 26; if ( (v3 | 7) != 0x17 ) v7 = (v3 | 7) + 1; v5 = (char *)operator new(v7); __p = v5; __dst[0] = v7 + 1; __dst[1] = v4; goto LABEL_10; } LOBYTE(__dst[0]) = 2 * v3; v5 = (char *)__dst + 1; if ( v3 ) LABEL_10: memcpy(v5, a2, v4); v5[v4] = 0; result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey_1((__int64)m_storedLevels, (char *)__dst); if ( (__dst[0] & 1) != 0 ) { v8 = result; operator delete(__p); return v8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source