// // SmartGameObject::updateSmartFrame from 0x899b98 to 0x899cf4 (348 bytes) // // 7 xrefs: // > EditorUI::createPrefab @ 0x7c9d60 // > EditorUI::createSmartObjectsFromTemplate @ 0x7cb68c // > SmartGameObject::customObjectSetup @ 0x899d40 // > SmartGameObject::customObjectSetup @ 0x899d60 // > SetupSmartBlockLayer::onClose @ 0xb14148 // > SetupSmartBlockLayer::onClose @ 0xb14198 // > @ 0x69958 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:56:11 +0000 // __int64 __fastcall SmartGameObject::updateSmartFrame(SmartGameObject *this) { int v2; // w0 char *v4; // x21 size_t v5; // x0 _BOOL4 v6; // w22 void (__fastcall *v7)(SmartGameObject *, __int64); // x21 cocos2d::CCSpriteFrameCache *v8; // x0 const char *v9; // x1 __int64 v10; // x0 __int64 v11[2]; // [xsp+40h] [xbp+40h] BYREF void *v12; // [xsp+50h] [xbp+50h] v2 = *((_DWORD *)this + 257); switch ( v2 ) { case 2896: if ( *((_BYTE *)this + 1347) ) v4 = "smartBlock02b_001.png"; else v4 = "smartBlock02_001.png"; break; case 2897: if ( *((_BYTE *)this + 1347) ) v4 = "smartBlock03b_001.png"; else v4 = "smartBlock03_001.png"; break; case 2895: if ( *((_BYTE *)this + 1347) ) v4 = "smartBlock01b_001.png"; else v4 = "smartBlock01_001.png"; break; default: return _stack_chk_guard; } v11[0] = 0; v11[1] = 0; v12 = nullptr; v5 = strlen(v4); std::string::__init(v11, v4, v5); v6 = sub_86F364((__int64)this + 1376, (__int64)v11); if ( (v11[0] & 1) != 0 ) operator delete(v12); if ( !v6 ) { std::string::assign((__int64 *)this + 172, v4); v7 = *(void (__fastcall **)(SmartGameObject *, __int64))(*(_QWORD *)this + 1160LL); v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*(cocos2d::CCSpriteFrameCache **)this); v9 = (char *)this + 1377; if ( (*((_BYTE *)this + 1376) & 1) != 0 ) v9 = *((const char **)this + 174); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9); v7(this, v10); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source