/* #define SECURE */
-
-
-/*
- * OPTION: Verify savefile Checksums (Angband 2.7.0 and up)
- * This option can help prevent "corruption" of savefiles, and also
- * stop intentional modification by amateur users.
- */
-#define VERIFY_CHECKSUMS
-
-
/*
* OPTION: Forbid the use of "fiddled" savefiles. As far as I can tell,
* a fiddled savefile is one with an internal timestamp different from
*/
#ifdef VERIFY_HONOR
# define VERIFY_SAVEFILE
-# define VERIFY_CHECKSUMS
# define VERIFY_TIMESTAMPS
#endif
*/
static errr rd_savefile_new_aux(player_type *creature_ptr)
{
-#ifdef VERIFY_CHECKSUMS
u32b n_x_check, n_v_check;
u32b o_x_check, o_v_check;
-#endif
/* Strip the version bytes */
strip_bytes(4);
}
}
-#ifdef VERIFY_CHECKSUMS
/* Save the checksum */
n_v_check = v_check;
return 11;
}
-#endif
return 0;
}
*/
static bool load_floor_aux(player_type *player_ptr, saved_floor_type *sf_ptr)
{
-#ifdef VERIFY_CHECKSUMS
u32b n_x_check, n_v_check;
u32b o_x_check, o_v_check;
-#endif
/* Hack -- decrypt (read xor_byte) */
xor_byte = 0;
/* Read -- have error? */
if (rd_saved_floor(player_ptr, sf_ptr)) return FALSE;
-#ifdef VERIFY_CHECKSUMS
/* Save the checksum */
n_v_check = v_check;
/* Verify */
if (o_x_check != n_x_check) return FALSE;
-#endif
return TRUE;
}