Ignore the minor version number when checking for DRO v1 files

- There exist files where the first word of the version number for DRO v1
  files is not 0 but something else completely. (Maybe it's not actually a
  version number?) Assume they are valid v1 files as long as the second
  word is a 1.
This commit is contained in:
Randy Heit 2014-02-24 15:48:41 -06:00
parent d430c18574
commit 0f7ad00d9a
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ fail: delete[] scoredata;
else if (((DWORD *)scoredata)[0] == MAKE_ID('D','B','R','A') && else if (((DWORD *)scoredata)[0] == MAKE_ID('D','B','R','A') &&
((DWORD *)scoredata)[1] == MAKE_ID('W','O','P','L')) ((DWORD *)scoredata)[1] == MAKE_ID('W','O','P','L'))
{ {
if (((DWORD *)scoredata)[2] == MAKE_ID(0,0,1,0)) if (LittleShort(((WORD *)scoredata)[5]) == 1)
{ {
RawPlayer = DosBox1; RawPlayer = DosBox1;
SamplesPerTick = OPL_SAMPLE_RATE / 1000; SamplesPerTick = OPL_SAMPLE_RATE / 1000;