all repos — mgba @ 93e5b6da7b69d94bbe2e0783f05897b1adee755b

mGBA Game Boy Advance Emulator

All: Rearrange some directories to make more sense
Jeffrey Pfau jeffrey@endrift.com
Wed, 04 May 2016 01:28:30 -0700
commit

93e5b6da7b69d94bbe2e0783f05897b1adee755b

parent

df8cddb289bece5bd4ed0db9355048ecd006d12c

M CMakeLists.txtCMakeLists.txt

@@ -39,21 +39,20 @@ file(GLOB GBA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/*.c)

file(GLOB GB_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/*.c) file(GLOB GBA_CHEATS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/cheats/*.c) file(GLOB GBA_RR_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/rr/*.c) -file(GLOB GBA_SV_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/supervisor/*.c) -file(GLOB GBA_CTX_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/context/*.c) +file(GLOB GBA_EXTRA_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/*.c) file(GLOB UTIL_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/*.[cSs] ${CMAKE_CURRENT_SOURCE_DIR}/src/core/*.c) -file(GLOB GUI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/gui/*.c ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/gui/*.c) +file(GLOB GUI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/gui/*.c ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/gui/*.c) file(GLOB GBA_RENDERER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/renderers/*.c) file(GLOB SIO_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/sio/lockstep.c) file(GLOB GB_RENDERER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/renderers/*.c) file(GLOB THIRD_PARTY_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/third-party/inih/*.c) -set(CLI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/commandline.c) +set(CLI_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/feature/commandline.c) set(CORE_VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-mem.c) set(VFS_SRC) source_group("ARM core" FILES ${ARM_SRC}) source_group("LR35902 core" FILES ${LR35902_SRC}) source_group("GBA board" FILES ${GBA_SRC} ${GBA_RENDERER_SRC} ${SIO_SRC}) -source_group("GBA extra" FILES ${GBA_CHEATS_SRC} ${GBA_CTX_SRC} ${GBA_SV_SRC} ${GBA_RR_SRC}) +source_group("GBA extra" FILES ${GBA_CHEATS_SRC} ${GBA_EXTRA_SRC} ${GBA_RR_SRC}) source_group("GB board" FILES ${GB_SRC}) source_group("Utilities" FILES ${UTIL_SRC}) include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/src)

@@ -327,7 +326,7 @@ if(USE_CLI_DEBUGGER)

list(APPEND FEATURES CLI_DEBUGGER) list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/cli-debugger.c) list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/parser.c) - list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/supervisor/cli.c) + list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/cli.c) include_directories(AFTER ${LIBEDIT_INCLUDE_DIRS}) link_directories(${LIBEDIT_LIBRARY_DIRS}) set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES})

@@ -350,7 +349,7 @@ list(APPEND FEATURES LIBAV)

endif() include_directories(AFTER ${LIBAVCODEC_INCLUDE_DIRS} ${LIBAVFORMAT_INCLUDE_DIRS} ${LIBAVRESAMPLE_INCLUDE_DIRS} ${LIBAVUTIL_INCLUDE_DIRS} ${LIBSWSCALE_INCLUDE_DIRS}) link_directories(${LIBAVCODEC_LIBRARY_DIRS} ${LIBAVFORMAT_LIBRARY_DIRS} ${LIBAVRESAMPLE_LIBRARY_DIRS} ${LIBAVUTIL_LIBRARY_DIRS} ${LIBSWSCALE_LIBRARY_DIRS}) - list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/platform/ffmpeg/ffmpeg-encoder.c") + list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/ffmpeg/ffmpeg-encoder.c") string(REGEX MATCH "^[0-9]+" LIBAVCODEC_VERSION_MAJOR ${libavcodec_VERSION}) string(REGEX MATCH "^[0-9]+" LIBAVFORMAT_VERSION_MAJOR ${libavformat_VERSION}) string(REGEX MATCH "^[0-9]+" LIBAVRESAMPLE_VERSION_MAJOR ${libavresample_VERSION})

@@ -375,7 +374,7 @@ if(USE_MAGICK)

list(APPEND FEATURES MAGICK) include_directories(AFTER ${MAGICKWAND_INCLUDE_DIRS}) link_directories(${MAGICKWAND_LIBRARY_DIRS}) - list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/platform/imagemagick/imagemagick-gif-encoder.c") + list(APPEND FEATURE_SRC "${CMAKE_CURRENT_SOURCE_DIR}/src/feature/imagemagick/imagemagick-gif-encoder.c") list(APPEND DEPENDENCY_LIB ${MAGICKWAND_LIBRARIES}) string(REGEX MATCH "^[0-9]+\\.[0-9]+" MAGICKWAND_VERSION_PARTIAL ${MagickWand_VERSION}) if(${MAGICKWAND_VERSION_PARTIAL} EQUAL "6.7")

@@ -503,7 +502,6 @@ list(APPEND CORE_SRC

${ARM_SRC} ${GBA_SRC} ${GBA_CHEATS_SRC} - ${GBA_CTX_SRC} ${DEBUGGER_SRC} ${GBA_RENDERER_SRC}) if(NOT M_CORE_GB)

@@ -540,7 +538,7 @@ if(NOT MINIMAL_CORE)

if(M_CORE_GBA) list(APPEND SRC ${GBA_RR_SRC} - ${GBA_SV_SRC} + ${GBA_EXTRA_SRC} ${SIO_SRC}) endif() list(APPEND SRC
M src/core/thread.csrc/core/thread.c

@@ -9,7 +9,7 @@ #include "core/core.h"

#include "util/patch.h" #include "util/vfs.h" -#include "platform/commandline.h" +#include "feature/commandline.h" #include <signal.h>
M src/debugger/debugger.csrc/debugger/debugger.c

@@ -9,7 +9,6 @@ #include "core/core.h"

#ifdef USE_CLI_DEBUGGER #include "debugger/cli-debugger.h" -#include "gba/supervisor/cli.h" #endif #ifdef USE_GDB_STUB
M src/gba/core.csrc/gba/core.c

@@ -8,10 +8,10 @@

#include "core/core.h" #include "core/log.h" #include "gba/gba.h" -#include "gba/context/overrides.h" +#include "gba/extra/cli.h" +#include "gba/overrides.h" #include "gba/renderers/video-software.h" #include "gba/serialize.h" -#include "gba/supervisor/cli.h" #include "util/memory.h" #include "util/patch.h" #include "util/vfs.h"
M src/gba/gba.csrc/gba/gba.c

@@ -12,8 +12,8 @@ #include "arm/isa-inlines.h"

#include "gba/bios.h" #include "gba/cheats.h" -#include "gba/context/overrides.h" #include "gba/io.h" +#include "gba/overrides.h" #include "gba/rr/rr.h" #include "gba/serialize.h" #include "gba/sio.h"
M src/gba/gui/gui-config.csrc/feature/gui/gui-config.c

@@ -7,9 +7,9 @@ #include "gui-config.h"

#include "core/config.h" #include "core/core.h" +#include "feature/gui/gui-runner.h" +#include "feature/gui/remap.h" #include "gba/gba.h" -#include "gba/gui/gui-runner.h" -#include "gba/gui/remap.h" #include "util/gui/file-select.h" #include "util/gui/menu.h"
M src/gba/gui/gui-runner.csrc/feature/gui/gui-runner.c

@@ -6,7 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "gui-runner.h" #include "core/core.h" -#include "gba/gui/gui-config.h" +#include "feature/gui/gui-config.h" #include "gba/input.h" #include "gba/interface.h" #include "gba/serialize.h"
M src/gba/gui/gui-runner.hsrc/feature/gui/gui-runner.h

@@ -8,7 +8,7 @@ #define GUI_RUNNER_H

#include "util/common.h" -#include "gba/gui/remap.h" +#include "feature/gui/remap.h" #include "gba/hardware.h" #include "util/circle-buffer.h" #include "util/gui.h"
M src/platform/3ds/main.csrc/platform/3ds/main.c

@@ -6,13 +6,13 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifdef M_CORE_GBA #include "gba/gba.h" -#include "gba/gui/gui-runner.h" #include "gba/input.h" #include "gba/video.h" #endif #ifdef M_CORE_GB #include "gb/gb.h" #endif +#include "feature/gui/gui-runner.h" #include "util/gui.h" #include "util/gui/file-select.h" #include "util/gui/font.h"
M src/platform/example/client-server/server.csrc/platform/example/client-server/server.c

@@ -1,6 +1,6 @@

// This source file is placed into the public domain. #include "core/core.h" -#include "platform/commandline.h" +#include "feature/commandline.h" #include "util/socket.h" #define DEFAULT_PORT 13721
M src/platform/psp2/main.csrc/platform/psp2/main.c

@@ -6,7 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "psp2-context.h" #include "gba/gba.h" -#include "gba/gui/gui-runner.h" +#include "feature/gui/gui-runner.h" #include "util/gui.h" #include "util/gui/font.h" #include "util/gui/file-select.h"
M src/platform/psp2/psp2-context.csrc/platform/psp2/psp2-context.c

@@ -14,8 +14,8 @@ #ifdef M_CORE_GB

#include "gb/gb.h" #endif +#include "feature/gui/gui-runner.h" #include "gba/input.h" -#include "gba/gui/gui-runner.h" #include "util/circle-buffer.h" #include "util/memory.h"
M src/platform/qt/ConfigController.cppsrc/platform/qt/ConfigController.cpp

@@ -12,8 +12,8 @@ #include <QDir>

#include <QMenu> extern "C" { -#include "gba/context/overrides.h" -#include "platform/commandline.h" +#include "gba/overrides.h" +#include "feature/commandline.h" } using namespace QGBA;
M src/platform/qt/ConfigController.hsrc/platform/qt/ConfigController.h

@@ -16,7 +16,7 @@

extern "C" { #include "core/config.h" #include "util/configuration.h" -#include "platform/commandline.h" +#include "feature/commandline.h" } class QAction;
M src/platform/qt/GBAApp.cppsrc/platform/qt/GBAApp.cpp

@@ -16,7 +16,7 @@ #include <QFileOpenEvent>

#include <QIcon> extern "C" { -#include "platform/commandline.h" +#include "feature/commandline.h" #include "util/nointro.h" #include "util/socket.h" }
M src/platform/qt/GIFView.hsrc/platform/qt/GIFView.h

@@ -13,7 +13,7 @@

#include "ui_GIFView.h" extern "C" { -#include "platform/imagemagick/imagemagick-gif-encoder.h" +#include "feature/imagemagick/imagemagick-gif-encoder.h" } namespace QGBA {
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -25,7 +25,7 @@ #include "gba/bios.h"

#include "gba/core.h" #include "gba/gba.h" #include "gba/serialize.h" -#include "gba/sharkport.h" +#include "gba/extra/sharkport.h" #endif #ifdef M_CORE_GB #include "gb/gb.h"
M src/platform/qt/GameController.hsrc/platform/qt/GameController.h

@@ -19,9 +19,9 @@ extern "C" {

#include "core/core.h" #include "core/thread.h" #include "gba/cheats.h" -#include "gba/context/overrides.h" #include "gba/hardware.h" #include "gba/input.h" +#include "gba/overrides.h" #ifdef BUILD_SDL #include "sdl-events.h" #endif
M src/platform/qt/OverrideView.hsrc/platform/qt/OverrideView.h

@@ -11,7 +11,7 @@

#include "ui_OverrideView.h" extern "C" { -#include "gba/context/overrides.h" +#include "gba/overrides.h" } struct mCoreThread;
M src/platform/qt/PaletteView.cppsrc/platform/qt/PaletteView.cpp

@@ -14,7 +14,7 @@ #include <QFontDatabase>

extern "C" { #include "core/core.h" -#include "gba/supervisor/export.h" +#include "gba/extra/export.h" #include "util/vfs.h" }
M src/platform/qt/VideoView.hsrc/platform/qt/VideoView.h

@@ -13,7 +13,7 @@

#include "ui_VideoView.h" extern "C" { -#include "platform/ffmpeg/ffmpeg-encoder.h" +#include "feature/ffmpeg/ffmpeg-encoder.h" } namespace QGBA {
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -41,7 +41,7 @@ extern "C" {

#ifdef M_CORE_GB #include "gb/gb.h" #endif -#include "platform/commandline.h" +#include "feature/commandline.h" #include "util/nointro.h" #include "util/vfs.h" }
M src/platform/sdl/main.csrc/platform/sdl/main.c

@@ -28,7 +28,7 @@ #include "gb/core.h"

#include "gb/gb.h" #include "gb/video.h" #endif -#include "platform/commandline.h" +#include "feature/commandline.h" #include "util/configuration.h" #include "util/vfs.h"
M src/platform/test/fuzz-main.csrc/platform/test/fuzz-main.c

@@ -9,7 +9,7 @@ #include "gba/core.h"

#include "gba/gba.h" #include "gba/serialize.h" -#include "platform/commandline.h" +#include "feature/commandline.h" #include "util/memory.h" #include "util/string.h" #include "util/vfs.h"
M src/platform/test/perf-main.csrc/platform/test/perf-main.c

@@ -9,7 +9,7 @@ #include "gba/gba.h"

#include "gba/renderers/video-software.h" #include "gba/serialize.h" -#include "platform/commandline.h" +#include "feature/commandline.h" #include "util/socket.h" #include "util/string.h" #include "util/vfs.h"
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -15,9 +15,9 @@

#include "util/common.h" #include "core/core.h" +#include "feature/gui/gui-runner.h" #include "gba/audio.h" #include "gba/gba.h" -#include "gba/gui/gui-runner.h" #include "gba/input.h" #include "util/gui.h" #include "util/gui/file-select.h"