// // LevelSearchLayer::checkDiff from 0x6cecb8 to 0x6cedbc (260 bytes) // // 10 xrefs: // > LevelSearchLayer::getSearchDiffKey @ 0x6cede8 // > LevelSearchLayer::getSearchDiffKey @ 0x6cedf8 // > LevelSearchLayer::getSearchDiffKey @ 0x6cee0c // > LevelSearchLayer::getSearchDiffKey @ 0x6cee20 // > LevelSearchLayer::getSearchDiffKey @ 0x6cee34 // > LevelSearchLayer::getSearchDiffKey @ 0x6cee48 // > LevelSearchLayer::getSearchDiffKey @ 0x6cee5c // > LevelSearchLayer::getSearchDiffKey @ 0x6cee70 // > LevelSearchLayer::toggleDifficulty @ 0x6cf080 // > @ 0xbc9d0 // // 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 // bool LevelSearchLayer::checkDiff(LevelSearchLayer *a1, int a2) { cocos2d::CCDictionary *m_difficultyDict; // x21 char *DiffKey; // x0 cocos2d::CCString *v4; // x0 bool v5; // w20 char *v6; // x0 unsigned int *v8; // x2 int v9; // w1 std::string v10; // [xsp+40h] [xbp+40h] BYREF m_difficultyDict = a1->m_difficultyDict; DiffKey = (char *)LevelSearchLayer::getDiffKey(a1, a2); sub_D153B8((int)&v10, DiffKey); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_difficultyDict, &v10); v5 = cocos2d::CCString::boolValue(v4); v6 = (char *)v10.m_data.m_data - 24; if ( (__int64 *)v10.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)((char *)v10.m_data.m_data - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)v10.m_data.m_data - 2); *((_DWORD *)v10.m_data.m_data - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v6); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source