From b5f2fa8693d3071aec454d748bbb23ca29f6e9b2 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Fri, 6 Sep 2019 21:24:54 +0100 Subject: [PATCH] Add a DEBUG_SAVE option to CMakeLists.txt --- CMakeLists.txt | 8 ++++++-- README.md | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0778313d..0f688f67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,8 +8,8 @@ set(BUILD_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/game") set(ASSETS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/assets") option(JAPANESE "Enable the Japanese-language build" OFF) -option(FIX_BUGS "Fix certain bugs (see src/Bug Fixes.txt)" OFF) -option(NONPORTABLE "Enable bits of code that aren't portable, but are what the original game used" OFF) +option(FIX_BUGS "Fix various bugs in the game" OFF) +option(DEBUG_SAVE "Re-enable the ability to drag-and-drop save files onto the window" OFF) option(FORCE_LOCAL_LIBS "Compile the built-in versions of SDL2, FreeType, and FLTK instead of using the system-provided ones" OFF) set(RENDERER "Texture" CACHE STRING "Which renderer the game should use: 'OpenGL3' for an OpenGL 3.2 renderer, 'Texture' for SDL2's hardware-accelerated Texture API, 'Surface' for SDL2's software-rendered Surface API, and 'Software' for a handwritten software renderer") @@ -244,6 +244,10 @@ if(FIX_BUGS) target_compile_definitions(CSE2 PRIVATE FIX_BUGS) endif() +if(DEBUG_SAVE) + target_compile_definitions(CSE2 PRIVATE DEBUG_SAVE) +endif() + if(RENDERER MATCHES "OpenGL3") target_sources(CSE2 PRIVATE "src/Backends/Rendering/OpenGL3.cpp") elseif(RENDERER MATCHES "Texture") diff --git a/README.md b/README.md index 08b6f087..10b3af12 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,8 @@ You can also add the following flags: Name | Function --------|-------- `-DJAPANESE=ON` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation) -`-DFIX_BUGS=ON` | Fix bugs in the game (see [src/Bug Fixes.txt](src/Bug%20Fixes.txt)) +`-DFIX_BUGS=ON` | Fix various bugs in the game +`-DDEBUG_SAVE=ON` | Re-enable the ability to drag-and-drop save files onto the window `-DFORCE_LOCAL_LIBS=ON` | Compile the built-in versions of SDL2, FreeType, and FLTK instead of using the system-provided ones `-DRENDERER=OpenGL3` | Use the hardware-accelerated OpenGL 3.2 renderer `-DRENDERER=Texture` | Use the hardware-accelerated SDL2 Texture API renderer (default)