Skip to content

Commit 9719cfe

Browse files
committed
build(debug): add CMake option for debug cheats in release builds
1 parent 35b3f01 commit 9719cfe

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

GeneralsMD/Code/GameEngine/Include/Common/GameCommon.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747

4848
#pragma once
4949

50-
#define DONT_ALLOW_DEBUG_CHEATS_IN_RELEASE ///< Take of the DONT to get cheats back in to release
51-
5250
//#define _CAMPEA_DEMO
5351

5452
// ----------------------------------------------------------------------------------------------

cmake/config-debug.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ set_property(CACHE RTS_DEBUG_STACKTRACE PROPERTY STRINGS DEFAULT ON OFF)
1010
set(RTS_DEBUG_PROFILE "DEFAULT" CACHE STRING "Enables debug profiling. When DEFAULT, this option is enabled with DEBUG or INTERNAL")
1111
set_property(CACHE RTS_DEBUG_PROFILE PROPERTY STRINGS DEFAULT ON OFF)
1212

13+
set(RTS_DEBUG_CHEATS "DEFAULT" CACHE STRING "Enables debug cheats in release builds. When DEFAULT, this option is enabled with DEBUG or INTERNAL")
14+
set_property(CACHE RTS_DEBUG_CHEATS PROPERTY STRINGS DEFAULT ON OFF)
15+
1316
option(RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG "Includes normal debug log in crc log" OFF)
1417
option(RTS_DEBUG_MULTI_INSTANCE "Enables multi client instance support" OFF)
1518

@@ -34,6 +37,7 @@ define_debug_option(RTS_DEBUG_LOGGING DEBUG_LOGGING DISABLE_DEBUG_LOGGING
3437
define_debug_option(RTS_DEBUG_CRASHING DEBUG_CRASHING DISABLE_DEBUG_CRASHING DebugCrashing "Build with Debug Crashing")
3538
define_debug_option(RTS_DEBUG_STACKTRACE DEBUG_STACKTRACE DISABLE_DEBUG_STACKTRACE DebugStacktrace "Build with Debug Stacktracing")
3639
define_debug_option(RTS_DEBUG_PROFILE DEBUG_PROFILE DISABLE_DEBUG_PROFILE DebugProfile "Build with Debug Profiling")
40+
define_debug_option(RTS_DEBUG_CHEATS _ALLOW_DEBUG_CHEATS_IN_RELEASE DISABLE_DEBUG_CHEATS_IN_RELEASE DebugCheats "Build with Debug Cheats")
3741

3842
add_feature_info(DebugIncludeDebugLogInCrcLog RTS_DEBUG_INCLUDE_DEBUG_LOG_IN_CRC_LOG "Build with Debug Logging in CRC log")
3943
add_feature_info(DebugMultiInstance RTS_DEBUG_MULTI_INSTANCE "Build with Multi Client Instance support")

0 commit comments

Comments
 (0)