From 4ad405c7ea9945d0509107c0580ebefb0097ffc6 Mon Sep 17 00:00:00 2001 From: Pepe20129 <72659707+Pepe20129@users.noreply.github.com> Date: Tue, 9 Jul 2024 00:21:29 +0200 Subject: [PATCH] Move GfxDebugger to Fast namespace (#642) --- src/CMakeLists.txt | 3 +++ src/Context.cpp | 6 +++--- src/Context.h | 9 +++------ src/{ => graphic/Fast3D}/debug/GfxDebugger.cpp | 5 ++--- src/{ => graphic/Fast3D}/debug/GfxDebugger.h | 5 ++--- src/graphic/Fast3D/gfx_pc.cpp | 2 +- src/public/bridge/gfxdebuggerbridge.cpp | 2 +- src/window/gui/GfxDebuggerWindow.cpp | 2 +- 8 files changed, 16 insertions(+), 18 deletions(-) rename src/{ => graphic/Fast3D}/debug/GfxDebugger.cpp (94%) rename src/{ => graphic/Fast3D}/debug/GfxDebugger.h (92%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1123683..5354dc4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -135,6 +135,7 @@ target_sources(libultraship PRIVATE ${Source_Files__Resource} ${Source_Files__Re #=================== Graphic =================== file(GLOB Source_Files__Graphic RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "graphic/Fast3D/*.h" "graphic/Fast3D/*.cpp" "graphic/Fast3D/*.c") +file(GLOB Source_Files__Graphic_Debug RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "graphic/Fast3D/debug/*.h" "graphic/Fast3D/debug/*.cpp" "graphic/Fast3D/debug/*.c") if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") list(FILTER Source_Files__Graphic EXCLUDE REGEX "graphic/Fast3D/gfx_dxgi*") @@ -151,7 +152,9 @@ if (CMAKE_SYSTEM_NAME STREQUAL "iOS") endif() source_group("graphic" FILES ${Source_Files__Graphic}) +source_group("graphic_debug" FILES ${Source_Files__Graphic_Debug}) target_sources(libultraship PRIVATE ${Source_Files__Graphic}) +target_sources(libultraship PRIVATE ${Source_Files__Graphic_Debug}) #=================== Packages & Includes =================== diff --git a/src/Context.cpp b/src/Context.cpp index db75423..ad4e1d6 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -5,7 +5,7 @@ #include #include #include "install_config.h" -#include "debug/GfxDebugger.h" +#include "graphic/Fast3D/debug/GfxDebugger.h" #include "graphic/Fast3D/Fast3dWindow.h" #ifdef _WIN32 @@ -241,7 +241,7 @@ void Context::InitGfxDebugger() { return; } - mGfxDebugger = std::make_shared(); + mGfxDebugger = std::make_shared(); } void Context::InitConsole() { @@ -298,7 +298,7 @@ std::shared_ptr