neogeo/neogeo_v.cpp: Make palette byte access behave the same as on real hardware (#11869)

On real hardware, a byte writen in palette RAM is repeated in the whole word. This is used by some software to detect emulation.
This commit is contained in:
zardam 2023-12-23 02:41:11 +01:00 committed by GitHub
parent 97a35cd90c
commit 81650bcbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,7 @@ uint16_t neogeo_base_state::paletteram_r(offs_t offset)
void neogeo_base_state::paletteram_w(offs_t offset, uint16_t data, uint16_t mem_mask)
{
offset += m_palette_bank;
data = COMBINE_DATA(&m_paletteram[offset]);
m_paletteram[offset] = data;
int dark = data >> 15;
int r = ((data >> 14) & 0x1) | ((data >> 7) & 0x1e);