// // CustomizeObjectLayer::getActiveMode from 0x983548 to 0x98366c (292 bytes) // // 8 xrefs: // > CustomizeObjectLayer::onLiveEdit @ 0x983680 // > CustomizeObjectLayer::onEditColor @ 0x9836c4 // > CustomizeObjectLayer::updateColorSprite @ 0x983730 // > CustomizeObjectLayer::onSelectColor @ 0x983d1c // > CustomizeObjectLayer::updateCurrentSelection @ 0x983e58 // > CustomizeObjectLayer::onPaste @ 0x983ee0 // > CustomizeObjectLayer::onSelectMode @ 0x9841cc // > @ 0x63a18 // // 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::getActiveMode(CustomizeObjectLayer *this, unsigned __int8 a2) { int v3; // w22 GameObject *v4; // x0 unsigned int *v5; // x0 unsigned int v6; // w21 unsigned int v7; // w0 unsigned int v10; // w19 int v11; // w22 GameObject *v12; // x0 unsigned int *RelativeSpriteColor; // x0 unsigned int v14; // w1 unsigned int v15; // w0 v3 = a2; v4 = *((GameObject **)this + 86); if ( !v4 ) { v10 = 0; v11 = a2 ^ 1; v6 = -1; if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 87)) ) { LABEL_20: if ( v11 ) return 0; return v6; } while ( 1 ) { v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 87), v10); RelativeSpriteColor = (unsigned int *)GameObject::getRelativeSpriteColor(v12, *((_DWORD *)this + 186)); if ( RelativeSpriteColor ) { v14 = *RelativeSpriteColor; v15 = RelativeSpriteColor[1]; if ( v14 == v15 || !v14 ) v14 = v15; if ( v11 ) v11 = v15 == v14; if ( v6 == -1 ) { v6 = v14; ++v10; goto LABEL_19; } if ( v14 != v6 ) { v6 = -1; if ( v11 ) return 0; return v6; } } ++v10; LABEL_19: if ( v10 >= (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 87)) ) goto LABEL_20; } } v5 = (unsigned int *)GameObject::getRelativeSpriteColor(v4, *((_DWORD *)this + 186)); if ( !v5 ) return 0; v6 = *v5; v7 = v5[1]; if ( v6 != v7 && v6 ) return v6; if ( v3 ) return v7; else return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source