// // CustomizeObjectLayer::updateSelected from 0x9839cc to 0x983af0 (292 bytes) // // 6 xrefs: // > CustomizeObjectLayer::onUpdateCustomColor @ 0x983b54 // > CustomizeObjectLayer::onSelectColor @ 0x983cec // > CustomizeObjectLayer::colorSetupClosed @ 0x983d48 // > CustomizeObjectLayer::onNextColorChannel @ 0x983e08 // > CustomizeObjectLayer::textChanged @ 0x984a44 // > @ 0x7ff90 // // 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:57:52 +0000 // __int64 __fastcall CustomizeObjectLayer::updateSelected(CustomizeObjectLayer *this, int a2) { int v3; // w20 GameObject *v4; // x0 _BOOL4 v5; // w22 __int64 result; // x0 int v7; // w1 int v8; // w1 int v9; // w2 int v10; // w24 unsigned int i; // w20 GameObject *v12; // x21 int *RelativeSpriteColor; // x0 int v14; // w1 int v15; // w2 v3 = a2; v4 = *((GameObject **)this + 86); v5 = a2 == 0; if ( v4 ) { result = GameObject::getRelativeSpriteColor(v4, *((_DWORD *)this + 186)); if ( result ) { if ( v5 ) { v8 = *(_DWORD *)(result + 4); v9 = 1101; if ( v8 <= 1100 ) { if ( v8 < 0 ) v9 = 0; else v9 = *(_DWORD *)(result + 4); } *(_DWORD *)(result + 4) = v9; *(_DWORD *)result = 0; } else { v7 = 1101; if ( v3 <= 1100 ) { if ( v3 < 0 ) v7 = 0; else v7 = v3; } *(_DWORD *)result = v7; } result = *((_QWORD *)this + 86); *(_BYTE *)(result + 1148) = 1; } } else { result = *((_QWORD *)this + 87); if ( result ) { if ( a2 < 0 ) a2 = 0; if ( v3 > 1100 ) v10 = 1101; else v10 = a2; for ( i = 0; ; ++i ) { result = cocos2d::CCArray::count((cocos2d::CCArray *)result); if ( i >= (unsigned int)result ) break; v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 87), i); RelativeSpriteColor = (int *)GameObject::getRelativeSpriteColor(v12, *((_DWORD *)this + 186)); v14 = 1101; if ( RelativeSpriteColor ) { if ( v5 ) { v15 = RelativeSpriteColor[1]; if ( v15 <= 1100 ) { if ( v15 < 0 ) v14 = 0; else v14 = RelativeSpriteColor[1]; } RelativeSpriteColor[1] = v14; *RelativeSpriteColor = 0; } else { *RelativeSpriteColor = v10; } *((_BYTE *)v12 + 1148) = 1; } result = *((_QWORD *)this + 87); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source