ref: b5f2fa8693d3071aec454d748bbb23ca29f6e9b2
parent: 668516f4e6f1bd41483d561c8ec6f03d9bc8f4ba
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Sep 6 17:24:54 EDT 2019
Add a DEBUG_SAVE option to CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,8 +8,8 @@
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")
@@ -242,6 +242,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")
--- a/README.md
+++ b/README.md
@@ -48,7 +48,8 @@
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)
--
⑨