// // CustomizeObjectLayer::updateHSVButtons from 0x57e414 to 0x57e534 (288 bytes) // // 4 xrefs: // > CustomizeObjectLayer::hsvPopupClosed @ 0x57e5bc // > CustomizeObjectLayer::onPaste @ 0x57ebf0 // > CustomizeObjectLayer::onSelectMode @ 0x57edf4 // > CustomizeObjectLayer::init @ 0x57fd52 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:51 +0000 // int __fastcall CustomizeObjectLayer::updateHSVButtons(CustomizeObjectLayer *this) { int v2; // r5 int v3; // r6 _BOOL4 v4; // r5 cocos2d::CCSpriteFrameCache *v5; // r7 void (__fastcall *v6)(cocos2d::CCSpriteFrameCache *, int); // r8 cocos2d::CCSpriteFrameCache *v7; // r0 const char *v8; // r1 int v9; // r0 cocos2d::CCSpriteFrameCache *v10; // r4 int (__fastcall *v11)(cocos2d::CCSpriteFrameCache *, int); // r6 cocos2d::CCSpriteFrameCache *v12; // r0 const char *v13; // r1 int v14; // r0 float v16[3]; // [sp+0h] [bp-20h] BYREF unsigned __int16 v17; // [sp+Ch] [bp-14h] float v18[3]; // [sp+10h] [bp-10h] BYREF __int16 v19; // [sp+1Ch] [bp-4h] v2 = *((_DWORD *)this + 140); *((_DWORD *)this + 140) = 1; CustomizeObjectLayer::getHSV((CustomizeObjectLayer *)v16, (int)this); *((_DWORD *)this + 140) = 2; CustomizeObjectLayer::getHSV((CustomizeObjectLayer *)v18, (int)this); *((_DWORD *)this + 140) = v2; if ( v16[0] == flt_D2C2D8 && v16[1] == flt_D2C2DC && v16[2] == flt_D2C2E0 ) v3 = v17 - (unsigned __int16)word_D2C2E4 + (v17 == (unsigned __int16)word_D2C2E4) + (unsigned __int16)word_D2C2E4 - v17; else v3 = 0; v4 = v18[0] == flt_D2C2D8 && v18[1] == flt_D2C2DC && v18[2] == flt_D2C2E0 && v19 == word_D2C2E4; v5 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 146) + 536))(*((_DWORD *)this + 146)); v6 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v5 + 580); v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5); if ( v3 ) v8 = "GJ_hsvBtn_001.png"; else v8 = "GJ_hsv2Btn_001.png"; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8); v6(v5, v9); v10 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 147) + 536))(*((_DWORD *)this + 147)); v11 = *(int (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v10 + 580); v12 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v10); if ( v4 ) v13 = "GJ_hsvBtn_001.png"; else v13 = "GJ_hsv2Btn_001.png"; v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v13); return v11(v10, v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source