// // cocos2d::extension::CCScale9Sprite::setColor from 0x100216324 to 0x1002163dc (184 bytes) // // 2 xrefs: // > sub_1002163DC @ 0x1002163e0 // > @ 0x1007c3220 // // 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 cocos2d::extension::CCScale9Sprite::setColor( cocos2d::extension::CCScale9Sprite *a1, const cocos2d::ccColor3B *a2) { cocos2d::CCSpriteBatchNode *scale9Image; // x0 __int16 v5; // w9 __int64 v6; // x0 unsigned int *v7; // x9 __int64 v8; // x8 const void **v9; // x22 unsigned __int64 v10; // x23 void (__fastcall ***v11)(void *, const cocos2d::ccColor3B *); // x0 scale9Image = a1->_scale9Image; if ( scale9Image ) { v5 = *(_WORD *)&a2->r; a1->_color.b = a2->b; *(_WORD *)&a1->_color.r = v5; v6 = ((__int64 (__fastcall *)(cocos2d::CCSpriteBatchNode *))scale9Image->getChildren)(scale9Image); if ( v6 ) { v7 = *(unsigned int **)(v6 + 56); v8 = *v7; if ( (_DWORD)v8 ) { v9 = *((const void ***)v7 + 2); v10 = (unsigned __int64)&v9[v8 - 1]; do { if ( !*v9 ) break; v11 = (void (__fastcall ***)(void *, const cocos2d::ccColor3B *))__dynamic_cast( *v9, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&off_100770F10, -2); if ( v11 ) (**v11)(v11, a2); ++v9; } while ( (unsigned __int64)v9 <= v10 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source