// // GameObject::updateBlendMode from 0x1005bdc90 to 0x1005bde0f (383 bytes) // // 4 xrefs: // > EditorUI::spriteFromObjectString @ 0x10003441e // > PlayLayer::manualUpdateObjectColors @ 0x1000b923c // > LevelEditorLayer::manualUpdateObjectColors @ 0x1000eb800 // > GameObject::addMainSpriteToParent @ 0x1005bde24 // // 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::updateBlendMode(GameObject *a1) { GJSpriteColor *m_baseColor; // rax int m_colorID; // r14d bool m_unk353; // al GameManager *v4; // rax bool shouldBlend; // al GJSpriteColor *m_detailColor; // rcx int m_defaultColorID; // r14d bool v8; // al GameManager *v9; // rax GameManager *v10; // rax GameManager *v11; // rax m_baseColor = a1->m_baseColor; m_colorID = m_baseColor->m_colorID; if ( !m_baseColor->m_colorID ) m_colorID = m_baseColor->m_defaultColorID; m_unk353 = a1->m_unk353; if ( !a1->m_editorEnabled ) { if ( m_unk353 ) goto LABEL_9; shouldBlend = 1; if ( (unsigned int)(m_colorID - 1005) >= 3 ) { if ( !m_colorID ) { LABEL_9: shouldBlend = 0; a1->m_shouldBlendBase = 0; if ( a1->m_colorSprite ) goto LABEL_13; goto LABEL_21; } v10 = GameManager::sharedState(); shouldBlend = PlayLayer::shouldBlend(v10->m_playLayer, m_colorID); a1->m_shouldBlendBase = shouldBlend; if ( a1->m_colorSprite ) goto LABEL_13; } else { a1->m_shouldBlendBase = 1; if ( a1->m_colorSprite ) goto LABEL_13; } LABEL_21: shouldBlend = 0; goto LABEL_22; } if ( m_unk353 ) m_colorID = 0; v4 = GameManager::sharedState(); shouldBlend = LevelEditorLayer::shouldBlend(v4->m_levelEditorLayer, m_colorID); a1->m_shouldBlendBase = shouldBlend; if ( !a1->m_colorSprite ) goto LABEL_21; LABEL_13: m_detailColor = a1->m_detailColor; m_defaultColorID = m_detailColor->m_colorID; if ( !m_detailColor->m_colorID ) m_defaultColorID = m_detailColor->m_defaultColorID; if ( m_defaultColorID != 1012 ) { v8 = a1->m_unk353; if ( !a1->m_editorEnabled ) { if ( !v8 ) { if ( (unsigned int)(m_defaultColorID - 1005) < 3 ) { shouldBlend = 1; goto LABEL_22; } if ( m_defaultColorID ) { v11 = GameManager::sharedState(); shouldBlend = PlayLayer::shouldBlend(v11->m_playLayer, m_defaultColorID); goto LABEL_22; } } goto LABEL_21; } if ( v8 ) m_defaultColorID = 0; v9 = GameManager::sharedState(); shouldBlend = LevelEditorLayer::shouldBlend(v9->m_levelEditorLayer, m_defaultColorID); } LABEL_22: a1->m_shouldBlendDetail = shouldBlend; }
GD Web Decomp Icon

GD Web Decomp

Raw Source