comparison minijss/jloadxm.c @ 2506:609c6bcf0dac

Add (a redundant) check for XM version.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 29 Apr 2020 01:14:30 +0300
parents e0f9200b94ad
children f5bdd6ed298e
comparison
equal deleted inserted replaced
2505:9708182ea7f2 2506:609c6bcf0dac
339 ret = dmf_read_byte(inFile, &tmp); 339 ret = dmf_read_byte(inFile, &tmp);
340 xmP.nrows = ((Uint16) tmp) + 1; 340 xmP.nrows = ((Uint16) tmp) + 1;
341 headSize = 4 + 1 + 1 + 2; 341 headSize = 4 + 1 + 1 + 2;
342 } 342 }
343 else 343 else
344 if (module->intVersion == 0x0104)
344 { 345 {
345 // 0x0104 has 16-bit word for nrows 346 // 0x0104 has 16-bit word for nrows
346 ret = dmf_read_le16(inFile, &xmP.nrows); 347 ret = dmf_read_le16(inFile, &xmP.nrows);
347 headSize = 4 + 1 + 2 + 2; 348 headSize = 4 + 1 + 2 + 2;
348 } 349 }