- add new detection hashes for newer versions of nerve.wad

- partially fixes issue #1263
This commit is contained in:
Rachael Alexanderson 2021-01-06 07:05:34 -05:00
parent 65c7b77997
commit 7afae96530

View file

@ -2457,7 +2457,7 @@ void RenameNerve(FileSystem& fileSystem)
if (gameinfo.gametype != GAME_Doom)
return;
const int numnerveversions = 2;
const int numnerveversions = 4;
bool found = false;
uint8_t cksum[16];
@ -2465,9 +2465,13 @@ void RenameNerve(FileSystem& fileSystem)
{ 0x96, 0x7d, 0x5a, 0xe2, 0x3d, 0xaf, 0x45, 0x19,
0x62, 0x12, 0xae, 0x1b, 0x60, 0x5d, 0xa3, 0xb0 },
{ 0x42, 0x14, 0xc4, 0x76, 0x51, 0xb6, 0x3e, 0xe2,
0x25, 0x7b, 0x1c, 0x24, 0x90, 0xa5, 0x18, 0xc9 }
0x25, 0x7b, 0x1c, 0x24, 0x90, 0xa5, 0x18, 0xc9 },
{ 0x35, 0x44, 0xe1, 0x90, 0x30, 0x91, 0xc5, 0x0b,
0xa5, 0x00, 0x49, 0xdb, 0x74, 0xcd, 0x7d, 0x25 },
{ 0x91, 0x43, 0xb3, 0x92, 0x39, 0x2a, 0x7a, 0xc8,
0x70, 0xc2, 0xca, 0x36, 0xac, 0x65, 0xaf, 0x45 }
};
size_t nervesize[numnerveversions] = { 3819855, 3821966 }; // NERVE.WAD's file size
size_t nervesize[numnerveversions] = { 3819855, 3821966, 3821885, 4003409 }; // NERVE.WAD's file size
int w = fileSystem.GetIwadNum();
while (++w < fileSystem.GetNumWads())
{