mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
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:
parent
97a35cd90c
commit
81650bcbe0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user