// // GJLevelList::removeLevelFromList from 0x1000b1684 to 0x1000b1744 (192 bytes) // // 1 xrefs: // > LevelListLayer::cellPerformedAction @ 0x1002465f0 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GJLevelList::removeLevelFromList(GJLevelList *a1, int a2) { __int64 v2; // x20 std::__vector_base::pointer end; // x8 std::__vector_base::pointer begin; // x21 size_t v6; // x22 cocos2d::CCDictionary *m_levelsDict; // x21 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v9; // [xsp+1Fh] [xbp-21h] v2 = *(_QWORD *)&a2; begin = a1->m_levels.__begin_; end = a1->m_levels.__end_; if ( begin != end ) { v6 = (char *)end - (char *)begin - 4; while ( *begin != a2 ) { ++begin; v6 -= 4LL; if ( begin == end ) goto LABEL_9; } if ( begin + 1 != end ) memmove(begin, begin + 1, v6); a1->m_levels.__end_ = (std::__vector_base::pointer)((char *)begin + v6); GJLevelList::updateLevelsString(a1); } LABEL_9: m_levelsDict = a1->m_levelsDict; GameToolbox::intToString(v2, __p); cocos2d::CCDictionary::removeObjectForKey_1((int)m_levelsDict, (char *)__p); if ( v9 < 0 ) operator delete(__p[0]); a1->m_modified = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source