// // SmartGameObject::updateSmartFrame from 0x14049f750 to 0x14049f931 (481 bytes) // // 8 xrefs: // > EditorUI::createSmartObjectsFromTemplate @ 0x140117665 // > EditorUI::createPrefab @ 0x140117c98 // > SetupSmartBlockLayer::onClose @ 0x140458403 // > SetupSmartBlockLayer::onClose @ 0x140458442 // > SmartGameObject::customObjectSetup @ 0x14049faf7 // > @ 0x1406a7758 // > @ 0x1406a77a0 // > @ 0x1406dc428 // // 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 SmartGameObject::updateSmartFrame(SmartGameObject *a1) { int v2; // ecx int v3; // ecx const char *v4; // rax char *v5; // rbx size_t v6; // rdi size_t v7; // r8 std::string *p_m_smartFrame; // r14 char *v9; // r15 void **v10; // rdx std::string *m_bigStorage; // rcx size_t v12; // r13 std::size_t m_size; // r12 size_t v14; // r8 __int64 v15; // rbp char *v16; // rax __int64 v17; // rcx SmartGameObject_vtbl *v18; // rbx cocos2d::CCSpriteFrameCache *v19; // rax struct cocos2d::CCSpriteFrame *v20; // rax void *Buf2[2]; // [rsp+20h] [rbp-58h] BYREF size_t Size; // [rsp+30h] [rbp-48h] unsigned __int64 v23; // [rsp+38h] [rbp-40h] v2 = a1->m_objectID - 2895; if ( v2 ) { v3 = v2 - 1; if ( v3 ) { if ( v3 != 1 ) return; v4 = "smartBlock03b_001.png"; v5 = "smartBlock03_001.png"; } else { v4 = "smartBlock02b_001.png"; v5 = "smartBlock02_001.png"; } } else { v4 = "smartBlock01b_001.png"; v5 = "smartBlock01_001.png"; } if ( a1->m_referenceOnly ) v5 = (char *)v4; v6 = -1; v7 = -1; Size = 0; v23 = 0; *(_OWORD *)Buf2 = 0; do ++v7; while ( v5[v7] ); sub_14003A930(Buf2, v5, v7); p_m_smartFrame = &a1->m_smartFrame; v9 = (char *)Buf2[0]; v10 = Buf2; if ( v23 > 0xF ) v10 = (void **)Buf2[0]; m_bigStorage = &a1->m_smartFrame; if ( a1->m_smartFrame.m_data.m_capacity > 0xF ) m_bigStorage = (std::string *)p_m_smartFrame->m_data.m_bigStorage; v12 = Size; m_size = a1->m_smartFrame.m_data.m_size; v14 = m_size; if ( Size < m_size ) v14 = Size; LODWORD(v15) = memcmp(m_bigStorage, v10, v14); if ( !(_DWORD)v15 ) { if ( m_size >= v12 ) v15 = m_size > v12; else LODWORD(v15) = -1; } if ( v23 > 0xF ) { v16 = v9; if ( v23 + 1 >= 0x1000 ) { v9 = *((char **)v9 - 1); if ( (unsigned __int64)(v16 - v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } if ( (_DWORD)v15 ) { do ++v6; while ( v5[v6] ); sub_14003CCE0((void **)&a1->m_smartFrame, v5, v6); if ( a1->m_smartFrame.m_data.m_capacity > 0xF ) p_m_smartFrame = (std::string *)p_m_smartFrame->m_data.m_bigStorage; v18 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v19 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v17); v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, p_m_smartFrame->m_data.m_smallStorage._Elems); v18->setDisplayFrame(a1, v20); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source