// // CustomizeObjectLayer::updateColorSprite from 0x57e6fe to 0x57e78a (140 bytes) // // 8 xrefs: // > CustomizeObjectLayer::colorSelectClosed @ 0x57e78a // > CustomizeObjectLayer::onSelectColor @ 0x57e980 // > CustomizeObjectLayer::colorSetupClosed @ 0x57eaf4 // > CustomizeObjectLayer::onNextColorChannel @ 0x57eb62 // > CustomizeObjectLayer::onPaste @ 0x57ebd6 // > CustomizeObjectLayer::onSelectMode @ 0x57edfa // > CustomizeObjectLayer::onUpdateCustomColor @ 0x57ee86 // > CustomizeObjectLayer::textChanged @ 0x57f314 // // 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::updateColorSprite(ColorChannelSprite **this) { GameManager *ActiveMode; // r0 int v3; // r4 int v4; // r0 GameManager *v5; // r0 int v6; // r0 ColorAction *ColorAction; // r1 ColorChannelSprite *v8; // r0 bool v9; // cc unsigned int v10; // r4 int v11; // r1 if ( *(this + 140) == (ColorChannelSprite *)((char *)&dword_0 + 3) ) { v3 = 0; } else { ActiveMode = (GameManager *)CustomizeObjectLayer::getActiveMode((CustomizeObjectLayer *)this, 1); v3 = (int)ActiveMode; if ( (int)ActiveMode > 0 && (v4 = GameManager::sharedState(ActiveMode), (v5 = (GameManager *)GJEffectManager::colorExists( *(GJEffectManager **)(*(_DWORD *)(*(_DWORD *)(v4 + 408) + 2084) + 264), v3)) != nullptr) ) { v6 = GameManager::sharedState(v5); ColorAction = (ColorAction *)GJEffectManager::getColorAction( *(GJEffectManager **)(*(_DWORD *)(*(_DWORD *)(v6 + 408) + 2084) + 264), v3); v8 = *(this + 160); } else { v8 = *(this + 160); ColorAction = nullptr; } ColorChannelSprite::updateValues(v8, ColorAction); } v9 = v3 <= 0; v10 = v3 - 1005; v11 = v9; if ( v10 <= 7 && ((1 << v10) & 0xE7) != 0 ) v11 = 1; return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 161) + 172))(*(this + 161), v11 ^ 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source