X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsetup.c;h=68875eb6de6da08aaa0834809bab859154844eba;hp=b9f9a3ae82b23eb72d8ec1069d69951cb1635cc3;hb=4bab1dda973bbcc46ca5ca9e2792b3bceb6694b9;hpb=8770e2b8105f8bb38e5ab4f385e044de16436dea diff --git a/src/libgame/setup.c b/src/libgame/setup.c index b9f9a3ae..68875eb6 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -30,7 +30,8 @@ #include "hash.h" -#define ENABLE_UNUSED_CODE 0 /* currently unused functions */ +#define USE_FILE_IDENTIFIERS FALSE /* do not use identifiers anymore */ +#define ENABLE_UNUSED_CODE FALSE /* for currently unused functions */ #define NUM_LEVELCLASS_DESC 8 @@ -2103,12 +2104,14 @@ SetupFileHash *loadSetupFileHash(char *filename) void checkSetupFileHashIdentifier(SetupFileHash *setup_file_hash, char *filename, char *identifier) { +#if USE_FILE_IDENTIFIERS char *value = getHashEntry(setup_file_hash, TOKEN_STR_FILE_IDENTIFIER); if (value == NULL) Error(ERR_WARN, "config file '%s' has no file identifier", filename); else if (!checkCookieString(value, identifier)) Error(ERR_WARN, "config file '%s' has wrong file identifier", filename); +#endif }