Mercurial > hg > sidinfo
comparison sidlib.c @ 373:5554e9ec9146
Oops, we were supposed to read LE, not BE. Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Oct 2021 14:56:22 +0300 |
parents | 911814a9d5ee |
children | 5dde74cf43b3 |
comparison
equal
deleted
inserted
replaced
372:911814a9d5ee | 373:5554e9ec9146 |
---|---|
183 | 183 |
184 hdrEnd = thftell(ctx); | 184 hdrEnd = thftell(ctx); |
185 | 185 |
186 // If load address is 0, we need to get it | 186 // If load address is 0, we need to get it |
187 if (psid->loadAddress == 0 && | 187 if (psid->loadAddress == 0 && |
188 !thfread_be16(ctx, &psid->loadAddress)) | 188 !thfread_le16(ctx, &psid->loadAddress)) |
189 { | 189 { |
190 ret = th_io_error(ctx, ctx->status, | 190 ret = th_io_error(ctx, ctx->status, |
191 "Error reading SID data (load address)."); | 191 "Error reading SID data (load address)."); |
192 goto exit; | 192 goto exit; |
193 } | 193 } |