// // CustomizeObjectLayer::getActiveMode from 0x57e60c to 0x57e698 (140 bytes) // // 7 xrefs: // > CustomizeObjectLayer::onLiveEdit @ 0x57e69e // > CustomizeObjectLayer::onEditColor @ 0x57e6ca // > CustomizeObjectLayer::updateColorSprite @ 0x57e70c // > CustomizeObjectLayer::onSelectColor @ 0x57e988 // > CustomizeObjectLayer::updateCurrentSelection @ 0x57eb78 // > CustomizeObjectLayer::onPaste @ 0x57ebde // > CustomizeObjectLayer::onSelectMode @ 0x57ee02 // // 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::getActiveMode(CustomizeObjectLayer *this, int a2) { GameObject *v3; // r0 int *RelativeSpriteColor; // r0 int v6; // r4 int v7; // r6 unsigned int v8; // r5 GameObject *v9; // r0 int *v10; // r0 int v11; // r2 int v12; // r3 v3 = *((GameObject **)this + 133); if ( v3 ) { RelativeSpriteColor = (int *)GameObject::getRelativeSpriteColor(v3, *((_DWORD *)this + 140)); if ( !RelativeSpriteColor ) return 0; v6 = *RelativeSpriteColor; if ( RelativeSpriteColor[1] != *RelativeSpriteColor ) { if ( v6 ) return v6; v6 = RelativeSpriteColor[1]; } if ( !a2 ) return 0; } else { v7 = a2 ^ 1; v8 = 0; v6 = -1; while ( v8 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 134)) ) { v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 134), v8); v10 = (int *)GameObject::getRelativeSpriteColor(v9, *((_DWORD *)this + 140)); if ( v10 ) { v11 = v10[1]; v12 = *v10; if ( v11 != *v10 && !v12 ) v12 = v10[1]; if ( v7 ) v7 = v12 == v11; if ( v6 != -1 && v6 != v12 ) { v6 = -1; break; } } else { v12 = v6; } ++v8; v6 = v12; } if ( v7 ) return 0; } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source