// // CustomizeObjectLayer::onNextColorChannel from 0x1001da620 to 0x1001da749 (297 bytes) // // 1 xrefs: // > CustomizeObjectLayer::init @ 0x1001d9275 // // 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 12:26:25 +0000 // __int64 __fastcall CustomizeObjectLayer::onNextColorChannel(__int64 a1, __int64 a2, __int64 a3) { char v3; // al double v4; // xmm0_8 __int64 v5; // rax int NextColorChannel; // r14d int v7; // r15d __int64 v8; // rsi unsigned int v9; // r12d __int64 v10; // r13 __int64 CString; // rax __int64 v12; // rax const std::string::value_type *v13; // rsi char v15; // [rsp-8h] [rbp-30h] v15 = v3; *(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0]; NextColorChannel = LevelEditorLayer::getNextColorChannel(*(_QWORD **)(v5 + 552)); v7 = NextColorChannel; if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD ) { *(_DWORD *)(a1 + 748) = NextColorChannel; *(_BYTE *)(a1 + 922) = 1; CustomizeObjectLayer::updateCustomColorLabels(a1); *(_BYTE *)(a1 + 922) = 0; v7 = 1008; } CustomizeObjectLayer::updateSelected(a1, (unsigned int)NextColorChannel); v8 = 0; if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 704)) ) { v9 = 0; while ( 1 ) { v10 = sub_1007FEFE0(*(_QWORD *)(a1 + 704), v9); if ( (*(unsigned int (__fastcall **)(__int64, double))(*(_QWORD *)v10 + 64LL))(v10, v4) == v7 ) break; if ( ++v9 >= (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 704)) ) { v8 = 0; goto LABEL_9; } } v8 = v10; } LABEL_9: CustomizeObjectLayer::highlightSelected(a1, v8); CustomizeObjectLayer::updateColorSprite(a1); if ( NextColorChannel < 1000 ) { if ( NextColorChannel <= 0 ) { v13 = " "; return (*(__int64 (__fastcall **)(_QWORD, const std::string::value_type *, double))(**(_QWORD **)(a1 + 808) + 928LL))( *(_QWORD *)(a1 + 808), v13, v4); } v12 = sub_10088E820("%i", v15); CString = cocos2d::CCString::getCString(v12); } else { CString = GJSpecialColorSelect::textForColorIdx((unsigned int)NextColorChannel); } v13 = (const std::string::value_type *)CString; return (*(__int64 (__fastcall **)(_QWORD, const std::string::value_type *, double))(**(_QWORD **)(a1 + 808) + 928LL))( *(_QWORD *)(a1 + 808), v13, v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source