// // SetupSmartBlockLayer::onCreateTemplate from 0x1004e6df0 to 0x1004e6e6f (127 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x1004e600e // // 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 SetupSmartBlockLayer::onCreateTemplate(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2) { __int64 v2; // rax cocos2d::CCArray *v3; // r14 SmartGameObject *m_gameObject; // rsi cocos2d::CCArray *m_gameObjects; // rsi GameLevelManager *v6; // rax GJSmartTemplate *ActiveSmartTemplate; // r15 GameManager *v8; // rax v2 = sub_10071F9E0(a1, a2); v3 = (cocos2d::CCArray *)v2; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { sub_10071FCD0(v2, m_gameObject); } else { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) sub_100720050(v2, m_gameObjects); } v6 = GameLevelManager::sharedState(); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v6); v8 = GameManager::sharedState(); EditorUI::addObjectsToSmartTemplate(v8->m_levelEditorLayer->m_editorUI, ActiveSmartTemplate, v3); SetupSmartBlockLayer::onClose(a1, ActiveSmartTemplate); }
GD Web Decomp Icon

GD Web Decomp

Raw Source