// // GJLevelList::addLevelToList from 0x1000b1468 to 0x1000b1528 (192 bytes) // // 2 xrefs: // > LevelInfoLayer::cellPerformedAction @ 0x100029270 // > GJLevelList::duplicateListLevels @ 0x1000b11a4 // // 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 __fastcall GJLevelList::addLevelToList(GJLevelList *a1, GJGameLevel *a2) { std::__vector_base::pointer i; // x8 cocos2d::CCDictionary *m_levelsDict; // x21 GJGameLevel *ListSnapshot; // x22 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v8; // [xsp+1Fh] [xbp-21h] for ( i = a1->m_levels.__begin_; i != a1->m_levels.__end_; ++i ) { if ( *i == a2->m_levelID.random - a2->m_levelID.seed ) return; } LODWORD(__p[0]) = a2->m_levelID.random - a2->m_levelID.seed; sub_10000CBA8((__int64)&a1->m_levels, (int *)__p); GJLevelList::updateLevelsString(a1); m_levelsDict = a1->m_levelsDict; ListSnapshot = GJGameLevel::getListSnapshot(a2); GameToolbox::intToString((unsigned int)(a2->m_levelID.random - a2->m_levelID.seed), __p); cocos2d::CCDictionary::setObject_1(m_levelsDict, ListSnapshot, __p); if ( v8 < 0 ) operator delete(__p[0]); a1->m_modified = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source