// // SetupSmartTemplateLayer::onClose from 0x9de7e4 to 0x9de8ac (200 bytes) // // 3 xrefs: // > SetupSmartTemplateLayer::onBack @ 0x9de8b4 // > SetupSmartTemplateLayer::onClick @ 0x9e0460 // > @ 0x854e8 // // 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 SetupSmartTemplateLayer::onClose(SetupSmartTemplateLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCNode *m_unk298; // x0 long double v4; // q0 GJSmartTemplate *m_smartTemplate; // x0 std::string *p_m_templateName; // x20 cocos2d::CCString *v7; // x0 size_t v8; // x0 cocos2d::CCDirector *v9; // x0 cocos2d::CCTouchDispatcher *v10; // x0 const char *CString; // [xsp+28h] [xbp+28h] m_unk298 = a1->m_unk298; if ( m_unk298 ) m_unk298->setVisible(m_unk298, 1); a1->m_nameInput->onClickTrackNode(a1->m_nameInput, 0); m_smartTemplate = a1->m_smartTemplate; p_m_templateName = &m_smartTemplate->m_templateName; if ( !*((_QWORD *)m_smartTemplate->m_templateName.m_data.m_data - 3) ) { v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"SmartTemplate_%i", (const char *)(unsigned int)m_smartTemplate->m_nameIndex); CString = cocos2d::CCString::getCString(v7); v8 = strlen(CString); *(__n128 *)&v4 = sub_D1798C(p_m_templateName, CString, v8); } ((void (__fastcall *)(SetupSmartTemplateLayer *, _QWORD, long double))a1->setKeypadEnabled)(a1, 0, v4); a1->removeFromParentAndCleanup(a1, 1); v9 = cocos2d::CCDirector::sharedDirector(); v10 = v9->getTouchDispatcher(v9); cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source