// // GameLevelManager::userNameForUserID from 0x6f149c to 0x6f1600 (356 bytes) // // 6 xrefs: // > CommentCell::loadFromComment @ 0x617a2c // > LevelBrowserLayer::getSearchTitle @ 0x6e8460 // > LevelBrowserLayer::getSearchTitle @ 0x6e86d0 // > GameLevelManager::tryGetUsername @ 0x6f6f6c // > GJGameLevel::create @ 0x702bdc // > @ 0x56d78 // // 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 // __int64 *__usercall GameLevelManager::userNameForUserID@( __int64 *__return_ptr a1@, GameLevelManager *this@, const char *a3@) { cocos2d::CCDictionary *m_knownUsers; // x22 cocos2d::CCString *v5; // x0 char *CString; // x0 cocos2d::CCString *v7; // x22 char *v8; // x0 char *v9; // x0 unsigned int *v11; // x2 int v12; // w1 std::string v13; // [xsp+40h] [xbp+40h] BYREF if ( (int)a3 <= 0 ) { sub_D153B8((int)a1, &byte_F10E40); return a1; } m_knownUsers = this->m_knownUsers; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3); CString = (char *)cocos2d::CCString::getCString(v5); sub_D153B8((int)&v13, CString); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(m_knownUsers, &v13); v8 = (char *)v13.m_data.m_data - 24; if ( (__int64 *)v13.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_3; if ( &pthread_create ) { v11 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v12 - 1; } if ( v12 > 0 ) { LABEL_3: if ( !v7 ) { LABEL_11: sub_D153B8((int)a1, &byte_F10E40); return a1; } } else { operator delete(v8); if ( !v7 ) goto LABEL_11; } v9 = (char *)cocos2d::CCString::getCString(v7); sub_D153B8((int)a1, v9); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source