From beec29217cbf0cd048f7cf03d8fc40d00f640141 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Fri, 1 Mar 2024 18:42:05 -0500 Subject: [PATCH] Implemented warp debug menu feature --- CMakeLists.txt | 2 + assets/config_menu.rml | 2 +- assets/config_menu/debug.rml | 35 +- assets/recomp.rcss | 2 +- assets/scss/styles/pages/config/debug.scss | 2 + include/recomp_debug.h | 24 + patches/debug_patches.c | 97 +++ patches/input.h | 1 + patches/syms.ld | 4 + src/game/debug.cpp | 17 + src/game/scene_table.cpp | 853 +++++++++++++++++++++ src/main/main.cpp | 2 +- src/ui/ui_config.cpp | 78 ++ 13 files changed, 1094 insertions(+), 25 deletions(-) create mode 100644 include/recomp_debug.h create mode 100644 patches/debug_patches.c create mode 100644 src/game/debug.cpp create mode 100644 src/game/scene_table.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 8345e33..4be215f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,6 +127,8 @@ set (SOURCES ${CMAKE_SOURCE_DIR}/src/game/input.cpp ${CMAKE_SOURCE_DIR}/src/game/controls.cpp ${CMAKE_SOURCE_DIR}/src/game/config.cpp + ${CMAKE_SOURCE_DIR}/src/game/scene_table.cpp + ${CMAKE_SOURCE_DIR}/src/game/debug.cpp ${CMAKE_SOURCE_DIR}/src/game/quicksaving.cpp ${CMAKE_SOURCE_DIR}/src/ui/ui_renderer.cpp diff --git a/assets/config_menu.rml b/assets/config_menu.rml index 6387f7b..e32e950 100644 --- a/assets/config_menu.rml +++ b/assets/config_menu.rml @@ -62,7 +62,7 @@
Debug
- +