// // LevelSearchLayer::toggleDifficultyNum from 0x3acbc0 to 0x3acc58 (152 bytes) // // 9 xrefs: // > LevelSearchLayer::toggleDifficulty @ 0x3accda // > LevelSearchLayer::toggleDifficulty @ 0x3acd3a // > LevelSearchLayer::toggleDifficulty @ 0x3acd54 // > LevelSearchLayer::toggleDifficulty @ 0x3acd5e // > LevelSearchLayer::toggleDifficulty @ 0x3acd68 // > LevelSearchLayer::toggleDifficulty @ 0x3acdea // > LevelSearchLayer::toggleDifficulty @ 0x3ace08 // > LevelSearchLayer::clearFilters @ 0x3ad86c // > LevelSearchLayer::init @ 0x3aef5a // // 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::toggleDifficultyNum(LevelSearchLayer *a1, int a2, bool a3) { cocos2d::CCDictionary *m_difficultyDict; // r10 _BOOL4 v6; // r6 cocos2d::CCObject *v7; // r9 char *DiffKey; // r0 void (*v9)(void); // r2 char v10; // r3 GameLevelManager *v11; // r0 _BOOL4 v12; // [sp+8h] [bp-8h] BYREF v12 = a3; m_difficultyDict = a1->m_difficultyDict; v6 = a3; v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a3); DiffKey = (char *)LevelSearchLayer::getDiffKey(a1, a2); sub_776584((int)&v12, DiffKey); cocos2d::CCDictionary::setObject((int)m_difficultyDict, v7); sub_774008(&v12); v9 = *(void (**)(void))(*(_DWORD *)cocos2d::CCArray::objectAtIndex(a1->m_difficultySprites, a2) + 472); if ( v6 ) v10 = -1; else v10 = 125; LOBYTE(v12) = v10; BYTE1(v12) = v10; BYTE2(v12) = v10; v9(); v11 = GameLevelManager::sharedState(); GameLevelManager::setDiffVal(v11, a2, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source