From 02e9d3ba77c73db0b92aa195826aab9adf92df92 Mon Sep 17 00:00:00 2001 From: scawful Date: Mon, 13 Oct 2025 12:06:31 -0400 Subject: [PATCH] refactor(gfx): update include paths for graphics headers - Changed include paths for SNES color and palette headers to reflect new organization under the 'types' and 'util' directories. - Ensured consistency in include paths across the graphics subsystem. Benefits: - Improves code organization and maintainability by adhering to the updated project structure. --- src/app/editor/palette/palette_utility.cc | 2 +- src/app/editor/palette/palette_utility.h | 3 ++- src/cli/handlers/graphics/gfx.cc | 4 ++-- src/cli/handlers/graphics/palette.cc | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/editor/palette/palette_utility.cc b/src/app/editor/palette/palette_utility.cc index 07edef5b..9d74a986 100644 --- a/src/app/editor/palette/palette_utility.cc +++ b/src/app/editor/palette/palette_utility.cc @@ -2,7 +2,7 @@ #include "absl/strings/str_format.h" #include "app/editor/palette/palette_editor.h" -#include "app/gfx/snes_palette.h" +#include "app/gfx/types/snes_palette.h" #include "app/gui/core/icons.h" #include "app/rom.h" #include "imgui/imgui.h" diff --git a/src/app/editor/palette/palette_utility.h b/src/app/editor/palette/palette_utility.h index 6f585de2..3fd834df 100644 --- a/src/app/editor/palette/palette_utility.h +++ b/src/app/editor/palette/palette_utility.h @@ -3,9 +3,10 @@ #include -#include "app/gfx/snes_color.h" +#include "app/gfx/types/snes_color.h" #include "app/gui/core/color.h" #include "imgui/imgui.h" +#include "app/rom.h" namespace yaze { namespace editor { diff --git a/src/cli/handlers/graphics/gfx.cc b/src/cli/handlers/graphics/gfx.cc index ef3481cf..ab796951 100644 --- a/src/cli/handlers/graphics/gfx.cc +++ b/src/cli/handlers/graphics/gfx.cc @@ -1,6 +1,6 @@ #include "cli/cli.h" -#include "app/gfx/scad_format.h" -#include "app/gfx/arena.h" +#include "app/gfx/util/scad_format.h" +#include "app/gfx/resource/arena.h" #include "absl/flags/flag.h" #include "absl/flags/declare.h" diff --git a/src/cli/handlers/graphics/palette.cc b/src/cli/handlers/graphics/palette.cc index 9199df86..b274fb2a 100644 --- a/src/cli/handlers/graphics/palette.cc +++ b/src/cli/handlers/graphics/palette.cc @@ -1,8 +1,8 @@ #include "cli/cli.h" #include "cli/tui/palette_editor.h" -#include "app/gfx/scad_format.h" -#include "app/gfx/snes_palette.h" +#include "app/gfx/util/scad_format.h" +#include "app/gfx/types/snes_palette.h" #include "absl/flags/flag.h" #include "absl/flags/declare.h"