mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Merge pull request #4349 from container1234/bba
EXI: Fix incorrect byte order when writing 3-byte data to BBA_WRTXFIFOD
This commit is contained in:
@ -345,6 +345,8 @@ void CEXIETHERNET::MXCommandHandler(u32 data, u32 size)
|
|||||||
case BBA_WRTXFIFOD:
|
case BBA_WRTXFIFOD:
|
||||||
if (size == 2)
|
if (size == 2)
|
||||||
data = Common::swap16(data & 0xffff);
|
data = Common::swap16(data & 0xffff);
|
||||||
|
else if (size == 3)
|
||||||
|
data = Common::swap32(data & 0xffffff) >> 8;
|
||||||
else if (size == 4)
|
else if (size == 4)
|
||||||
data = Common::swap32(data);
|
data = Common::swap32(data);
|
||||||
DirectFIFOWrite((u8*)&data, size);
|
DirectFIFOWrite((u8*)&data, size);
|
||||||
|
Reference in New Issue
Block a user