Add exhumed grp detection

This commit is contained in:
nukeykt 2019-11-03 00:21:16 +09:00 committed by Christoph Oelckers
parent 0e52ea85cc
commit e7ee9cf722
2 changed files with 3 additions and 1 deletions

View file

@ -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))

View file

@ -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