// // SmartGameObject::updateSmartFrame from 0x10038081c to 0x100380924 (264 bytes) // // 5 xrefs: // > SetupSmartBlockLayer::onClose @ 0x10006fcd0 // > SetupSmartBlockLayer::onClose @ 0x10006fd24 // > SmartGameObject::customObjectSetup @ 0x100380b08 // > EditorUI::createSmartObjectsFromTemplate @ 0x1003f1dac // > EditorUI::createPrefab @ 0x1003f245c // // 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 SmartGameObject::updateSmartFrame(SmartGameObject *a1) { int m_objectID; // w8 _BOOL4 m_referenceOnly; // w8 const char *v4; // x9 const char *v5; // x10 char *v6; // x21 std::string *p_m_smartFrame; // x20 bool v8; // w0 bool v9; // w22 cocos2d::CCSpriteFrameCache *v10; // x0 cocos2d::CCSpriteFrame *v11; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v13; // [xsp+1Fh] [xbp-21h] m_objectID = a1->m_objectID; switch ( m_objectID ) { case 2897: m_referenceOnly = a1->m_referenceOnly; v4 = "smartBlock03_001.png"; v5 = "smartBlock03b_001.png"; break; case 2896: m_referenceOnly = a1->m_referenceOnly; v4 = "smartBlock02_001.png"; v5 = "smartBlock02b_001.png"; break; case 2895: m_referenceOnly = a1->m_referenceOnly; v4 = "smartBlock01_001.png"; v5 = "smartBlock01b_001.png"; break; default: return; } if ( m_referenceOnly ) v6 = (char *)v5; else v6 = (char *)v4; p_m_smartFrame = &a1->m_smartFrame; sub_100009900(__p, v6); v8 = sub_1000045BC(&a1->m_smartFrame.m_data.m_long.capacitym1, __p); v9 = v8; if ( v13 < 0 ) { operator delete(__p[0]); if ( v9 ) return; } else if ( v8 ) { return; } std::string::assign((std::string *)&a1->m_smartFrame, v6); v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( a1->m_smartFrame.m_data.m_short.shortStorage.__elems_[22] < 0 ) p_m_smartFrame = (std::string *)p_m_smartFrame->m_data.m_long.capacitym1; v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, (const char *)p_m_smartFrame); ((void (__fastcall *)(SmartGameObject *, cocos2d::CCSpriteFrame *))a1->setDisplayFrame)(a1, v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source