mirror of
https://github.com/mupen64plus/mupen64plus-core.git
synced 2024-05-20 04:50:38 -04:00
Fix "IS Viewer" big-endian incompatibility.
When printing a game's debug messages, this code was causing the text to be byteswapped.
This commit is contained in:
parent
c4591b7f20
commit
0d2c3096e6
|
@ -43,7 +43,7 @@ void read_is_viewer(void* opaque, uint32_t address, uint32_t* value)
|
|||
struct is_viewer* is_viewer = (struct is_viewer*)opaque;
|
||||
address &= IS_ADDR_MASK;
|
||||
memcpy(value, &is_viewer->data[address], 4);
|
||||
*value = m64p_swap32(*value);
|
||||
*value = big32(*value);
|
||||
}
|
||||
|
||||
void write_is_viewer(void* opaque, uint32_t address, uint32_t value, uint32_t mask)
|
||||
|
@ -83,7 +83,7 @@ void write_is_viewer(void* opaque, uint32_t address, uint32_t value, uint32_t ma
|
|||
}
|
||||
else
|
||||
{
|
||||
word = m64p_swap32(word);
|
||||
word = big32(word);
|
||||
memcpy(&is_viewer->data[address], &word, sizeof(word));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue