mirror of
https://github.com/holub/mame
synced 2025-06-28 15:14:21 +03:00
formats/hti_tape.cpp: Fixed regression detecting magic numbers.
This commit is contained in:
parent
eaa84a2679
commit
1eba9aabed
@ -58,7 +58,7 @@ bool hti_format_t::load_tape(util::random_read &io)
|
||||
uint8_t tmp[ 4 ];
|
||||
|
||||
io.read(tmp, 4, actual);
|
||||
auto magic = get_u32le(tmp);
|
||||
auto magic = get_u32be(tmp);
|
||||
if (((m_img_format == HTI_DELTA_MOD_16_BITS || m_img_format == HTI_DELTA_MOD_17_BITS) && magic != FILE_MAGIC_DELTA && magic != OLD_FILE_MAGIC) ||
|
||||
(m_img_format == HTI_MANCHESTER_MOD && magic != FILE_MAGIC_MANCHESTER)) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user