// // LevelSearchLayer::toggleTimeNum from 0x6d0c74 to 0x6d0dfc (392 bytes) // // 3 xrefs: // > LevelSearchLayer::clearFilters @ 0x6d0e58 // > LevelSearchLayer::init @ 0x6d2bfc // > @ 0x8de58 // // 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 LevelSearchLayer::toggleTimeNum(LevelSearchLayer *a1, int a2, bool a3) { _BOOL4 v5; // w21 cocos2d::CCDictionary *m_difficultyDict; // x25 cocos2d::CCObject *v7; // x24 char *TimeKey; // x0 void *v9; // x0 __int64 v10; // x0 char v11; // w2 void (__fastcall *v12)(__int64, __int64 *); // x3 GameLevelManager *v13; // x0 unsigned int *v14; // x2 int v15; // w1 __int64 v16; // [xsp+60h] [xbp+60h] BYREF v5 = a3; if ( a1->m_type != 1 ) { m_difficultyDict = a1->m_difficultyDict; v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3); TimeKey = (char *)LevelSearchLayer::getTimeKey(a1, a2); sub_D153B8((int)&v16, TimeKey); cocos2d::CCDictionary::setObject((int)m_difficultyDict, v7); v9 = (void *)(v16 - 24); if ( (__int64 *)(v16 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v16 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v16 - 8); *(_DWORD *)(v16 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v9); } v10 = cocos2d::CCArray::objectAtIndex(a1->m_lengthSprites, a2); v11 = -1; if ( !v5 ) v11 = 125; v12 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 1056LL); LOBYTE(v16) = v11; BYTE1(v16) = v11; BYTE2(v16) = v11; v12(v10, &v16); v13 = GameLevelManager::sharedState(); GameLevelManager::setLenVal(v13, a2, v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source