From 7afae96530c013737dc77bb1f732d43e7ca413ec Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Wed, 6 Jan 2021 07:05:34 -0500 Subject: [PATCH] - add new detection hashes for newer versions of nerve.wad - partially fixes issue #1263 --- src/d_main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index f27f49ca6..7462f4250 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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()) {