From e7ee9cf722658670ac6c7e4250b0e43f1c68a9b4 Mon Sep 17 00:00:00 2001 From: nukeykt Date: Sun, 3 Nov 2019 00:21:16 +0900 Subject: [PATCH] Add exhumed grp detection --- source/exhumed/src/grpscan.cpp | 2 ++ source/exhumed/src/grpscan.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/exhumed/src/grpscan.cpp b/source/exhumed/src/grpscan.cpp index 69ace654f..41a32e09d 100644 --- a/source/exhumed/src/grpscan.cpp +++ b/source/exhumed/src/grpscan.cpp @@ -41,6 +41,7 @@ static void process_vacapp15(int32_t crcval); static internalgrpinfo_t const internalgrpfiles[] = { { "Powerslave", POWERSLAVE_CRC, 27020745, GAMEFLAG_POWERSLAVE, 0 }, + { "Exhumed", EXHUMED_CRC, 27108170, GAMEFLAG_EXHUMED, 0 }, }; #endif @@ -57,6 +58,7 @@ static void LoadList(const char * filename) #ifndef EDUKE32_STANDALONE scriptfile_addsymbolvalue("GAMEFLAG_POWERSLAVE", GAMEFLAG_POWERSLAVE); scriptfile_addsymbolvalue("POWERSLAVE_CRC", POWERSLAVE_CRC); + scriptfile_addsymbolvalue("EXHUMED_CRC", EXHUMED_CRC); #endif while (!scriptfile_eof(script)) diff --git a/source/exhumed/src/grpscan.h b/source/exhumed/src/grpscan.h index 0403c5b76..34a4f53d4 100644 --- a/source/exhumed/src/grpscan.h +++ b/source/exhumed/src/grpscan.h @@ -32,7 +32,7 @@ extern "C" { // List of internally-known GRP files #define POWERSLAVE_CRC (int32_t)0x303CBD89 // TODO: -#define EXHUMED_CRC (int32_t)0x00000000 +#define EXHUMED_CRC (int32_t)0xE3B172F1 #define GAMEFLAG_POWERSLAVE 0x00000001 #define GAMEFLAG_EXHUMED 0x00000002