// // GJLevelList::addLevelToList from 0x3d7cb4 to 0x3d7d52 (158 bytes) // // 2 xrefs: // > LevelInfoLayer::cellPerformedAction @ 0x3b085c // > GJLevelList::duplicateListLevels @ 0x3d7d80 // // 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 GJLevelList::addLevelToList(GJLevelList *a1, GJGameLevel *a2) { int *m_finish; // r1 int *i; // r3 int *v6; // r0 int random; // r4 int seed; // r2 cocos2d::CCDictionary *m_levelsDict; // r9 GJGameLevel *ListSnapshot; // r8 _DWORD v11[2]; // [sp+0h] [bp-Ch] BYREF v11[0] = a1; v11[1] = a2; m_finish = a1->m_levels.m_finish; for ( i = a1->m_levels.m_start; ; ++i ) { v6 = i; random = a2->m_levelID.random; seed = a2->m_levelID.seed; if ( i == m_finish ) break; if ( *v6 == random - seed ) return; } v11[0] = random - seed; std::vector::emplace_back((void **)&a1->m_levels.m_start, v11); GJLevelList::updateLevelsString(a1); m_levelsDict = a1->m_levelsDict; ListSnapshot = GJGameLevel::getListSnapshot(a2); GameToolbox::intToString((GameToolbox *)v11, a2->m_levelID.random - a2->m_levelID.seed); cocos2d::CCDictionary::setObject((int)m_levelsDict, ListSnapshot); sub_774008(v11); a1->m_modified = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source