// // GameObject::duplicateColorMode from 0x1401a1ba0 to 0x1401a1c78 (216 bytes) // // 8 xrefs: // > CustomizeObjectLayer::onPaste @ 0x1400a80e9 // > CustomizeObjectLayer::onPaste @ 0x1400a8129 // > EditorUI::onPasteColor @ 0x140114608 // > EditorUI::onPasteColor @ 0x140114648 // > EditorUI::createRockEdges @ 0x14012e62e // > GameObject::duplicateValues @ 0x1401a1e8e // > LevelEditorLayer::copyObjectState @ 0x1402e1397 // > @ 0x1406cbfa0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GameObject::duplicateColorMode(GameObject *a1) { __int64 v1; // rdx __int64 v3; // r10 __int64 v4; // r8 int v5; // ecx int v6; // eax int v7; // ecx GJSpriteColor *m_detailColor; // r10 int v9; // edx int v10; // eax bool v11; // sf v3 = *(_QWORD *)(v1 + 1104); v4 = *(_QWORD *)(v1 + 1112); if ( a1->m_customSpriteColor && !a1->m_detailColor && v4 ) { if ( (v5 = *(_DWORD *)(v4 + 4), v5 != *(_DWORD *)v4) && *(_DWORD *)v4 || v5 ) v3 = *(_QWORD *)(v1 + 1112); } v6 = *(_DWORD *)v3; if ( *(_DWORD *)(v3 + 4) == *(_DWORD *)v3 || !v6 ) v6 = *(_DWORD *)(v3 + 4); v7 = 1101; if ( v6 < 0 ) v6 = 0; if ( v6 > 1101 ) v6 = 1101; a1->m_baseColor->m_colorID = v6; a1->m_baseColor->m_hsv = *(cocos2d::ccHSVValue *)(v3 + 16); if ( v4 ) { m_detailColor = a1->m_detailColor; if ( m_detailColor ) { v9 = *(_DWORD *)(v4 + 4); v10 = *(_DWORD *)v4; if ( v9 == *(_DWORD *)v4 || (v11 = v10 < 0, !v10) ) { v10 = *(_DWORD *)(v4 + 4); v11 = v9 < 0; } if ( v11 ) v10 = 0; if ( v10 <= 1101 ) { v7 = v10; if ( v10 < 0 ) v7 = 1011; } m_detailColor->m_colorID = v7; a1->m_detailColor->m_hsv = *(cocos2d::ccHSVValue *)(v4 + 16); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source