// // SecretLayer4::selectAThread from 0x4f0970 to 0x4f0a00 (144 bytes) // // 1 xrefs: // > SecretLayer4::getMessage @ 0x4f0e34 // // 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 // void SecretLayer4::selectAThread(SecretLayer4 *a1) { cocos2d::CCArray *v2; // r0 int m_threadTag; // r3 cocos2d::CCArray *v4; // r6 unsigned int v5; // r5 bool v6; // cf cocos2d::CCDictionary *m_messageThreads; // r0 int v8; // r0 cocos2d::CCObject *v9; // r0 v2 = cocos2d::CCDictionary::allKeys(a1->m_messageThreads); m_threadTag = a1->m_threadTag; v4 = v2; if ( m_threadTag >= 0 ) { a1->m_threadTag = m_threadTag + 1; } else { cocos2d::CCArray::count(v2); rand(); a1->m_threadTag = lroundf(); } v5 = a1->m_threadTag; v6 = v5 >= cocos2d::CCArray::count(v4); m_messageThreads = a1->m_messageThreads; if ( v6 ) a1->m_threadTag = 0; if ( cocos2d::CCDictionary::count(m_messageThreads) ) { v8 = cocos2d::CCArray::objectAtIndex(v4, a1->m_threadTag); v9 = cocos2d::CCDictionary::objectForKey(a1->m_messageThreads, *(_DWORD *)(v8 + 52)); a1->m_selectedThread = v9->getTag(v9); } a1->m_threadMessageIndex = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source