From d1bf7919daf830befd8c2166f3844fcdb56d68fa Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Sat, 27 May 2017 16:10:25 -0700 Subject: [PATCH] Move framebuffer_layout from Common to Core This removes a dependency inversion between core and common. It's also the proper place for the file since it makes screen layout decisions specific to the 3DS. --- src/common/CMakeLists.txt | 2 -- src/core/CMakeLists.txt | 2 ++ src/core/frontend/emu_window.h | 2 +- src/{common => core/frontend}/framebuffer_layout.cpp | 2 +- src/{common => core/frontend}/framebuffer_layout.h | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/{common => core/frontend}/framebuffer_layout.cpp (99%) rename src/{common => core/frontend}/framebuffer_layout.h (100%) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 6905d2d50..546a14500 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -27,7 +27,6 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in" "${CMAKE_CURRENT_SOU set(SRCS break_points.cpp file_util.cpp - framebuffer_layout.cpp hash.cpp logging/filter.cpp logging/text_formatter.cpp @@ -56,7 +55,6 @@ set(HEADERS common_paths.h common_types.h file_util.h - framebuffer_layout.h hash.h linear_disk_cache.h logging/text_formatter.h diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index b19335fe1..d9618c40c 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -32,6 +32,7 @@ set(SRCS frontend/camera/factory.cpp frontend/camera/interface.cpp frontend/emu_window.cpp + frontend/framebuffer_layout.cpp frontend/motion_emu.cpp gdbstub/gdbstub.cpp hle/config_mem.cpp @@ -216,6 +217,7 @@ set(HEADERS frontend/camera/factory.h frontend/camera/interface.h frontend/emu_window.h + frontend/framebuffer_layout.h frontend/input.h frontend/motion_emu.h gdbstub/gdbstub.h diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h index 36f2667fa..9414123a4 100644 --- a/src/core/frontend/emu_window.h +++ b/src/core/frontend/emu_window.h @@ -8,8 +8,8 @@ #include #include #include "common/common_types.h" -#include "common/framebuffer_layout.h" #include "common/math_util.h" +#include "core/frontend/framebuffer_layout.h" /** * Abstraction class used to provide an interface between emulation code and the frontend diff --git a/src/common/framebuffer_layout.cpp b/src/core/frontend/framebuffer_layout.cpp similarity index 99% rename from src/common/framebuffer_layout.cpp rename to src/core/frontend/framebuffer_layout.cpp index a2a0e7dad..f3815170d 100644 --- a/src/common/framebuffer_layout.cpp +++ b/src/core/frontend/framebuffer_layout.cpp @@ -5,7 +5,7 @@ #include #include "common/assert.h" -#include "common/framebuffer_layout.h" +#include "core/frontend/framebuffer_layout.h" #include "core/settings.h" #include "video_core/video_core.h" diff --git a/src/common/framebuffer_layout.h b/src/core/frontend/framebuffer_layout.h similarity index 100% rename from src/common/framebuffer_layout.h rename to src/core/frontend/framebuffer_layout.h