// // SetupSmartBlockLayer::onCreateTemplate from 0x53d5a2 to 0x53d5ee (76 bytes) // // 0 xrefs: // // 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 SetupSmartBlockLayer::onCreateTemplate(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *v3; // r0 SmartGameObject *m_gameObject; // r1 cocos2d::CCArray *v5; // r5 cocos2d::CCArray *m_gameObjects; // r1 GameLevelManager *v7; // r0 GJSmartTemplate *ActiveSmartTemplate; // r6 GameManager *v9; // r0 v3 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); m_gameObject = a1->m_gameObject; v5 = v3; if ( m_gameObject ) { cocos2d::CCArray::addObject(v3, m_gameObject); } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) cocos2d::CCArray::addObjectsFromArray(v3, m_gameObjects); } v7 = GameLevelManager::sharedState(); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v7); v9 = GameManager::sharedState(); EditorUI::addObjectsToSmartTemplate(v9->m_levelEditorLayer->m_editorUI, ActiveSmartTemplate, v5); SetupSmartBlockLayer::onClose(a1, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source