// // SetupSmartTemplateLayer::onClick from 0x1004e8470 to 0x1004e856d (253 bytes) // // 2 xrefs: // > SetupSmartTemplateLayer::init @ 0x1004e823c // > SetupSmartTemplateLayer::init @ 0x1004e82f4 // // 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::onClick(SetupSmartTemplateLayer *a1, cocos2d::CCObject *a2) { int v2; // eax BrowseSmartTemplateLayer *v3; // rax char *v4; // rbx _QWORD v5[2]; // [rsp+0h] [rbp-20h] BYREF void *__p; // [rsp+10h] [rbp-10h] v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( v2 == 5 ) { __p = operator new(0x38u); v5[0] = 57; v5[1] = 54; strcpy((char *)__p, "Are you sure you want to delete this template?"); v4 = FLAlertLayer::create_1( (int)a1 + 640, (int)"Delete Template", (__int64)v5, (int)"NO", (int)"YES", COERCE_DOUBLE(1133903872)); if ( (v5[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 72LL))(v4, 5); (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 1288LL))(v4); } else if ( !v2 ) { v3 = BrowseSmartTemplateLayer::create(a1->m_smartTemplate, (SmartBrowseFilter)0); ((void (__fastcall *)(BrowseSmartTemplateLayer *))v3->show)(v3); SetupSmartTemplateLayer::onClose(a1, nullptr); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source