//
// GameObject::getRelativeSpriteColor from 0x44ea98 to 0x44eabc (36 bytes)
//
// 22 xrefs:
// > GameObject::updateCustomColorType @ 0x44ed8a
// > EditorUI::updateObjectInfoLabel @ 0x4890d4
// > EditorUI::updateObjectInfoLabel @ 0x4890fc
// > EditorUI::updateObjectInfoLabel @ 0x4891ac
// > EditorUI::updateObjectInfoLabel @ 0x4891c2
// > CustomizeObjectLayer::determineStartValues @ 0x57e364
// > CustomizeObjectLayer::determineStartValues @ 0x57e378
// > CustomizeObjectLayer::determineStartValues @ 0x57e3c4
// > CustomizeObjectLayer::determineStartValues @ 0x57e3dc
// > CustomizeObjectLayer::hsvPopupClosed @ 0x57e570
// > CustomizeObjectLayer::hsvPopupClosed @ 0x57e59e
// > CustomizeObjectLayer::getActiveMode @ 0x57e61c
// > CustomizeObjectLayer::getActiveMode @ 0x57e658
// > CustomizeObjectLayer::updateSelected @ 0x57e7e4
// > CustomizeObjectLayer::updateSelected @ 0x57e862
// > ConfigureHSVWidget::getHSV @ 0x5e4cc0
// > GameObject::setupCustomSprites @ 0x655446
// > HSVLiveOverlay::hsvChanged @ 0x69c256
// > HSVLiveOverlay::determineStartValues @ 0x69c2ca
// > HSVLiveOverlay::determineStartValues @ 0x69c2e2
// > HSVLiveOverlay::determineStartValues @ 0x69c2f8
// > HSVLiveOverlay::determineStartValues @ 0x69c30c
//
// 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:48:36 +0000
//
int __fastcall GameObject::getRelativeSpriteColor(GameObject *this, int a2)
{
_BOOL4 isColorObject; // r0
isColorObject = GameObject::isColorObject(this);
if ( a2 == 2 )
{
if ( isColorObject )
return *((_DWORD *)this + 240);
return *((_DWORD *)this + 241);
}
else
{
if ( !isColorObject )
return *((_DWORD *)this + 240);
return 0;
}
}