You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/debug_settings.h

61 lines
2.0 KiB
C

/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file debug_settings.h Debug settings. */
#ifndef DEBUG_SETTINGS_H
#define DEBUG_SETTINGS_H
#include "settings_type.h"
#include "core/bitmath_func.hpp"
enum ChickenBitFlags {
DCBF_VEH_TICK_CACHE = 0,
DCBF_MP_NO_STATE_CSUM_CHECK = 1,
DCBF_DESYNC_CHECK_PERIODIC = 2,
DCBF_DESYNC_CHECK_POST_COMMAND = 3,
DCBF_DESYNC_CHECK_NO_GENERAL = 4,
DCBF_DESYNC_CHECK_PERIODIC_SIGNALS = 5,
DCBF_CMD_NO_TEST_ALL = 6,
DCBF_WATER_REGION_CLEAR = 7,
DCBF_WATER_REGION_INIT_ALL = 8,
};
inline bool HasChickenBit(ChickenBitFlags flag)
{
return HasBit(_settings_game.debug.chicken_bits, flag);
}
enum NewGRFOptimiserFlags {
NGOF_NO_OPT_VARACT2 = 0,
NGOF_NO_OPT_VARACT2_DSE = 1,
NGOF_NO_OPT_VARACT2_GROUP_PRUNE = 2,
NGOF_NO_OPT_VARACT2_EXPENSIVE_VARS = 3,
NGOF_NO_OPT_VARACT2_SIMPLIFY_STORES = 4,
NGOF_NO_OPT_VARACT2_ADJUST_ORDERING = 5,
NGOF_NO_OPT_VARACT2_INSERT_JUMPS = 6,
NGOF_NO_OPT_VARACT2_CB_QUICK_EXIT = 7,
NGOF_NO_OPT_VARACT2_PROC_INLINE = 8,
};
inline bool HasGrfOptimiserFlag(NewGRFOptimiserFlags flag)
{
return HasBit(_settings_game.debug.newgrf_optimiser_flags, flag);
}
enum MiscDebugFlags {
MDF_OVERHEAT_BREAKDOWN_OPEN_WIN,
MDF_ZONING_DEBUG_MODES,
MDF_UNUSED1,
MDF_UNUSED2,
MDF_NEWGRF_SG_SAVE_RAW,
MDF_SPECIAL_CMDS,
};
extern uint32_t _misc_debug_flags;
#endif /* DEBUG_SETTINGS_H */