// // LevelSearchLayer::toggleTimeNum from 0x3ad79c to 0x3ad840 (164 bytes) // // 2 xrefs: // > LevelSearchLayer::clearFilters @ 0x3ad87e // > LevelSearchLayer::init @ 0x3aef76 // // 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 v3; // r7 cocos2d::CCDictionary *m_difficultyDict; // r10 cocos2d::CCObject *v7; // r9 char *TimeKey; // r0 int v9; // r0 void (__fastcall *v10)(int, _BOOL4 *, _DWORD, int); // r2 int v11; // r3 GameLevelManager *v12; // r0 _BOOL4 v13; // [sp+8h] [bp-8h] BYREF v13 = a3; v3 = 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_776584((int)&v13, TimeKey); cocos2d::CCDictionary::setObject((int)m_difficultyDict, v7); sub_774008(&v13); v9 = cocos2d::CCArray::objectAtIndex(a1->m_lengthSprites, a2); v10 = *(void (__fastcall **)(int, _BOOL4 *, _DWORD, int))(*(_DWORD *)v9 + 528); if ( v3 ) v11 = 255; else v11 = 125; LOBYTE(v13) = v11; BYTE1(v13) = v11; BYTE2(v13) = v11; v10(v9, &v13, v10, v11); v12 = GameLevelManager::sharedState(); GameLevelManager::setLenVal(v12, a2, v3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source