diff options
author | 2023-09-28 02:26:13 +1000 | |
---|---|---|
committer | 2023-09-28 02:26:13 +1000 | |
commit | 1eba9aabed59548ddeba8d8585b56f805fd6ac7f (patch) | |
tree | 9446f5f7ba286211b841d3221cbc78e72fcf06f7 /src/lib/formats/hti_tape.cpp | |
parent | eaa84a2679b3fd3f8c878bd9bc7b4be0cc151ef8 (diff) |
formats/hti_tape.cpp: Fixed regression detecting magic numbers.
Diffstat (limited to 'src/lib/formats/hti_tape.cpp')
-rw-r--r-- | src/lib/formats/hti_tape.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/hti_tape.cpp b/src/lib/formats/hti_tape.cpp index 1dc0613ce8d..f4a5727d591 100644 --- a/src/lib/formats/hti_tape.cpp +++ b/src/lib/formats/hti_tape.cpp @@ -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; |