// // GameObject::saveActiveColors from 0x100260d6c to 0x100260ec4 (344 bytes) // // 6 xrefs: // > EnhancedGameObject::saveActiveColors @ 0x1002631b8 // > @ 0x1007c41f8 // > @ 0x1007cfec8 // > @ 0x1007d0ec0 // > @ 0x1007f8f38 // > @ 0x100816568 // // 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 __fastcall GameObject::saveActiveColors(GameObject *a1) { GJSpriteColor *m_baseColor; // x8 int m_colorID; // w10 GJSpriteColor *m_detailColor; // x9 int m_defaultColorID; // w11 bool m_usesHSV; // w8 GameObjectType m_objectType; // w8 bool v8; // w9 bool v9; // w8 a1->m_savedObjectType = a1->m_objectType; m_baseColor = a1->m_baseColor; if ( m_baseColor ) { m_colorID = m_baseColor->m_colorID; if ( !m_baseColor->m_colorID ) m_colorID = m_baseColor->m_defaultColorID; } else { m_colorID = 0; } m_detailColor = a1->m_detailColor; if ( m_detailColor ) { m_defaultColorID = m_detailColor->m_defaultColorID; if ( m_detailColor->m_colorID ) m_defaultColorID = m_detailColor->m_colorID; } else { m_defaultColorID = 0; } *(int32x2_t *)&a1->m_activeMainColorID = vmin_s32( vmax_s32((int32x2_t)__PAIR64__(m_defaultColorID, m_colorID), 0), vdup_n_s32(0x44Du)); a1->m_baseUsesHSV = m_baseColor->m_usesHSV; if ( m_detailColor ) m_usesHSV = m_detailColor->m_usesHSV; else m_usesHSV = 0; a1->m_detailUsesHSV = m_usesHSV; if ( !GameManager::sharedState()->m_editorEnabled ) { a1->m_mainActionSprite = GJEffectManager::getColorSprite(a1->m_goEffectManager, a1->m_activeMainColorID); a1->m_detailActionSprite = GJEffectManager::getColorSprite(a1->m_goEffectManager, a1->m_activeDetailColorID); } if ( a1->m_isDontEnter ) a1->m_ignoreEnter = 1; if ( a1->m_isDontFade ) a1->m_ignoreFade = 1; if ( a1->m_isNoTouch ) { m_objectType = Decoration; a1->m_objectType = Decoration; v8 = 1; } else { m_objectType = a1->m_objectType; v8 = (unsigned int)m_objectType > Slope || ((1 << m_objectType) & 0x2200001) == 0; } a1->m_canRotateFree = v8; v9 = m_objectType == Decoration; a1->m_isDecoration = v9; a1->m_isDecoration2 = v9; if ( a1->m_isHide && !a1->m_editorEnabled ) a1->m_isInvisible = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source