@@ -3,6 +3,7 @@ project(CTR-PC)
33include (CMakeDependentOption )
44
55# === OPTIONS ===
6+ option (CTR_ALTMODS "Enables defragged decomp sections" ON )
67
78option (CTR_60FPS "60 frames per second" ON )
89option (CTR_16BY9 "Widescreen" ON )
@@ -12,15 +13,19 @@ option(CTR_PENTA "Penta Max Stats" ON)
1213option (CTR_HARDER "Difficulty Selector (Arcade)" ON )
1314option (CTR_NEWCUPS "Cup Randomizer" ON )
1415option (CTR_BOOSTBAR "Super's reserve bar" ON )
16+ cmake_dependent_option (CTR_PROFILER "Debug profiler from PizzaHut" ON "CTR_ALTMODS" OFF )
1517
18+ option (USE_4PADTEST "1 controller for all 4 players" OFF )
1619option (CTR_RAMEX "8mb RAM expansion" OFF )
1720cmake_dependent_option (CTR_BIGQUEUE "Extended loading queue" OFF "CTR_RAMEX" OFF )
1821cmake_dependent_option (CTR_HIGH1P "All high model drivers" OFF "CTR_BIGQUEUE" OFF )
1922cmake_dependent_option (CTR_RANDOM "Character Randomizer" OFF "CTR_HIGH1P" OFF )
2023cmake_dependent_option (CTR_ONLINE "Online Multiplayer" OFF "CTR_HIGH1P" OFF )
2124cmake_dependent_option (CTR_HIGHMP "Multiplayer Maxed mod" OFF "CTR_RAMEX" OFF )
25+ cmake_dependent_option (CTR_NEWLEV "Enables custom levels" OFF "CTR_RAMEX" OFF )
2226
2327option (CTR_VR "Virtual Reality" OFF )
28+ cmake_dependent_option (CTR_PCDRV "Enables custom levels" OFF "CTR_DEFRAG" OFF )
2429
2530option (CTR_PRIM "PsyX USE_EXTENDED_PRIM_POINTERS" 0 )
2631
@@ -36,6 +41,10 @@ target_include_directories(ctr_bin PUBLIC "../include")
3641set_property (TARGET ctr_bin PROPERTY C_STANDARD 99 )
3742target_compile_options (ctr_bin PUBLIC -DUSE_EXTENDED_PRIM_POINTERS=${CTR_PRIM} )
3843
44+ if (CTR_ALTMODS)
45+ target_compile_options (ctr_bin PUBLIC -DUSE_ALTMODS )
46+ endif ()
47+
3948if (CTR_60FPS)
4049 target_compile_options (ctr_bin PUBLIC -DUSE_60FPS )
4150endif ()
@@ -60,6 +69,9 @@ endif()
6069if (CTR_BOOSTBAR)
6170 target_compile_options (ctr_bin PUBLIC -DUSE_BOOSTBAR )
6271endif ()
72+ if (CTR_PROFILER)
73+ target_compile_options (ctr_bin PUBLIC -DUSE_PROFILER )
74+ endif ()
6375
6476if (CTR_RAMEX)
6577 target_compile_options (ctr_bin PUBLIC -DUSE_RAMEX )
@@ -79,10 +91,16 @@ endif()
7991if (CTR_HIGHMP)
8092 target_compile_options (ctr_bin PUBLIC -DUSE_HIGHMP )
8193endif ()
94+ if (CTR_NEWLEV)
95+ target_compile_options (ctr_bin PUBLIC -DUSE_NEWLEV )
96+ endif ()
8297
8398if (CTR_VR)
8499 target_compile_options (ctr_bin PUBLIC -DUSE_VR )
85100endif ()
101+ if (CTR_PCDRV)
102+ target_compile_options (ctr_bin PUBLIC -DUSE_PCDRV )
103+ endif ()
86104
87105# Compiler options
88106if (CMAKE_C_COMPILER_ID MATCHES "Clang" )
@@ -94,7 +112,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
94112 endif ()
95113else ()
96114 # Assume GCC
97- target_compile_options (ctr_bin PRIVATE -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -Wno-implicit-int )
115+ target_compile_options (ctr_bin PRIVATE -Wno-int-conversion -Wno- implicit-function-declaration -Wno-incompatible-pointer-types -Wno-implicit-int )
98116endif ()
99117
100118if ("${CMAKE_BUILD_TYPE} " STREQUAL "Debug" )
0 commit comments