// // GJSmartBlockPreview::create from 0x1004287f0 to 0x1004288d9 (233 bytes) // // 2 xrefs: // > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e9a8e // > BrowseSmartKeyLayer::init @ 0x1004eaf79 // // 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 // char *__fastcall GJSmartBlockPreview::create(std::string *a1) { char *v1; // rbx bool v2; // r14 float v4; // [rsp+8h] [rbp-38h] BYREF std::string __str; // [rsp+10h] [rbp-30h] BYREF v1 = (char *)operator new(0x170u); cocos2d::CCNode::CCNode((__int64)v1); *(_QWORD *)v1 = off_100934CF8; *((_OWORD *)v1 + 20) = 0; *((_OWORD *)v1 + 21) = 0; *(_OWORD *)(v1 + 345) = 0; if ( (*(_BYTE *)&a1->__r_.__value_.__s.0 & 1) != 0 ) sub_100006B70(&__str, a1->__r_.__value_.__l.__data_, a1->__r_.__value_.__l.__size_, 0.0); else __str = *a1; v2 = cocos2d::CCNode::init((cocos2d::CCNode *)v1); if ( v2 ) { sub_10028CBF0(&v4, 90.0, 90.0); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v1 + 304LL))(v1, &v4); std::string::operator=((std::string *)(v1 + 320), &__str); } if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( v2 ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1); } else { (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1); return nullptr; } return v1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source