// // CustomizeObjectLayer::updateColorSprite from 0x98370c to 0x98380c (256 bytes) // // 9 xrefs: // > CustomizeObjectLayer::colorSelectClosed @ 0x98380c // > CustomizeObjectLayer::onUpdateCustomColor @ 0x983b60 // > CustomizeObjectLayer::onSelectColor @ 0x983d10 // > CustomizeObjectLayer::colorSetupClosed @ 0x983d90 // > CustomizeObjectLayer::onNextColorChannel @ 0x983e28 // > CustomizeObjectLayer::onPaste @ 0x983ed4 // > CustomizeObjectLayer::onSelectMode @ 0x9841c0 // > CustomizeObjectLayer::textChanged @ 0x984a4c // > @ 0x7cdc8 // // 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::updateColorSprite(CustomizeObjectLayer *this) { _BOOL8 v1; // x1 GameManager *ActiveMode; // x0 int v4; // w20 __int64 v5; // x0 GameManager *v6; // x0 int v7; // w0 __int64 result; // x0 __int64 v9; // x0 ColorAction *ColorAction; // x0 v1 = 0; if ( *((_DWORD *)this + 186) == 3 ) return (*(__int64 (__fastcall **)(_QWORD, _BOOL8))(**((_QWORD **)this + 113) + 344LL))(*((_QWORD *)this + 113), v1); ActiveMode = (GameManager *)CustomizeObjectLayer::getActiveMode(this, 1u); v4 = (int)ActiveMode; if ( (int)ActiveMode > 0 && (v5 = GameManager::sharedState(ActiveMode), v6 = (GameManager *)(unsigned __int8)GJEffectManager::colorExists( *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v5 + 552) + 3272LL) + 320LL), v4), (_BYTE)v6) ) { v9 = GameManager::sharedState(v6); ColorAction = (ColorAction *)GJEffectManager::getColorAction( *(GJEffectManager **)(*(_QWORD *)(*(_QWORD *)(v9 + 552) + 3272LL) + 320LL), v4); ColorChannelSprite::updateValues(*((ColorChannelSprite **)this + 112), ColorAction); v7 = v4 - 1005; } else { ColorChannelSprite::updateValues(*((ColorChannelSprite **)this + 112), nullptr); v7 = v4 - 1005; if ( (unsigned int)(v4 - 1005) > 7 ) { LABEL_5: v1 = v4 > 0; return (*(__int64 (__fastcall **)(_QWORD, _BOOL8))(**((_QWORD **)this + 113) + 344LL))( *((_QWORD *)this + 113), v1); } } switch ( v7 ) { case 0: case 1: case 2: case 5: case 6: case 7: result = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 113) + 344LL))( *((_QWORD *)this + 113), 0); break; default: goto LABEL_5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source