VERY experimental Nintendo Switch 2 emulator
C++
citra-qt: Move graphics debugging code into its own folder
Lioncash0ecbd152b1f7
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txtindex e1b3566bff..93f1c339d4 100644--- a/src/citra_qt/CMakeLists.txt+++ b/src/citra_qt/CMakeLists.txt@@ -6,13 +6,13 @@ set(SRCSconfig.cppdebugger/callstack.cppdebugger/disassembler.cpp- debugger/graphics.cpp- debugger/graphics_breakpoint_observer.cpp- debugger/graphics_breakpoints.cpp- debugger/graphics_cmdlists.cpp- debugger/graphics_surface.cpp- debugger/graphics_tracing.cpp- debugger/graphics_vertex_shader.cpp+ debugger/graphics/graphics.cpp+ debugger/graphics/graphics_breakpoint_observer.cpp+ debugger/graphics/graphics_breakpoints.cpp+ debugger/graphics/graphics_cmdlists.cpp+ debugger/graphics/graphics_surface.cpp+ debugger/graphics/graphics_tracing.cpp+ debugger/graphics/graphics_vertex_shader.cppdebugger/profiler.cppdebugger/ramview.cppdebugger/registers.cpp@@ -39,14 +39,14 @@ set(HEADERSconfig.hdebugger/callstack.hdebugger/disassembler.h- debugger/graphics.h- debugger/graphics_breakpoint_observer.h- debugger/graphics_breakpoints.h- debugger/graphics_breakpoints_p.h- debugger/graphics_cmdlists.h- debugger/graphics_surface.h- debugger/graphics_tracing.h- debugger/graphics_vertex_shader.h+ debugger/graphics/graphics.h+ debugger/graphics/graphics_breakpoint_observer.h+ debugger/graphics/graphics_breakpoints.h+ debugger/graphics/graphics_breakpoints_p.h+ debugger/graphics/graphics_cmdlists.h+ debugger/graphics/graphics_surface.h+ debugger/graphics/graphics_tracing.h+ debugger/graphics/graphics_vertex_shader.hdebugger/profiler.hdebugger/ramview.hdebugger/registers.hdiff --git a/src/citra_qt/debugger/graphics.cpp b/src/citra_qt/debugger/graphics/graphics.cppsimilarity index 98%rename from src/citra_qt/debugger/graphics.cpprename to src/citra_qt/debugger/graphics/graphics.cppindex ef337827ae..6a76adeaee 100644--- a/src/citra_qt/debugger/graphics.cpp+++ b/src/citra_qt/debugger/graphics/graphics.cpp@@ -3,7 +3,7 @@// Refer to the license.txt file included.#include <QListView>-#include "citra_qt/debugger/graphics.h"+#include "citra_qt/debugger/graphics/graphics.h"#include "citra_qt/util/util.h"extern GraphicsDebugger g_debugger;diff --git a/src/citra_qt/debugger/graphics.h b/src/citra_qt/debugger/graphics/graphics.hsimilarity index 100%rename from src/citra_qt/debugger/graphics.hrename to src/citra_qt/debugger/graphics/graphics.hdiff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp b/src/citra_qt/debugger/graphics/graphics_breakpoint_observer.cppsimilarity index 93%rename from src/citra_qt/debugger/graphics_breakpoint_observer.cpprename to src/citra_qt/debugger/graphics/graphics_breakpoint_observer.cppindex e01d3440e1..dc6070deaa 100644--- a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp+++ b/src/citra_qt/debugger/graphics/graphics_breakpoint_observer.cpp@@ -3,7 +3,7 @@// Refer to the license.txt file included.#include <QMetaType>-#include "citra_qt/debugger/graphics_breakpoint_observer.h"+#include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h"BreakPointObserverDock::BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context,const QString& title, QWidget* parent)diff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.h b/src/citra_qt/debugger/graphics/graphics_breakpoint_observer.hsimilarity index 100%rename from src/citra_qt/debugger/graphics_breakpoint_observer.hrename to src/citra_qt/debugger/graphics/graphics_breakpoint_observer.hdiff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics/graphics_breakpoints.cppsimilarity index 98%rename from src/citra_qt/debugger/graphics_breakpoints.cpprename to src/citra_qt/debugger/graphics/graphics_breakpoints.cppindex d2a036dfaf..030828ba89 100644--- a/src/citra_qt/debugger/graphics_breakpoints.cpp+++ b/src/citra_qt/debugger/graphics/graphics_breakpoints.cpp@@ -7,8 +7,8 @@#include <QPushButton>#include <QTreeView>#include <QVBoxLayout>-#include "citra_qt/debugger/graphics_breakpoints.h"-#include "citra_qt/debugger/graphics_breakpoints_p.h"+#include "citra_qt/debugger/graphics/graphics_breakpoints.h"+#include "citra_qt/debugger/graphics/graphics_breakpoints_p.h"#include "common/assert.h"BreakPointModel::BreakPointModel(std::shared_ptr<Pica::DebugContext> debug_context, QObject* parent)diff --git a/src/citra_qt/debugger/graphics_breakpoints.h b/src/citra_qt/debugger/graphics/graphics_breakpoints.hsimilarity index 100%rename from src/citra_qt/debugger/graphics_breakpoints.hrename to src/citra_qt/debugger/graphics/graphics_breakpoints.hdiff --git a/src/citra_qt/debugger/graphics_breakpoints_p.h b/src/citra_qt/debugger/graphics/graphics_breakpoints_p.hsimilarity index 100%rename from src/citra_qt/debugger/graphics_breakpoints_p.hrename to src/citra_qt/debugger/graphics/graphics_breakpoints_p.hdiff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics/graphics_cmdlists.cppsimilarity index 99%rename from src/citra_qt/debugger/graphics_cmdlists.cpprename to src/citra_qt/debugger/graphics/graphics_cmdlists.cppindex 98b619deaf..dab529e3a9 100644--- a/src/citra_qt/debugger/graphics_cmdlists.cpp+++ b/src/citra_qt/debugger/graphics/graphics_cmdlists.cpp@@ -13,7 +13,7 @@#include <QSpinBox>#include <QTreeView>#include <QVBoxLayout>-#include "citra_qt/debugger/graphics_cmdlists.h"+#include "citra_qt/debugger/graphics/graphics_cmdlists.h"#include "citra_qt/util/spinbox.h"#include "citra_qt/util/util.h"#include "common/vector_math.h"diff --git a/src/citra_qt/debugger/graphics_cmdlists.h b/src/citra_qt/debugger/graphics/graphics_cmdlists.hsimilarity index 100%rename from src/citra_qt/debugger/graphics_cmdlists.hrename to src/citra_qt/debugger/graphics/graphics_cmdlists.hdiff --git a/src/citra_qt/debugger/graphics_surface.cpp b/src/citra_qt/debugger/graphics/graphics_surface.cppsimilarity index 99%rename from src/citra_qt/debugger/graphics_surface.cpprename to src/citra_qt/debugger/graphics/graphics_surface.cppindex 906daaa50e..4efd95d3c9 100644--- a/src/citra_qt/debugger/graphics_surface.cpp+++ b/src/citra_qt/debugger/graphics/graphics_surface.cpp@@ -11,7 +11,7 @@#include <QPushButton>#include <QScrollArea>#include <QSpinBox>-#include "citra_qt/debugger/graphics_surface.h"+#include "citra_qt/debugger/graphics/graphics_surface.h"#include "citra_qt/util/spinbox.h"#include "common/color.h"#include "core/hw/gpu.h"diff --git a/src/citra_qt/debugger/graphics_surface.h b/src/citra_qt/debugger/graphics/graphics_surface.hsimilarity index 97%rename from src/citra_qt/debugger/graphics_surface.hrename to src/citra_qt/debugger/graphics/graphics_surface.hindex 19ffb55fb7..28f5650a73 100644--- a/src/citra_qt/debugger/graphics_surface.h+++ b/src/citra_qt/debugger/graphics/graphics_surface.h@@ -6,7 +6,7 @@#include <QLabel>#include <QPushButton>-#include "citra_qt/debugger/graphics_breakpoint_observer.h"+#include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h"class QComboBox;class QSpinBox;diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics/graphics_tracing.cppsimilarity index 99%rename from src/citra_qt/debugger/graphics_tracing.cpprename to src/citra_qt/debugger/graphics/graphics_tracing.cppindex 5c6b740343..716ed50b84 100644--- a/src/citra_qt/debugger/graphics_tracing.cpp+++ b/src/citra_qt/debugger/graphics/graphics_tracing.cpp@@ -12,7 +12,7 @@#include <QMessageBox>#include <QPushButton>#include <boost/range/algorithm/copy.hpp>-#include "citra_qt/debugger/graphics_tracing.h"+#include "citra_qt/debugger/graphics/graphics_tracing.h"#include "common/common_types.h"#include "core/hw/gpu.h"#include "core/hw/lcd.h"diff --git a/src/citra_qt/debugger/graphics_tracing.h b/src/citra_qt/debugger/graphics/graphics_tracing.hsimilarity index 92%rename from src/citra_qt/debugger/graphics_tracing.hrename to src/citra_qt/debugger/graphics/graphics_tracing.hindex 20acc91e71..3f73bcd2e5 100644--- a/src/citra_qt/debugger/graphics_tracing.h+++ b/src/citra_qt/debugger/graphics/graphics_tracing.h@@ -4,7 +4,7 @@#pragma once-#include "citra_qt/debugger/graphics_breakpoint_observer.h"+#include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h"class EmuThread;diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cppsimilarity index 99%rename from src/citra_qt/debugger/graphics_vertex_shader.cpprename to src/citra_qt/debugger/graphics/graphics_vertex_shader.cppindex 96b40db1ec..b75b94ef85 100644--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp+++ b/src/citra_qt/debugger/graphics/graphics_vertex_shader.cpp@@ -14,7 +14,7 @@#include <QSignalMapper>#include <QSpinBox>#include <QTreeView>-#include "citra_qt/debugger/graphics_vertex_shader.h"+#include "citra_qt/debugger/graphics/graphics_vertex_shader.h"#include "citra_qt/util/util.h"#include "video_core/pica.h"#include "video_core/pica_state.h"diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics/graphics_vertex_shader.hsimilarity index 97%rename from src/citra_qt/debugger/graphics_vertex_shader.hrename to src/citra_qt/debugger/graphics/graphics_vertex_shader.hindex 6e62fbb9bc..bedea0bed2 100644--- a/src/citra_qt/debugger/graphics_vertex_shader.h+++ b/src/citra_qt/debugger/graphics/graphics_vertex_shader.h@@ -6,7 +6,7 @@#include <QAbstractTableModel>#include <QTreeView>-#include "citra_qt/debugger/graphics_breakpoint_observer.h"+#include "citra_qt/debugger/graphics/graphics_breakpoint_observer.h"#include "nihstro/parser_shbin.h"#include "video_core/shader/shader.h"diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cppindex 4486f0870a..e16d3196c8 100644--- a/src/citra_qt/main.cpp+++ b/src/citra_qt/main.cpp@@ -17,12 +17,12 @@#include "citra_qt/configure_dialog.h"#include "citra_qt/debugger/callstack.h"#include "citra_qt/debugger/disassembler.h"-#include "citra_qt/debugger/graphics.h"-#include "citra_qt/debugger/graphics_breakpoints.h"-#include "citra_qt/debugger/graphics_cmdlists.h"-#include "citra_qt/debugger/graphics_surface.h"-#include "citra_qt/debugger/graphics_tracing.h"-#include "citra_qt/debugger/graphics_vertex_shader.h"+#include "citra_qt/debugger/graphics/graphics.h"+#include "citra_qt/debugger/graphics/graphics_breakpoints.h"+#include "citra_qt/debugger/graphics/graphics_cmdlists.h"+#include "citra_qt/debugger/graphics/graphics_surface.h"+#include "citra_qt/debugger/graphics/graphics_tracing.h"+#include "citra_qt/debugger/graphics/graphics_vertex_shader.h"#include "citra_qt/debugger/profiler.h"#include "citra_qt/debugger/ramview.h"#include "citra_qt/debugger/registers.h"