// // LevelEditorLayer::addToRedoList from 0x366256 to 0x366294 (62 bytes) // // 1 xrefs: // > LevelEditorLayer::handleAction @ 0x3718e6 // // 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 LevelEditorLayer::addToRedoList(LevelEditorLayer *a1, UndoObject *a2) { _BOOL4 m_increaseMaxUndoRedo; // r3 cocos2d::CCArray *m_redoObjects; // r0 unsigned int v6; // r7 m_increaseMaxUndoRedo = a1->m_increaseMaxUndoRedo; m_redoObjects = a1->m_redoObjects; if ( m_increaseMaxUndoRedo ) v6 = 1000; else v6 = 200; if ( cocos2d::CCArray::count(m_redoObjects) >= v6 ) cocos2d::CCArray::removeObjectAtIndex(a1->m_redoObjects, 0, 1); cocos2d::CCArray::addObject(a1->m_redoObjects, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source