// // CustomizeObjectLayer::onUpdateCustomColor from 0x1401436e0 to 0x1401437ab (203 bytes) // // 2 xrefs: // > CustomizeObjectLayer::init @ 0x1401408ec // > @ 0x140917408 // // This function is hookable on this platform (idp: pc, 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 11:27:10 +0000 // __int64 __fastcall CustomizeObjectLayer::onUpdateCustomColor(__int64 a1, __int64 a2) { int v3; // eax int v4; // edx int v5; // ecx int v6; // eax __int64 v7; // rdx int v8; // edx const char *CString; // rdx cocos2d::CCString *v10; // rax *(_BYTE *)(a1 + 922) = 1; v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = 1; if ( v3 != 1 ) v4 = -1; v5 = v4 + *(_DWORD *)(a1 + 748); if ( v5 >= 10 ) { v6 = 999; if ( v5 > 999 ) goto LABEL_7; } else { v5 = 10; } v6 = v5; LABEL_7: *(_DWORD *)(a1 + 748) = v6; CustomizeObjectLayer::updateCustomColorLabels(a1); CustomizeObjectLayer::updateSelected(a1); *(_BYTE *)(a1 + 922) = 0; CustomizeObjectLayer::updateColorSprite(a1, v7); v8 = *(_DWORD *)(a1 + 748); if ( v8 < 1000 ) { if ( v8 <= 0 ) { CString = " "; } else { v10 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8); CString = cocos2d::CCString::getCString(v10); } } else { CString = (const char *)GJSpecialColorSelect::textForColorIdx((unsigned int)v8); } return (**(__int64 (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 808) + 360LL))( *(_QWORD *)(a1 + 808) + 360LL, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source