// // SetupSmartTemplateLayer::onClose from 0x1004e86e0 to 0x1004e87ae (206 bytes) // // 6 xrefs: // > SetupSmartTemplateLayer::onBack @ 0x1004e8444 // > SetupSmartTemplateLayer::onClick @ 0x1004e84b5 // > SetupSmartTemplateLayer::FLAlert_Clicked @ 0x1004e87ec // > sub_1004E8820 @ 0x1004e8860 // > SetupSmartTemplateLayer::keyBackClicked @ 0x1004e8ab4 // > sub_1004E8AE0 @ 0x1004e8aeb // // 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 SetupSmartTemplateLayer::onClose(SetupSmartTemplateLayer *a1, cocos2d::CCObject *a2) { char v2; // al cocos2d::CCNode *m_unk298; // rdi GJSmartTemplate *m_smartTemplate; // rax unsigned int sizex2; // ecx cocos2d::CCString *v7; // rax const char *CString; // rax cocos2d::CCDirector *v9; // rax cocos2d::CCTouchDispatcher *v10; // rax char v11; // [rsp-8h] [rbp-10h] v11 = v2; m_unk298 = a1->m_unk298; if ( m_unk298 ) ((void (__fastcall *)(cocos2d::CCNode *, __int64))m_unk298->setVisible)(m_unk298, 1); ((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_nameInput->onClickTrackNode)(a1->m_nameInput, 0); m_smartTemplate = a1->m_smartTemplate; sizex2 = m_smartTemplate->m_templateName.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { if ( !m_smartTemplate->m_templateName.m_data.m_long.size ) { LABEL_7: v7 = (cocos2d::CCString *)sub_1007AB580("SmartTemplate_%i", v11); CString = cocos2d::CCString::getCString(v7); std::string::assign((std::string *)&a1->m_smartTemplate->m_templateName, CString); } } else if ( !(sizex2 >> 1) ) { goto LABEL_7; } ((void (__fastcall *)(SetupSmartTemplateLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); ((void (__fastcall *)(SetupSmartTemplateLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1); v9 = cocos2d::CCDirector::sharedDirector(); v10 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v9->getTouchDispatcher)(v9); cocos2d::CCTouchDispatcher::unregisterForcePrio(v10, a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source