VERY experimental Nintendo Switch 2 emulator
C++
Remove empty newlines in #include blocks.
Emmanuel Gil Peyrot1138ec0d4935
diff --git a/src/.clang-format b/src/.clang-formatindex f9a5d1378a..fc1bbb2972 100644--- a/src/.clang-format+++ b/src/.clang-format@@ -50,6 +50,8 @@ IncludeCategories:Priority: 1- Regex: '^\<(boost|catch|dynarmic|glad|inih|nihstro)/'Priority: 3+ - Regex: '^\<(SDL|SoundTouch|Q)'+ Priority: 3- Regex: '^\<'Priority: 2IndentCaseLabels: falsediff --git a/src/audio_core/audio_core.cpp b/src/audio_core/audio_core.cppindex 0b36dbb03e..c54a4b99a6 100644--- a/src/audio_core/audio_core.cpp+++ b/src/audio_core/audio_core.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/audio_core.h"#include <memory>#include <string>--#include "audio_core/audio_core.h"#include "audio_core/hle/dsp.h"#include "audio_core/hle/pipe.h"#include "audio_core/null_sink.h"#include "audio_core/sink.h"#include "audio_core/sink_details.h"-#include "core/core_timing.h"#include "core/hle/kernel/vm_manager.h"#include "core/hle/service/dsp_dsp.h"diff --git a/src/audio_core/codec.cpp b/src/audio_core/codec.cppindex 4edfe9be0e..fd189a1761 100644--- a/src/audio_core/codec.cpp+++ b/src/audio_core/codec.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/codec.h"#include <array>#include <cstddef>#include <cstring>#include <vector>--#include "audio_core/codec.h"-#include "common/assert.h"#include "common/common_types.h"#include "common/math_util.h"diff --git a/src/audio_core/codec.h b/src/audio_core/codec.hindex 77bbf98b53..2b0c395e69 100644--- a/src/audio_core/codec.h+++ b/src/audio_core/codec.h@@ -6,7 +6,6 @@#include <array>#include <vector>-#include "common/common_types.h"namespace Codec {diff --git a/src/audio_core/hle/common.h b/src/audio_core/hle/common.hindex 8e7e5c3cd7..7fbc3ad9a4 100644--- a/src/audio_core/hle/common.h+++ b/src/audio_core/hle/common.h@@ -6,7 +6,6 @@#include <algorithm>#include <array>-#include "common/common_types.h"namespace DSP {diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cppindex aaa3a280f1..aa64dae974 100644--- a/src/audio_core/hle/dsp.cpp+++ b/src/audio_core/hle/dsp.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/hle/dsp.h"#include <array>#include <memory>--#include "audio_core/hle/dsp.h"#include "audio_core/hle/mixers.h"#include "audio_core/hle/pipe.h"#include "audio_core/hle/source.h"diff --git a/src/audio_core/hle/dsp.h b/src/audio_core/hle/dsp.hindex f4c4b01e22..0a0f60ac12 100644--- a/src/audio_core/hle/dsp.h+++ b/src/audio_core/hle/dsp.h@@ -8,9 +8,7 @@#include <cstddef>#include <memory>#include <type_traits>-#include "audio_core/hle/common.h"-#include "common/bit_field.h"#include "common/common_funcs.h"#include "common/common_types.h"diff --git a/src/audio_core/hle/filter.cpp b/src/audio_core/hle/filter.cppindex da2a4684e4..edf95f6861 100644--- a/src/audio_core/hle/filter.cpp+++ b/src/audio_core/hle/filter.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/hle/filter.h"#include <array>#include <cstddef>-#include "audio_core/hle/common.h"#include "audio_core/hle/dsp.h"-#include "audio_core/hle/filter.h"-#include "common/common_types.h"#include "common/math_util.h"diff --git a/src/audio_core/hle/filter.h b/src/audio_core/hle/filter.hindex 73d5ce6700..4281a58985 100644--- a/src/audio_core/hle/filter.h+++ b/src/audio_core/hle/filter.h@@ -5,10 +5,8 @@#pragma once#include <array>-#include "audio_core/hle/common.h"#include "audio_core/hle/dsp.h"-#include "common/common_types.h"namespace DSP {diff --git a/src/audio_core/hle/mixers.cpp b/src/audio_core/hle/mixers.cppindex 126f328bc6..6cc81dfca4 100644--- a/src/audio_core/hle/mixers.cpp+++ b/src/audio_core/hle/mixers.cpp@@ -7,7 +7,6 @@#include "audio_core/hle/common.h"#include "audio_core/hle/dsp.h"#include "audio_core/hle/mixers.h"-#include "common/assert.h"#include "common/logging/log.h"#include "common/math_util.h"diff --git a/src/audio_core/hle/mixers.h b/src/audio_core/hle/mixers.hindex 537c3a3b9f..bf4e865ae2 100644--- a/src/audio_core/hle/mixers.h+++ b/src/audio_core/hle/mixers.h@@ -5,7 +5,6 @@#pragma once#include <array>-#include "audio_core/hle/common.h"#include "audio_core/hle/dsp.h"diff --git a/src/audio_core/hle/pipe.cpp b/src/audio_core/hle/pipe.cppindex f2b6d6552a..cab30c8aaf 100644--- a/src/audio_core/hle/pipe.cpp+++ b/src/audio_core/hle/pipe.cpp@@ -2,16 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/hle/pipe.h"#include <array>#include <vector>-#include "audio_core/hle/dsp.h"-#include "audio_core/hle/pipe.h"-#include "common/assert.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hle/service/dsp_dsp.h"namespace DSP {diff --git a/src/audio_core/hle/pipe.h b/src/audio_core/hle/pipe.hindex 6d7fd92ab0..ac053c029e 100644--- a/src/audio_core/hle/pipe.h+++ b/src/audio_core/hle/pipe.h@@ -6,7 +6,6 @@#include <cstddef>#include <vector>-#include "common/common_types.h"namespace DSP {diff --git a/src/audio_core/hle/source.cpp b/src/audio_core/hle/source.cppindex 249acc449a..9e6b36fcde 100644--- a/src/audio_core/hle/source.cpp+++ b/src/audio_core/hle/source.cpp@@ -2,17 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/hle/source.h"#include <algorithm>#include <array>-#include "audio_core/codec.h"#include "audio_core/hle/common.h"-#include "audio_core/hle/source.h"#include "audio_core/interpolate.h"-#include "common/assert.h"#include "common/logging/log.h"-#include "core/memory.h"namespace DSP {diff --git a/src/audio_core/hle/source.h b/src/audio_core/hle/source.hindex a1ab15520e..3d725f2a33 100644--- a/src/audio_core/hle/source.h+++ b/src/audio_core/hle/source.h@@ -7,13 +7,11 @@#include <array>#include <queue>#include <vector>-#include "audio_core/codec.h"#include "audio_core/hle/common.h"#include "audio_core/hle/dsp.h"#include "audio_core/hle/filter.h"#include "audio_core/interpolate.h"-#include "common/common_types.h"namespace DSP {diff --git a/src/audio_core/interpolate.cpp b/src/audio_core/interpolate.cppindex cb1c58a676..8a5d4181af 100644--- a/src/audio_core/interpolate.cpp+++ b/src/audio_core/interpolate.cpp@@ -3,7 +3,6 @@// Refer to the license.txt file included.#include "audio_core/interpolate.h"-#include "common/assert.h"#include "common/math_util.h"diff --git a/src/audio_core/interpolate.h b/src/audio_core/interpolate.hindex 2d2e60311e..dd06fdda95 100644--- a/src/audio_core/interpolate.h+++ b/src/audio_core/interpolate.h@@ -6,7 +6,6 @@#include <array>#include <vector>-#include "common/common_types.h"namespace AudioInterp {diff --git a/src/audio_core/null_sink.h b/src/audio_core/null_sink.hindex 9931c4778e..e7668438cb 100644--- a/src/audio_core/null_sink.h+++ b/src/audio_core/null_sink.h@@ -5,7 +5,6 @@#pragma once#include <cstddef>-#include "audio_core/audio_core.h"#include "audio_core/sink.h"diff --git a/src/audio_core/sdl2_sink.cpp b/src/audio_core/sdl2_sink.cppindex 65aac877a1..2520796cb0 100644--- a/src/audio_core/sdl2_sink.cpp+++ b/src/audio_core/sdl2_sink.cpp@@ -2,15 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/sdl2_sink.h"#include <list>+#include <numeric>#include <vector>-#include <SDL.h>-#include "audio_core/audio_core.h"-#include "audio_core/sdl2_sink.h"--#include <numeric>#include "common/assert.h"#include "common/logging/log.h"diff --git a/src/audio_core/sdl2_sink.h b/src/audio_core/sdl2_sink.hindex b13827214f..ccd0f7c7e3 100644--- a/src/audio_core/sdl2_sink.h+++ b/src/audio_core/sdl2_sink.h@@ -6,7 +6,6 @@#include <cstddef>#include <memory>-#include "audio_core/sink.h"namespace AudioCore {diff --git a/src/audio_core/sink.h b/src/audio_core/sink.hindex f5ce55a6b3..08f3bab5b3 100644--- a/src/audio_core/sink.h+++ b/src/audio_core/sink.h@@ -5,7 +5,6 @@#pragma once#include <vector>-#include "common/common_types.h"namespace AudioCore {diff --git a/src/audio_core/sink_details.cpp b/src/audio_core/sink_details.cppindex ff529f4cf2..1dc5e862ec 100644--- a/src/audio_core/sink_details.cpp+++ b/src/audio_core/sink_details.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/sink_details.h"#include <memory>#include <vector>-#include "audio_core/null_sink.h"-#include "audio_core/sink_details.h"-#ifdef HAVE_SDL2#include "audio_core/sdl2_sink.h"#endifdiff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cppindex f44807c84c..26059f503c 100644--- a/src/audio_core/time_stretch.cpp+++ b/src/audio_core/time_stretch.cpp@@ -2,15 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "audio_core/time_stretch.h"#include <chrono>#include <cmath>#include <vector>-#include <SoundTouch.h>-#include "audio_core/audio_core.h"-#include "audio_core/time_stretch.h"-#include "common/common_types.h"#include "common/logging/log.h"#include "common/math_util.h"diff --git a/src/audio_core/time_stretch.h b/src/audio_core/time_stretch.hindex 42a2136793..fa81718ed7 100644--- a/src/audio_core/time_stretch.h+++ b/src/audio_core/time_stretch.h@@ -5,7 +5,6 @@#include <cstddef>#include <memory>#include <vector>-#include "common/common_types.h"namespace AudioCore {diff --git a/src/citra/citra.cpp b/src/citra/citra.cppindex 1b8f8cffe9..e47375f888 100644--- a/src/citra/citra.cpp+++ b/src/citra/citra.cpp@@ -21,22 +21,19 @@#include <Windows.h>#endif+#include "citra/config.h"+#include "citra/emu_window/emu_window_sdl2.h"#include "common/logging/backend.h"#include "common/logging/filter.h"#include "common/logging/log.h"#include "common/scm_rev.h"#include "common/scope_exit.h"#include "common/string_util.h"-#include "core/core.h"#include "core/gdbstub/gdbstub.h"#include "core/loader/loader.h"#include "core/settings.h"#include "core/system.h"--#include "citra/config.h"-#include "citra/emu_window/emu_window_sdl2.h"-#include "video_core/video_core.h"static void PrintHelp(const char* argv0) {diff --git a/src/citra/config.cpp b/src/citra/config.cppindex 77679bd882..58aef7a9a6 100644--- a/src/citra/config.cpp+++ b/src/citra/config.cpp@@ -2,21 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "config.h"#include <memory>--#include <inih/cpp/INIReader.h>-#include <SDL.h>-+#include <inih/cpp/INIReader.h>#include "citra/default_ini.h"-#include "common/file_util.h"#include "common/logging/log.h"-#include "core/settings.h"-#include "config.h"-Config::Config() {// TODO: Don't hardcode the path; let the frontend decide where to put the config files.sdl2_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "sdl2-config.ini";diff --git a/src/citra/config.h b/src/citra/config.hindex 8bd2b294b2..b1c31f59cf 100644--- a/src/citra/config.h+++ b/src/citra/config.h@@ -6,7 +6,6 @@#include <memory>#include <string>-#include <inih/cpp/INIReader.h>class Config {diff --git a/src/citra/emu_window/emu_window_sdl2.cpp b/src/citra/emu_window/emu_window_sdl2.cppindex 42f2a7553b..7df0542088 100644--- a/src/citra/emu_window/emu_window_sdl2.cpp+++ b/src/citra/emu_window/emu_window_sdl2.cpp@@ -5,22 +5,16 @@#include <algorithm>#include <cstdlib>#include <string>-#define SDL_MAIN_HANDLED#include <SDL.h>-#include <glad/glad.h>-+#include "citra/emu_window/emu_window_sdl2.h"#include "common/key_map.h"#include "common/logging/log.h"#include "common/scm_rev.h"#include "common/string_util.h"-#include "core/hle/service/hid/hid.h"#include "core/settings.h"--#include "citra/emu_window/emu_window_sdl2.h"-#include "video_core/video_core.h"void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) {diff --git a/src/citra/emu_window/emu_window_sdl2.h b/src/citra/emu_window/emu_window_sdl2.hindex d4d86821d3..e4d14ef127 100644--- a/src/citra/emu_window/emu_window_sdl2.h+++ b/src/citra/emu_window/emu_window_sdl2.h@@ -5,7 +5,6 @@#pragma once#include <utility>-#include "common/emu_window.h"struct SDL_Window;diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cppindex 53d035b325..0abae86c31 100644--- a/src/citra_qt/bootmanager.cpp+++ b/src/citra_qt/bootmanager.cpp@@ -9,16 +9,13 @@#endif#include "citra_qt/bootmanager.h"-#include "common/key_map.h"#include "common/microprofile.h"#include "common/scm_rev.h"#include "common/string_util.h"-#include "core/core.h"#include "core/settings.h"#include "core/system.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/video_core.h"diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.hindex 59241684d2..67228b94f1 100644--- a/src/citra_qt/bootmanager.h+++ b/src/citra_qt/bootmanager.h@@ -5,10 +5,8 @@#include <atomic>#include <condition_variable>#include <mutex>-#include <QGLWidget>#include <QThread>-#include "common/emu_window.h"#include "common/thread.h"diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cppindex d25bdcf9f8..e3648572f1 100644--- a/src/citra_qt/config.cpp+++ b/src/citra_qt/config.cpp@@ -2,11 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include <QSettings>-#include "citra_qt/config.h"+#include <QSettings>#include "citra_qt/ui_settings.h"-#include "common/file_util.h"Config::Config() {diff --git a/src/citra_qt/config.h b/src/citra_qt/config.hindex db76fa8709..79c9018042 100644--- a/src/citra_qt/config.h+++ b/src/citra_qt/config.h@@ -4,9 +4,8 @@#pragma once-#include <QVariant>#include <string>-+#include <QVariant>#include "core/settings.h"class QSettings;diff --git a/src/citra_qt/configure_audio.cpp b/src/citra_qt/configure_audio.cppindex 944047d056..ba976252ec 100644--- a/src/citra_qt/configure_audio.cpp+++ b/src/citra_qt/configure_audio.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "audio_core/sink_details.h"-#include "citra_qt/configure_audio.h"-#include "ui_configure_audio.h"-+#include "audio_core/sink_details.h"#include "core/settings.h"+#include "ui_configure_audio.h"ConfigureAudio::ConfigureAudio(QWidget* parent): QWidget(parent), ui(std::make_unique<Ui::ConfigureAudio>()) {diff --git a/src/citra_qt/configure_audio.h b/src/citra_qt/configure_audio.hindex e836910aad..51df2e27b6 100644--- a/src/citra_qt/configure_audio.h+++ b/src/citra_qt/configure_audio.h@@ -4,8 +4,8 @@#pragma once-#include <QWidget>#include <memory>+#include <QWidget>namespace Ui {class ConfigureAudio;diff --git a/src/citra_qt/configure_debug.cpp b/src/citra_qt/configure_debug.cppindex dde8d670e9..dcc398eee2 100644--- a/src/citra_qt/configure_debug.cpp+++ b/src/citra_qt/configure_debug.cpp@@ -3,9 +3,8 @@// Refer to the license.txt file included.#include "citra_qt/configure_debug.h"-#include "ui_configure_debug.h"-#include "core/settings.h"+#include "ui_configure_debug.h"ConfigureDebug::ConfigureDebug(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureDebug) {ui->setupUi(this);diff --git a/src/citra_qt/configure_debug.h b/src/citra_qt/configure_debug.hindex e9c6960e21..d167eb9969 100644--- a/src/citra_qt/configure_debug.h+++ b/src/citra_qt/configure_debug.h@@ -4,8 +4,8 @@#pragma once-#include <QWidget>#include <memory>+#include <QWidget>namespace Ui {class ConfigureDebug;diff --git a/src/citra_qt/configure_dialog.cpp b/src/citra_qt/configure_dialog.cppindex c33c95540a..d6a4e8af14 100644--- a/src/citra_qt/configure_dialog.cpp+++ b/src/citra_qt/configure_dialog.cpp@@ -4,9 +4,8 @@#include "citra_qt/configure_dialog.h"#include "citra_qt/config.h"-#include "ui_configure.h"-#include "core/settings.h"+#include "ui_configure.h"ConfigureDialog::ConfigureDialog(QWidget* parent) : QDialog(parent), ui(new Ui::ConfigureDialog) {ui->setupUi(this);diff --git a/src/citra_qt/configure_dialog.h b/src/citra_qt/configure_dialog.hindex e4e450691d..21fa1f5019 100644--- a/src/citra_qt/configure_dialog.h+++ b/src/citra_qt/configure_dialog.h@@ -4,8 +4,8 @@#pragma once-#include <QDialog>#include <memory>+#include <QDialog>namespace Ui {class ConfigureDialog;diff --git a/src/citra_qt/configure_general.cpp b/src/citra_qt/configure_general.cppindex 3e6f76bfef..27139fb303 100644--- a/src/citra_qt/configure_general.cpp+++ b/src/citra_qt/configure_general.cpp@@ -4,10 +4,9 @@#include "citra_qt/configure_general.h"#include "citra_qt/ui_settings.h"-#include "ui_configure_general.h"-#include "core/settings.h"#include "core/system.h"+#include "ui_configure_general.h"ConfigureGeneral::ConfigureGeneral(QWidget* parent): QWidget(parent), ui(new Ui::ConfigureGeneral) {diff --git a/src/citra_qt/configure_general.h b/src/citra_qt/configure_general.hindex 196474ae3c..447552d8c6 100644--- a/src/citra_qt/configure_general.h+++ b/src/citra_qt/configure_general.h@@ -4,8 +4,8 @@#pragma once-#include <QWidget>#include <memory>+#include <QWidget>namespace Ui {class ConfigureGeneral;diff --git a/src/citra_qt/configure_graphics.cpp b/src/citra_qt/configure_graphics.cppindex bde6727cc8..19c1f75c2d 100644--- a/src/citra_qt/configure_graphics.cpp+++ b/src/citra_qt/configure_graphics.cpp@@ -3,10 +3,9 @@// Refer to the license.txt file included.#include "citra_qt/configure_graphics.h"-#include "ui_configure_graphics.h"-#include "core/settings.h"#include "core/system.h"+#include "ui_configure_graphics.h"ConfigureGraphics::ConfigureGraphics(QWidget* parent): QWidget(parent), ui(new Ui::ConfigureGraphics) {diff --git a/src/citra_qt/configure_graphics.h b/src/citra_qt/configure_graphics.hindex 906d534a63..5497a55f7a 100644--- a/src/citra_qt/configure_graphics.h+++ b/src/citra_qt/configure_graphics.h@@ -4,8 +4,8 @@#pragma once-#include <QWidget>#include <memory>+#include <QWidget>namespace Ui {class ConfigureGraphics;diff --git a/src/citra_qt/configure_input.cpp b/src/citra_qt/configure_input.cppindex 7900134cae..7039301e37 100644--- a/src/citra_qt/configure_input.cpp+++ b/src/citra_qt/configure_input.cpp@@ -2,11 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include <QTimer>+#include "citra_qt/configure_input.h"#include <memory>#include <utility>--#include "citra_qt/configure_input.h"+#include <QTimer>ConfigureInput::ConfigureInput(QWidget* parent): QWidget(parent), ui(std::make_unique<Ui::ConfigureInput>()) {diff --git a/src/citra_qt/configure_input.h b/src/citra_qt/configure_input.hindex 5d9624bb0f..5183b904d7 100644--- a/src/citra_qt/configure_input.h+++ b/src/citra_qt/configure_input.h@@ -4,9 +4,9 @@#pragma once+#include <memory>#include <QKeyEvent>#include <QWidget>-#include "citra_qt/config.h"#include "core/settings.h"#include "ui_configure_input.h"diff --git a/src/citra_qt/configure_system.cpp b/src/citra_qt/configure_system.cppindex 732e15dda1..873d314ec1 100644--- a/src/citra_qt/configure_system.cpp+++ b/src/citra_qt/configure_system.cpp@@ -4,11 +4,10 @@#include "citra_qt/configure_system.h"#include "citra_qt/ui_settings.h"-#include "ui_configure_system.h"-#include "core/hle/service/cfg/cfg.h"#include "core/hle/service/fs/archive.h"#include "core/system.h"+#include "ui_configure_system.h"static const std::array<int, 12> days_in_month = {{31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,diff --git a/src/citra_qt/configure_system.h b/src/citra_qt/configure_system.hindex 3a0754bb5b..db0ead13c7 100644--- a/src/citra_qt/configure_system.h+++ b/src/citra_qt/configure_system.h@@ -4,8 +4,8 @@#pragma once-#include <QWidget>#include <memory>+#include <QWidget>namespace Ui {class ConfigureSystem;diff --git a/src/citra_qt/debugger/callstack.cpp b/src/citra_qt/debugger/callstack.cppindex db266b5061..14bd1c77c1 100644--- a/src/citra_qt/debugger/callstack.cpp+++ b/src/citra_qt/debugger/callstack.cpp@@ -2,13 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include <QStandardItemModel>-#include "citra_qt/debugger/callstack.h"-+#include <QStandardItemModel>#include "common/common_types.h"#include "common/symbols.h"-#include "core/arm/arm_interface.h"#include "core/arm/disassembler/arm_disasm.h"#include "core/core.h"diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cppindex 803e8b1723..7a5d3e2f1a 100644--- a/src/citra_qt/debugger/disassembler.cpp+++ b/src/citra_qt/debugger/disassembler.cpp@@ -2,16 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/disassembler.h"#include <QShortcut>-#include "citra_qt/bootmanager.h"-#include "citra_qt/debugger/disassembler.h"#include "citra_qt/hotkeys.h"#include "citra_qt/util/util.h"-#include "common/break_points.h"#include "common/symbols.h"-#include "core/arm/arm_interface.h"#include "core/arm/disassembler/arm_disasm.h"#include "core/core.h"diff --git a/src/citra_qt/debugger/disassembler.h b/src/citra_qt/debugger/disassembler.hindex 1f56077883..2ca6c2bd46 100644--- a/src/citra_qt/debugger/disassembler.h+++ b/src/citra_qt/debugger/disassembler.h@@ -6,11 +6,9 @@#include <QAbstractListModel>#include <QDockWidget>--#include "ui_disassembler.h"-#include "common/break_points.h"#include "common/common_types.h"+#include "ui_disassembler.h"class QAction;class EmuThread;diff --git a/src/citra_qt/debugger/graphics.cpp b/src/citra_qt/debugger/graphics.cppindex b79c063dbc..31b54e8556 100644--- a/src/citra_qt/debugger/graphics.cpp+++ b/src/citra_qt/debugger/graphics.cpp@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include <QListView>-#include "citra_qt/debugger/graphics.h"+#include <QListView>#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.hindex 7d681b97db..bedf3e5967 100644--- a/src/citra_qt/debugger/graphics.h+++ b/src/citra_qt/debugger/graphics.h@@ -6,7 +6,6 @@#include <QAbstractListModel>#include <QDockWidget>-#include "video_core/gpu_debugger.h"class GPUCommandStreamItemModel : public QAbstractListModel,diff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp b/src/citra_qt/debugger/graphics_breakpoint_observer.cppindex 25a398eceb..ad11552d7e 100644--- a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp+++ b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include <QMetaType>-#include "citra_qt/debugger/graphics_breakpoint_observer.h"+#include <QMetaType>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_breakpoint_observer.hindex 8d0871f27e..e77df4f5b8 100644--- a/src/citra_qt/debugger/graphics_breakpoint_observer.h+++ b/src/citra_qt/debugger/graphics_breakpoint_observer.h@@ -5,7 +5,6 @@#pragma once#include <QDockWidget>-#include "video_core/debug_utils/debug_utils.h"/**diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cppindex b31eba533f..e1d1b49112 100644--- a/src/citra_qt/debugger/graphics_breakpoints.cpp+++ b/src/citra_qt/debugger/graphics_breakpoints.cpp@@ -2,15 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/graphics_breakpoints.h"#include <QLabel>#include <QMetaType>#include <QPushButton>#include <QTreeView>#include <QVBoxLayout>--#include "citra_qt/debugger/graphics_breakpoints.h"#include "citra_qt/debugger/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_breakpoints.hindex 2371b0e39b..5fc40c916f 100644--- a/src/citra_qt/debugger/graphics_breakpoints.h+++ b/src/citra_qt/debugger/graphics_breakpoints.h@@ -5,9 +5,7 @@#pragma once#include <memory>-#include <QDockWidget>-#include "video_core/debug_utils/debug_utils.h"class QLabel;diff --git a/src/citra_qt/debugger/graphics_breakpoints_p.h b/src/citra_qt/debugger/graphics_breakpoints_p.hindex 5f321ede2c..dc64706bd4 100644--- a/src/citra_qt/debugger/graphics_breakpoints_p.h+++ b/src/citra_qt/debugger/graphics_breakpoints_p.h@@ -5,9 +5,7 @@#pragma once#include <memory>-#include <QAbstractListModel>-#include "video_core/debug_utils/debug_utils.h"class BreakPointModel : public QAbstractListModel {diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cppindex b088ad29d5..35be9b9bdf 100644--- a/src/citra_qt/debugger/graphics_cmdlists.cpp+++ b/src/citra_qt/debugger/graphics_cmdlists.cpp@@ -2,6 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/graphics_cmdlists.h"#include <QApplication>#include <QClipboard>#include <QComboBox>@@ -13,13 +14,9 @@#include <QSpinBox>#include <QTreeView>#include <QVBoxLayout>--#include "citra_qt/debugger/graphics_cmdlists.h"#include "citra_qt/util/spinbox.h"#include "citra_qt/util/util.h"-#include "common/vector_math.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/pica.h"#include "video_core/pica_state.h"diff --git a/src/citra_qt/debugger/graphics_cmdlists.h b/src/citra_qt/debugger/graphics_cmdlists.hindex b2242eca41..fa2b9122bd 100644--- a/src/citra_qt/debugger/graphics_cmdlists.h+++ b/src/citra_qt/debugger/graphics_cmdlists.h@@ -6,7 +6,6 @@#include <QAbstractListModel>#include <QDockWidget>-#include "video_core/debug_utils/debug_utils.h"#include "video_core/gpu_debugger.h"diff --git a/src/citra_qt/debugger/graphics_surface.cpp b/src/citra_qt/debugger/graphics_surface.cppindex bb998acc40..496fce59d3 100644--- a/src/citra_qt/debugger/graphics_surface.cpp+++ b/src/citra_qt/debugger/graphics_surface.cpp@@ -2,6 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/graphics_surface.h"#include <QBoxLayout>#include <QComboBox>#include <QDebug>@@ -11,15 +12,10 @@#include <QPushButton>#include <QScrollArea>#include <QSpinBox>--#include "citra_qt/debugger/graphics_surface.h"#include "citra_qt/util/spinbox.h"-#include "common/color.h"-#include "core/hw/gpu.h"#include "core/memory.h"-#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/utils.h"diff --git a/src/citra_qt/debugger/graphics_surface.h b/src/citra_qt/debugger/graphics_surface.hindex 5881ae60ab..21e6b5b8bd 100644--- a/src/citra_qt/debugger/graphics_surface.h+++ b/src/citra_qt/debugger/graphics_surface.h@@ -4,10 +4,9 @@#pragma once-#include "citra_qt/debugger/graphics_breakpoint_observer.h"-#include <QLabel>#include <QPushButton>+#include "citra_qt/debugger/graphics_breakpoint_observer.h"class QComboBox;class QSpinBox;diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics_tracing.cppindex b6f638b600..944150b8ee 100644--- a/src/citra_qt/debugger/graphics_tracing.cpp+++ b/src/citra_qt/debugger/graphics_tracing.cpp@@ -2,29 +2,22 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/graphics_tracing.h"#include <algorithm>#include <array>#include <iterator>#include <memory>--#include <boost/range/algorithm/copy.hpp>-#include <QBoxLayout>#include <QComboBox>#include <QFileDialog>#include <QMessageBox>#include <QPushButton>--#include "citra_qt/debugger/graphics_tracing.h"-+#include <boost/range/algorithm/copy.hpp>#include "common/common_types.h"-#include "core/hw/gpu.h"#include "core/hw/lcd.h"#include "core/tracer/recorder.h"-#include "nihstro/float24.h"-#include "video_core/pica.h"#include "video_core/pica_state.h"diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cppindex 0f02bc3da4..3b3ffe5c6f 100644--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp+++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp@@ -2,9 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/graphics_vertex_shader.h"#include <iomanip>#include <sstream>-#include <QBoxLayout>#include <QFileDialog>#include <QFormLayout>@@ -15,10 +15,7 @@#include <QSignalMapper>#include <QSpinBox>#include <QTreeView>--#include "citra_qt/debugger/graphics_vertex_shader.h"#include "citra_qt/util/util.h"-#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/shader/shader.h"diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.hindex 96692d82c9..ec42f24bb1 100644--- a/src/citra_qt/debugger/graphics_vertex_shader.h+++ b/src/citra_qt/debugger/graphics_vertex_shader.h@@ -5,11 +5,9 @@#pragma once#include <QAbstractTableModel>-+#include <QTreeView>#include "citra_qt/debugger/graphics_breakpoint_observer.h"-#include "nihstro/parser_shbin.h"-#include "video_core/shader/shader.h"class QLabel;diff --git a/src/citra_qt/debugger/profiler.cpp b/src/citra_qt/debugger/profiler.cppindex 97a3775130..39d2d6e393 100644--- a/src/citra_qt/debugger/profiler.cpp+++ b/src/citra_qt/debugger/profiler.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/debugger/profiler.h"#include <QMouseEvent>#include <QPainter>#include <QString>--#include "citra_qt/debugger/profiler.h"#include "citra_qt/util/util.h"-#include "common/common_types.h"#include "common/microprofile.h"#include "common/profiler_reporting.h"diff --git a/src/citra_qt/debugger/profiler.h b/src/citra_qt/debugger/profiler.hindex d0a90fdeec..d8c6487aaf 100644--- a/src/citra_qt/debugger/profiler.h+++ b/src/citra_qt/debugger/profiler.h@@ -7,11 +7,9 @@#include <QAbstractItemModel>#include <QDockWidget>#include <QTimer>--#include "ui_profiler.h"-#include "common/microprofile.h"#include "common/profiler_reporting.h"+#include "ui_profiler.h"class ProfilerModel : public QAbstractItemModel {Q_OBJECTdiff --git a/src/citra_qt/debugger/registers.cpp b/src/citra_qt/debugger/registers.cppindex 87c8c34182..13842dac3c 100644--- a/src/citra_qt/debugger/registers.cpp+++ b/src/citra_qt/debugger/registers.cpp@@ -2,11 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include <QTreeWidgetItem>-#include "citra_qt/debugger/registers.h"+#include <QTreeWidgetItem>#include "citra_qt/util/util.h"-#include "core/arm/arm_interface.h"#include "core/core.h"diff --git a/src/citra_qt/debugger/registers.h b/src/citra_qt/debugger/registers.hindex cba6017317..54c9a81550 100644--- a/src/citra_qt/debugger/registers.h+++ b/src/citra_qt/debugger/registers.h@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "ui_registers.h"-#include <QDockWidget>+#include "ui_registers.h"class QTreeWidget;class QTreeWidgetItem;diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cppindex 9f9c22a449..16d31be77d 100644--- a/src/citra_qt/game_list.cpp+++ b/src/citra_qt/game_list.cpp@@ -2,19 +2,16 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "game_list.h"#include <QHeaderView>#include <QThreadPool>#include <QVBoxLayout>--#include "game_list.h"-#include "game_list_p.h"-#include "ui_settings.h"--#include "core/loader/loader.h"-#include "common/common_paths.h"#include "common/logging/log.h"#include "common/string_util.h"+#include "core/loader/loader.h"+#include "game_list_p.h"+#include "ui_settings.h"GameList::GameList(QWidget* parent) {QVBoxLayout* layout = new QVBoxLayout;diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.hindex c8a9ee5db7..60ab4cf02a 100644--- a/src/citra_qt/game_list_p.h+++ b/src/citra_qt/game_list_p.h@@ -5,18 +5,14 @@#pragma once#include <atomic>-#include <QImage>#include <QRunnable>#include <QStandardItem>#include <QString>-#include "citra_qt/util/util.h"#include "common/color.h"#include "common/string_util.h"-#include "core/loader/smdh.h"-#include "video_core/utils.h"/**diff --git a/src/citra_qt/hotkeys.cpp b/src/citra_qt/hotkeys.cppindex 3e38223ee7..9037f20f28 100644--- a/src/citra_qt/hotkeys.cpp+++ b/src/citra_qt/hotkeys.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/hotkeys.h"#include <map>-#include <QKeySequence>#include <QShortcut>#include <QtGlobal>--#include "citra_qt/hotkeys.h"#include "citra_qt/ui_settings.h"struct Hotkey {diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cppindex e10314856b..82667446b7 100644--- a/src/citra_qt/main.cpp+++ b/src/citra_qt/main.cpp@@ -5,25 +5,15 @@#include <clocale>#include <memory>#include <thread>-#include <glad/glad.h>-#define QT_NO_OPENGL#include <QDesktopWidget>#include <QFileDialog>#include <QMessageBox>#include <QtGui>-#include "qhexedit.h"-#include "citra_qt/bootmanager.h"#include "citra_qt/config.h"#include "citra_qt/configure_dialog.h"-#include "citra_qt/game_list.h"-#include "citra_qt/hotkeys.h"-#include "citra_qt/main.h"-#include "citra_qt/ui_settings.h"--// Debugger#include "citra_qt/debugger/callstack.h"#include "citra_qt/debugger/disassembler.h"#include "citra_qt/debugger/graphics.h"@@ -35,7 +25,10 @@#include "citra_qt/debugger/profiler.h"#include "citra_qt/debugger/ramview.h"#include "citra_qt/debugger/registers.h"-+#include "citra_qt/game_list.h"+#include "citra_qt/hotkeys.h"+#include "citra_qt/main.h"+#include "citra_qt/ui_settings.h"#include "common/logging/backend.h"#include "common/logging/filter.h"#include "common/logging/log.h"@@ -45,14 +38,13 @@#include "common/scm_rev.h"#include "common/scope_exit.h"#include "common/string_util.h"-#include "core/arm/disassembler/load_symbol_map.h"#include "core/core.h"#include "core/gdbstub/gdbstub.h"#include "core/loader/loader.h"#include "core/settings.h"#include "core/system.h"-+#include "qhexedit.h"#include "video_core/video_core.h"GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {diff --git a/src/citra_qt/main.h b/src/citra_qt/main.hindex 10157310e7..c4349513f3 100644--- a/src/citra_qt/main.h+++ b/src/citra_qt/main.h@@ -5,9 +5,8 @@#ifndef _CITRA_QT_MAIN_HXX_#define _CITRA_QT_MAIN_HXX_-#include <QMainWindow>#include <memory>-+#include <QMainWindow>#include "ui_main.h"class Config;diff --git a/src/citra_qt/ui_settings.h b/src/citra_qt/ui_settings.hindex 30f031831c..ed7fdff7ef 100644--- a/src/citra_qt/ui_settings.h+++ b/src/citra_qt/ui_settings.h@@ -4,12 +4,11 @@#pragma once+#include <vector>#include <QByteArray>#include <QString>#include <QStringList>-#include <vector>-namespace UISettings {using ContextualShortcut = std::pair<QString, int>;diff --git a/src/citra_qt/util/spinbox.cpp b/src/citra_qt/util/spinbox.cppindex 5868f3b91b..0bda215025 100644--- a/src/citra_qt/util/spinbox.cpp+++ b/src/citra_qt/util/spinbox.cpp@@ -28,11 +28,10 @@// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+#include "citra_qt/util/spinbox.h"+#include <cstdlib>#include <QLineEdit>#include <QRegExpValidator>-#include <cstdlib>--#include "citra_qt/util/spinbox.h"#include "common/assert.h"CSpinBox::CSpinBox(QWidget* parent)diff --git a/src/citra_qt/util/util.cpp b/src/citra_qt/util/util.cppindex bf44d78ff3..e77d3796c6 100644--- a/src/citra_qt/util/util.cpp+++ b/src/citra_qt/util/util.cpp@@ -2,11 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "citra_qt/util/util.h"#include <array>#include <cmath>-#include "citra_qt/util/util.h"-QFont GetMonospaceFont() {QFont font("monospace");// Automatic fallback to a monospace font on on platforms without a font called "monospace"diff --git a/src/common/assert.h b/src/common/assert.hindex 70214efae6..04e80c87a8 100644--- a/src/common/assert.h+++ b/src/common/assert.h@@ -5,7 +5,6 @@#pragma once#include <cstdlib>-#include "common/common_funcs.h"#include "common/logging/log.h"@@ -54,4 +53,4 @@ __declspec(noinline, noreturn)#endif#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")-#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__)\ No newline at end of file+#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__)diff --git a/src/common/bit_field.h b/src/common/bit_field.hindex 8d45743e2b..030f7caebd 100644--- a/src/common/bit_field.h+++ b/src/common/bit_field.h@@ -33,7 +33,6 @@#include <cstddef>#include <limits>#include <type_traits>-#include "common/common_funcs.h"/*diff --git a/src/common/break_points.cpp b/src/common/break_points.cppindex 3218db3145..4b64a6c7b7 100644--- a/src/common/break_points.cpp+++ b/src/common/break_points.cpp@@ -3,10 +3,9 @@// Refer to the license.txt file included.#include "common/break_points.h"-#include "common/logging/log.h"-#include <algorithm>#include <sstream>+#include "common/logging/log.h"bool BreakPoints::IsAddressBreakPoint(u32 iAddress) const {auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress; };diff --git a/src/common/break_points.h b/src/common/break_points.hindex 1a5b7d2961..e15b9f842c 100644--- a/src/common/break_points.h+++ b/src/common/break_points.h@@ -6,7 +6,6 @@#include <string>#include <vector>-#include "common/common_types.h"class DebugInterface;diff --git a/src/common/chunk_file.h b/src/common/chunk_file.hindex 2bf3c774ba..5145a3657d 100644--- a/src/common/chunk_file.h+++ b/src/common/chunk_file.h@@ -35,7 +35,6 @@#include <type_traits>#include <utility>#include <vector>-#include "common/assert.h"#include "common/common_types.h"#include "common/logging/log.h"diff --git a/src/common/code_block.h b/src/common/code_block.hindex 0990889259..6a55a8e30f 100644--- a/src/common/code_block.h+++ b/src/common/code_block.h@@ -5,7 +5,6 @@#pragma once#include <cstddef>-#include "common/common_types.h"#include "common/memory_util.h"diff --git a/src/common/common_funcs.h b/src/common/common_funcs.hindex 7032c21174..b141e79ed1 100644--- a/src/common/common_funcs.h+++ b/src/common/common_funcs.h@@ -7,7 +7,6 @@#if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM)#include <cstdlib> // for exit#endif-#include "common_types.h"#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))diff --git a/src/common/emu_window.cpp b/src/common/emu_window.cppindex c86f663a8f..6fd6f19873 100644--- a/src/common/emu_window.cpp+++ b/src/common/emu_window.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "emu_window.h"#include <algorithm>#include <cmath>-#include "common/assert.h"#include "common/key_map.h"--#include "emu_window.h"#include "video_core/video_core.h"void EmuWindow::ButtonPressed(Service::HID::PadState pad) {diff --git a/src/common/emu_window.h b/src/common/emu_window.hindex 20131300d6..67df63e066 100644--- a/src/common/emu_window.h+++ b/src/common/emu_window.h@@ -6,10 +6,8 @@#include <tuple>#include <utility>-#include "common/common_types.h"#include "common/math_util.h"-#include "core/hle/service/hid/hid.h"/**diff --git a/src/common/file_util.cpp b/src/common/file_util.cppindex 96afe2ca05..a0cae11e39 100644--- a/src/common/file_util.cpp+++ b/src/common/file_util.cpp@@ -16,7 +16,6 @@#include <shellapi.h>#include <shlobj.h> // for SHGetFolderPath#include <tchar.h>-#include "common/string_util.h"// 64 bit offsets for windowsdiff --git a/src/common/file_util.h b/src/common/file_util.hindex b15021a636..204b06f145 100644--- a/src/common/file_util.h+++ b/src/common/file_util.h@@ -11,9 +11,7 @@#include <string>#include <type_traits>#include <vector>-#include "common/common_types.h"-#ifdef _MSC_VER#include "common/string_util.h"#endifdiff --git a/src/common/hash.cpp b/src/common/hash.cppindex a46c925531..5aa5118eb6 100644--- a/src/common/hash.cpp+++ b/src/common/hash.cpp@@ -5,7 +5,6 @@#if defined(_MSC_VER)#include <stdlib.h>#endif-#include "common_funcs.h"#include "common_types.h"#include "hash.h"diff --git a/src/common/key_map.cpp b/src/common/key_map.cppindex e882f5f529..8380ce4896 100644--- a/src/common/key_map.cpp+++ b/src/common/key_map.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/key_map.h"#include <map>-#include "common/emu_window.h"-#include "common/key_map.h"namespace KeyMap {diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cppindex b3d6598e44..b4a3129480 100644--- a/src/common/logging/backend.cpp+++ b/src/common/logging/backend.cpp@@ -2,13 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/backend.h"#include <algorithm>#include <array>#include <cstdio>-#include "common/assert.h"#include "common/common_funcs.h" // snprintf compatibility define-#include "common/logging/backend.h"#include "common/logging/filter.h"#include "common/logging/log.h"#include "common/logging/text_formatter.h"diff --git a/src/common/logging/backend.h b/src/common/logging/backend.hindex 3fe88e4f65..c4fe2acbf2 100644--- a/src/common/logging/backend.h+++ b/src/common/logging/backend.h@@ -8,7 +8,6 @@#include <cstdarg>#include <string>#include <utility>-#include "common/logging/log.h"namespace Log {diff --git a/src/common/logging/filter.cpp b/src/common/logging/filter.cppindex 186e0b6219..9aa72cecce 100644--- a/src/common/logging/filter.cpp+++ b/src/common/logging/filter.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/filter.h"#include <algorithm>-#include "common/logging/backend.h"-#include "common/logging/filter.h"#include "common/string_util.h"namespace Log {diff --git a/src/common/logging/filter.h b/src/common/logging/filter.hindex db526fead4..b51df61de9 100644--- a/src/common/logging/filter.h+++ b/src/common/logging/filter.h@@ -7,7 +7,6 @@#include <array>#include <cstddef>#include <string>-#include "common/logging/log.h"namespace Log {diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cppindex 955358553d..d61c1696ba 100644--- a/src/common/logging/text_formatter.cpp+++ b/src/common/logging/text_formatter.cpp@@ -10,12 +10,11 @@#include <Windows.h>#endif+#include "common/assert.h"+#include "common/common_funcs.h"#include "common/logging/backend.h"#include "common/logging/log.h"#include "common/logging/text_formatter.h"--#include "common/assert.h"-#include "common/common_funcs.h"#include "common/string_util.h"namespace Log {diff --git a/src/common/misc.cpp b/src/common/misc.cppindex 5938e6289c..7be2235b05 100644--- a/src/common/misc.cpp+++ b/src/common/misc.cpp@@ -3,7 +3,6 @@// Refer to the license.txt file included.#include <cstddef>-#ifdef _WIN32#include <windows.h>#elsediff --git a/src/common/profiler.cpp b/src/common/profiler.cppindex 231a0afc1e..b40e7205d9 100644--- a/src/common/profiler.cpp+++ b/src/common/profiler.cpp@@ -5,7 +5,6 @@#include <algorithm>#include <cstddef>#include <vector>-#include "common/assert.h"#include "common/profiler_reporting.h"#include "common/synchronized_wrapper.h"diff --git a/src/common/profiler_reporting.h b/src/common/profiler_reporting.hindex fa1ac883f0..e9ce6d41c6 100644--- a/src/common/profiler_reporting.h+++ b/src/common/profiler_reporting.h@@ -7,7 +7,6 @@#include <chrono>#include <cstddef>#include <vector>-#include "common/synchronized_wrapper.h"namespace Common {diff --git a/src/common/string_util.cpp b/src/common/string_util.cppindex 9ccd6f1358..968854baed 100644--- a/src/common/string_util.cpp+++ b/src/common/string_util.cpp@@ -2,17 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/string_util.h"#include <cctype>#include <cerrno>#include <cstdio>#include <cstdlib>#include <cstring>#include <boost/range/algorithm/transform.hpp>-#include "common/common_paths.h"#include "common/logging/log.h"-#include "common/string_util.h"-#ifdef _MSC_VER#include <Windows.h>#include <codecvt>diff --git a/src/common/string_util.h b/src/common/string_util.hindex 6ffd735f42..075bf4ecb2 100644--- a/src/common/string_util.h+++ b/src/common/string_util.h@@ -10,7 +10,6 @@#include <sstream>#include <string>#include <vector>-#include "common/common_types.h"namespace Common {diff --git a/src/common/swap.h b/src/common/swap.hindex 72c50d7892..e241c9f73b 100644--- a/src/common/swap.h+++ b/src/common/swap.h@@ -24,9 +24,7 @@#elif defined(__FreeBSD__)#include <sys/endian.h>#endif-#include <cstring>-#include "common/common_types.h"// GCC 4.6+diff --git a/src/common/symbols.h b/src/common/symbols.hindex 6044c9db65..f5a48e05ac 100644--- a/src/common/symbols.h+++ b/src/common/symbols.h@@ -7,7 +7,6 @@#include <map>#include <string>#include <utility>-#include "common/common_types.h"struct TSymbol {diff --git a/src/common/thread.cpp b/src/common/thread.cppindex bee607ce95..6e7b39b9a4 100644--- a/src/common/thread.cpp+++ b/src/common/thread.cpp@@ -3,7 +3,6 @@// Refer to the license.txt file included.#include "common/thread.h"-#ifdef __APPLE__#include <mach/mach.h>#elif defined(_WIN32)@@ -16,7 +15,6 @@#endif#include <sched.h>#endif-#ifndef _WIN32#include <unistd.h>#endifdiff --git a/src/common/thread.h b/src/common/thread.hindex 499c151c2e..9c08be7e3e 100644--- a/src/common/thread.h+++ b/src/common/thread.h@@ -8,7 +8,6 @@#include <cstddef>#include <mutex>#include <thread>-#include "common/common_types.h"// Support for C++11's thread_local keyword was surprisingly spotty in compilers until verydiff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.hindex 0dcf785b65..edd0e4a3f8 100644--- a/src/common/thread_queue_list.h+++ b/src/common/thread_queue_list.h@@ -6,7 +6,6 @@#include <array>#include <deque>-#include <boost/range/algorithm_ext/erase.hpp>namespace Common {diff --git a/src/common/timer.cpp b/src/common/timer.cppindex 27560eb0ba..e843cbd9c3 100644--- a/src/common/timer.cpp+++ b/src/common/timer.cpp@@ -3,7 +3,6 @@// Refer to the license.txt file included.#include <time.h>-#ifdef _WIN32#include <Windows.h>#include <mmsystem.h>@@ -11,7 +10,6 @@#else#include <sys/time.h>#endif-#include "common/common_types.h"#include "common/string_util.h"#include "common/timer.h"diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cppindex 19f1a40307..ac37c42bc4 100644--- a/src/common/x64/cpu_detect.cpp+++ b/src/common/x64/cpu_detect.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "cpu_detect.h"#include <cstring>#include <string>#include <thread>-#include "common/common_types.h"-#include "cpu_detect.h"-namespace Common {#ifndef _MSC_VERdiff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cppindex 7cf350b4ac..b69e4bd5e8 100644--- a/src/common/x64/emitter.cpp+++ b/src/common/x64/emitter.cpp@@ -15,16 +15,14 @@// Official SVN repository and contact information can be found at// http://code.google.com/p/dolphin-emu/+#include "emitter.h"#include <cinttypes>#include <cstring>-+#include "abi.h"#include "common/assert.h"#include "common/logging/log.h"#include "common/memory_util.h"--#include "abi.h"#include "cpu_detect.h"-#include "emitter.h"namespace Gen {@@ -222,7 +220,7 @@ void OpArg::WriteVex(XEmitter* emit, X64Reg regOp1, X64Reg regOp2, int L, int ppvoid OpArg::WriteRest(XEmitter* emit, int extraBytes, X64Reg _operandReg,bool warn_64bit_offset) const {if (_operandReg == INVALID_REG)- _operandReg = (X64Reg)this->operandReg;+ _operandReg = (X64Reg) this->operandReg;int mod = 0;int ireg = indexReg;bool SIB = false;diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.hindex 6c9dc3d6b0..7d7cdde169 100644--- a/src/common/x64/emitter.h+++ b/src/common/x64/emitter.h@@ -18,7 +18,6 @@#pragma once#include <cstddef>-#include "common/assert.h"#include "common/bit_set.h"#include "common/code_block.h"diff --git a/src/core/arm/disassembler/arm_disasm.cpp b/src/core/arm/disassembler/arm_disasm.cppindex b3b9971e83..068f395ace 100644--- a/src/core/arm/disassembler/arm_disasm.cpp+++ b/src/core/arm/disassembler/arm_disasm.cpp@@ -1,12 +1,10 @@// Copyright 2006 The Android Open Source Project+#include "core/arm/disassembler/arm_disasm.h"#include <string>#include <unordered_set>-#include "common/common_types.h"#include "common/string_util.h"--#include "core/arm/disassembler/arm_disasm.h"#include "core/arm/skyeye_common/armsupp.h"static const char* cond_names[] = {"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",diff --git a/src/core/arm/disassembler/arm_disasm.h b/src/core/arm/disassembler/arm_disasm.hindex 031f973d60..300e228ed8 100644--- a/src/core/arm/disassembler/arm_disasm.h+++ b/src/core/arm/disassembler/arm_disasm.h@@ -3,7 +3,6 @@#pragma once#include <string>-#include "common/common_types.h"// Note: this list of opcodes must match the list used to initializediff --git a/src/core/arm/disassembler/load_symbol_map.cpp b/src/core/arm/disassembler/load_symbol_map.cppindex 58e8e6fa1c..e602d45110 100644--- a/src/core/arm/disassembler/load_symbol_map.cpp+++ b/src/core/arm/disassembler/load_symbol_map.cpp@@ -2,15 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/arm/disassembler/load_symbol_map.h"#include <sstream>#include <string>#include <vector>-#include "common/file_util.h"#include "common/symbols.h"-#include "core/arm/disassembler/load_symbol_map.h"-/** Loads a symbol map file for use with the disassembler* @param filename String filename path of symbol map filediff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cppindex a521aec7ce..b57d9e65bd 100644--- a/src/core/arm/dynarmic/arm_dynarmic.cpp+++ b/src/core/arm/dynarmic/arm_dynarmic.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/arm/dynarmic/arm_dynarmic.h"+#include <dynarmic/dynarmic.h>#include "common/assert.h"#include "common/microprofile.h"--#include <dynarmic/dynarmic.h>--#include "core/arm/dynarmic/arm_dynarmic.h"#include "core/arm/dyncom/arm_dyncom_interpreter.h"#include "core/core.h"#include "core/core_timing.h"diff --git a/src/core/arm/dynarmic/arm_dynarmic.h b/src/core/arm/dynarmic/arm_dynarmic.hindex d493cabd53..ced86d29b0 100644--- a/src/core/arm/dynarmic/arm_dynarmic.h+++ b/src/core/arm/dynarmic/arm_dynarmic.h@@ -5,11 +5,8 @@#pragma once#include <memory>-#include <dynarmic/dynarmic.h>-#include "common/common_types.h"-#include "core/arm/arm_interface.h"#include "core/arm/skyeye_common/armstate.h"diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cppindex 9125604020..bc9ba2941d 100644--- a/src/core/arm/dyncom/arm_dyncom.cpp+++ b/src/core/arm/dyncom/arm_dyncom.cpp@@ -2,18 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/arm/dyncom/arm_dyncom.h"#include <cstring>#include <memory>--#include "core/arm/skyeye_common/armstate.h"-#include "core/arm/skyeye_common/armsupp.h"-#include "core/arm/skyeye_common/vfp/vfp.h"--#include "core/arm/dyncom/arm_dyncom.h"#include "core/arm/dyncom/arm_dyncom_interpreter.h"#include "core/arm/dyncom/arm_dyncom_run.h"#include "core/arm/dyncom/arm_dyncom_trans.h"-+#include "core/arm/skyeye_common/armstate.h"+#include "core/arm/skyeye_common/armsupp.h"+#include "core/arm/skyeye_common/vfp/vfp.h"#include "core/core.h"#include "core/core_timing.h"diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.hindex 70f71a8280..65db1f0f9b 100644--- a/src/core/arm/dyncom/arm_dyncom.h+++ b/src/core/arm/dyncom/arm_dyncom.h@@ -5,9 +5,7 @@#pragma once#include <memory>-#include "common/common_types.h"-#include "core/arm/arm_interface.h"#include "core/arm/skyeye_common/arm_regformat.h"#include "core/arm/skyeye_common/armstate.h"diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cppindex 211d49edb2..4f83d8332f 100644--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp@@ -4,27 +4,24 @@#define CITRA_IGNORE_EXIT(x)+#include "core/arm/dyncom/arm_dyncom_interpreter.h"#include <algorithm>#include <cstdio>-#include "common/common_types.h"#include "common/logging/log.h"#include "common/microprofile.h"-#include "core/arm/disassembler/arm_disasm.h"#include "core/arm/dyncom/arm_dyncom_dec.h"-#include "core/arm/dyncom/arm_dyncom_interpreter.h"#include "core/arm/dyncom/arm_dyncom_run.h"#include "core/arm/dyncom/arm_dyncom_thumb.h"#include "core/arm/dyncom/arm_dyncom_trans.h"#include "core/arm/skyeye_common/armstate.h"#include "core/arm/skyeye_common/armsupp.h"#include "core/arm/skyeye_common/vfp/vfp.h"+#include "core/gdbstub/gdbstub.h"#include "core/hle/svc.h"#include "core/memory.h"-#include "core/gdbstub/gdbstub.h"-#define RM BITS(sht_oper, 0, 3)#define RS BITS(sht_oper, 8, 11)diff --git a/src/core/arm/dyncom/arm_dyncom_trans.cpp b/src/core/arm/dyncom/arm_dyncom_trans.cppindex 526cf28f3d..5f3644c284 100644--- a/src/core/arm/dyncom/arm_dyncom_trans.cpp+++ b/src/core/arm/dyncom/arm_dyncom_trans.cpp@@ -1,10 +1,8 @@+#include "core/arm/dyncom/arm_dyncom_trans.h"#include <cstdlib>-#include "common/assert.h"#include "common/common_types.h"-#include "core/arm/dyncom/arm_dyncom_interpreter.h"-#include "core/arm/dyncom/arm_dyncom_trans.h"#include "core/arm/skyeye_common/armstate.h"#include "core/arm/skyeye_common/armsupp.h"#include "core/arm/skyeye_common/vfp/vfp.h"diff --git a/src/core/arm/dyncom/arm_dyncom_trans.h b/src/core/arm/dyncom/arm_dyncom_trans.hindex 6fdb3d248e..b1ec906626 100644--- a/src/core/arm/dyncom/arm_dyncom_trans.h+++ b/src/core/arm/dyncom/arm_dyncom_trans.h@@ -1,3 +1,6 @@+#include <cstddef>+#include "common/common_types.h"+struct ARMul_State;typedef unsigned int (*shtop_fp_t)(ARMul_State* cpu, unsigned int sht_oper);diff --git a/src/core/arm/skyeye_common/armstate.h b/src/core/arm/skyeye_common/armstate.hindex f31fb207c6..1a707ff7ed 100644--- a/src/core/arm/skyeye_common/armstate.h+++ b/src/core/arm/skyeye_common/armstate.h@@ -19,7 +19,6 @@#include <array>#include <unordered_map>-#include "common/common_types.h"#include "core/arm/skyeye_common/arm_regformat.h"diff --git a/src/core/arm/skyeye_common/armsupp.cpp b/src/core/arm/skyeye_common/armsupp.cppindex e70be29a7d..b76942e478 100644--- a/src/core/arm/skyeye_common/armsupp.cpp+++ b/src/core/arm/skyeye_common/armsupp.cpp@@ -15,11 +15,10 @@along with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */+#include "core/arm/skyeye_common/armsupp.h"#include "common/logging/log.h"-#include "core/arm/skyeye_common/arm_regformat.h"#include "core/arm/skyeye_common/armstate.h"-#include "core/arm/skyeye_common/armsupp.h"// Unsigned sum of absolute differenceu8 ARMul_UnsignedAbsoluteDifference(u8 left, u8 right) {diff --git a/src/core/arm/skyeye_common/vfp/vfp.cpp b/src/core/arm/skyeye_common/vfp/vfp.cppindex 859937645f..8ac1fb95e7 100644--- a/src/core/arm/skyeye_common/vfp/vfp.cpp+++ b/src/core/arm/skyeye_common/vfp/vfp.cpp@@ -20,13 +20,12 @@/* Note: this file handles interface with arm core and vfp registers */+#include "core/arm/skyeye_common/vfp/vfp.h"#include "common/common_funcs.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/arm/skyeye_common/armstate.h"#include "core/arm/skyeye_common/vfp/asm_vfp.h"-#include "core/arm/skyeye_common/vfp/vfp.h"void VFPInit(ARMul_State* state) {state->VFP[VFP_FPSID] = VFP_FPSID_IMPLMEN << 24 | VFP_FPSID_SW << 23 | VFP_FPSID_SUBARCH << 16 |diff --git a/src/core/arm/skyeye_common/vfp/vfpdouble.cpp b/src/core/arm/skyeye_common/vfp/vfpdouble.cppindex 2886f351f4..4d89743e7a 100644--- a/src/core/arm/skyeye_common/vfp/vfpdouble.cpp+++ b/src/core/arm/skyeye_common/vfp/vfpdouble.cpp@@ -51,10 +51,10 @@* ===========================================================================*/+#include "core/arm/skyeye_common/vfp/vfp.h"#include <algorithm>#include "common/logging/log.h"#include "core/arm/skyeye_common/vfp/asm_vfp.h"-#include "core/arm/skyeye_common/vfp/vfp.h"#include "core/arm/skyeye_common/vfp/vfp_helper.h"static struct vfp_double vfp_double_default_qnan = {diff --git a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp b/src/core/arm/skyeye_common/vfp/vfpsingle.cppindex bf157e2c32..35f9d84d59 100644--- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp+++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp@@ -51,15 +51,13 @@* ===========================================================================*/+#include "core/arm/skyeye_common/vfp/vfp.h"#include <algorithm>#include <cinttypes>-#include "common/common_funcs.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/arm/skyeye_common/vfp/asm_vfp.h"-#include "core/arm/skyeye_common/vfp/vfp.h"#include "core/arm/skyeye_common/vfp/vfp_helper.h"static struct vfp_single vfp_single_default_qnan = {diff --git a/src/core/core.cpp b/src/core/core.cppindex 71a13dd33f..346b6a0ae7 100644--- a/src/core/core.cpp+++ b/src/core/core.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/core.h"#include <memory>-#include "common/logging/log.h"-#include "core/arm/arm_interface.h"#include "core/arm/dynarmic/arm_dynarmic.h"#include "core/arm/dyncom/arm_dyncom.h"-#include "core/core.h"#include "core/core_timing.h"#include "core/gdbstub/gdbstub.h"#include "core/hle/hle.h"diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cppindex fb88ecaf2c..4f38403e30 100644--- a/src/core/core_timing.cpp+++ b/src/core/core_timing.cpp@@ -2,17 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/core.h"#include <atomic>#include <cinttypes>#include <mutex>#include <vector>-#include "common/chunk_file.h"#include "common/logging/log.h"#include "common/string_util.h"-#include "core/arm/arm_interface.h"-#include "core/core.h"#include "core/core_timing.h"int g_clock_rate_arm11 = 268123480;diff --git a/src/core/core_timing.h b/src/core/core_timing.hindex 64fd8dcd02..b72a1b5001 100644--- a/src/core/core_timing.h+++ b/src/core/core_timing.h@@ -4,7 +4,9 @@#pragma once+#include <functional>#include <string>+#include "common/common_types.h"// This is a system to schedule events into the emulated machine's future. Time is measured// in main CPU clock cycles.@@ -19,10 +21,6 @@// inside callback:// ScheduleEvent(periodInCycles - cycles_late, callback, "whatever")-#include <functional>--#include "common/common_types.h"-extern int g_clock_rate_arm11;inline s64 msToCycles(int ms) {diff --git a/src/core/file_sys/archive_backend.cpp b/src/core/file_sys/archive_backend.cppindex 6ea920ec1b..5c02fb7488 100644--- a/src/core/file_sys/archive_backend.cpp+++ b/src/core/file_sys/archive_backend.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_backend.h"#include <cstddef>#include <iomanip>#include <sstream>-#include "common/logging/log.h"#include "common/string_util.h"--#include "core/file_sys/archive_backend.h"#include "core/memory.h"namespace FileSys {diff --git a/src/core/file_sys/archive_backend.h b/src/core/file_sys/archive_backend.hindex 7f64fe4e2f..d69c3c7851 100644--- a/src/core/file_sys/archive_backend.h+++ b/src/core/file_sys/archive_backend.h@@ -8,11 +8,9 @@#include <string>#include <utility>#include <vector>-#include "common/bit_field.h"#include "common/common_types.h"#include "common/swap.h"-#include "core/hle/result.h"namespace FileSys {diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cppindex 6b4af28bf3..ed9fecd646 100644--- a/src/core/file_sys/archive_extsavedata.cpp+++ b/src/core/file_sys/archive_extsavedata.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_extsavedata.h"#include <algorithm>#include <memory>#include <vector>-#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"#include "common/string_util.h"--#include "core/file_sys/archive_extsavedata.h"#include "core/file_sys/disk_archive.h"#include "core/hle/service/fs/archive.h"diff --git a/src/core/file_sys/archive_extsavedata.h b/src/core/file_sys/archive_extsavedata.hindex 2b942817e0..6a3431e94e 100644--- a/src/core/file_sys/archive_extsavedata.h+++ b/src/core/file_sys/archive_extsavedata.h@@ -6,9 +6,7 @@#include <memory>#include <string>-#include "common/common_types.h"-#include "core/file_sys/archive_backend.h"#include "core/hle/result.h"diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cppindex 87455eb954..7c0e1da21c 100644--- a/src/core/file_sys/archive_romfs.cpp+++ b/src/core/file_sys/archive_romfs.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_romfs.h"#include <algorithm>#include <memory>-#include "common/common_types.h"#include "common/logging/log.h"--#include "core/file_sys/archive_romfs.h"#include "core/file_sys/ivfc_archive.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.hindex 3c68a6b1cc..8a8082a05f 100644--- a/src/core/file_sys/archive_romfs.h+++ b/src/core/file_sys/archive_romfs.h@@ -7,9 +7,7 @@#include <memory>#include <string>#include <vector>-#include "common/common_types.h"-#include "core/file_sys/archive_backend.h"#include "core/hle/result.h"#include "core/loader/loader.h"diff --git a/src/core/file_sys/archive_savedata.cpp b/src/core/file_sys/archive_savedata.cppindex 860f2fca80..829f97743d 100644--- a/src/core/file_sys/archive_savedata.cpp+++ b/src/core/file_sys/archive_savedata.cpp@@ -2,15 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_savedata.h"#include <algorithm>#include <memory>-#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"#include "common/string_util.h"--#include "core/file_sys/archive_savedata.h"#include "core/file_sys/disk_archive.h"#include "core/hle/kernel/process.h"#include "core/hle/service/fs/archive.h"diff --git a/src/core/file_sys/archive_savedata.h b/src/core/file_sys/archive_savedata.hindex 4ac3249855..6a372865a3 100644--- a/src/core/file_sys/archive_savedata.h+++ b/src/core/file_sys/archive_savedata.h@@ -6,7 +6,6 @@#include <memory>#include <string>-#include "core/file_sys/archive_backend.h"#include "core/hle/result.h"diff --git a/src/core/file_sys/archive_savedatacheck.cpp b/src/core/file_sys/archive_savedatacheck.cppindex 50fe004fe4..8bdf24b1fb 100644--- a/src/core/file_sys/archive_savedatacheck.cpp+++ b/src/core/file_sys/archive_savedatacheck.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_savedatacheck.h"#include <algorithm>#include <memory>#include <vector>-#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"#include "common/string_util.h"--#include "core/file_sys/archive_savedatacheck.h"#include "core/file_sys/ivfc_archive.h"#include "core/hle/service/fs/archive.h"diff --git a/src/core/file_sys/archive_savedatacheck.h b/src/core/file_sys/archive_savedatacheck.hindex 4a4259260c..e9cafbed9f 100644--- a/src/core/file_sys/archive_savedatacheck.h+++ b/src/core/file_sys/archive_savedatacheck.h@@ -6,7 +6,6 @@#include <memory>#include <string>-#include "core/file_sys/archive_backend.h"#include "core/hle/result.h"diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cppindex c1a28df6c6..887cfbb0fd 100644--- a/src/core/file_sys/archive_sdmc.cpp+++ b/src/core/file_sys/archive_sdmc.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_sdmc.h"#include <algorithm>#include <memory>-#include "common/file_util.h"#include "common/logging/log.h"--#include "core/file_sys/archive_sdmc.h"#include "core/file_sys/disk_archive.h"#include "core/settings.h"diff --git a/src/core/file_sys/archive_sdmc.h b/src/core/file_sys/archive_sdmc.hindex 2523c3979a..88e855351d 100644--- a/src/core/file_sys/archive_sdmc.h+++ b/src/core/file_sys/archive_sdmc.h@@ -6,7 +6,6 @@#include <memory>#include <string>-#include "core/file_sys/archive_backend.h"#include "core/hle/result.h"diff --git a/src/core/file_sys/archive_systemsavedata.cpp b/src/core/file_sys/archive_systemsavedata.cppindex 0261ab5471..b3dfcf897d 100644--- a/src/core/file_sys/archive_systemsavedata.cpp+++ b/src/core/file_sys/archive_systemsavedata.cpp@@ -2,15 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/archive_systemsavedata.h"#include <algorithm>#include <memory>#include <vector>-#include "common/common_types.h"#include "common/file_util.h"#include "common/string_util.h"--#include "core/file_sys/archive_systemsavedata.h"#include "core/file_sys/disk_archive.h"#include "core/hle/service/fs/archive.h"diff --git a/src/core/file_sys/archive_systemsavedata.h b/src/core/file_sys/archive_systemsavedata.hindex 61a002a7d2..a24b89f2bd 100644--- a/src/core/file_sys/archive_systemsavedata.h+++ b/src/core/file_sys/archive_systemsavedata.h@@ -6,9 +6,7 @@#include <memory>#include <string>-#include "common/common_types.h"-#include "core/file_sys/archive_backend.h"#include "core/hle/result.h"diff --git a/src/core/file_sys/directory_backend.h b/src/core/file_sys/directory_backend.hindex 9706e909b9..b55e382eff 100644--- a/src/core/file_sys/directory_backend.h+++ b/src/core/file_sys/directory_backend.h@@ -6,7 +6,6 @@#include <array>#include <cstddef>-#include "common/common_types.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/file_sys/disk_archive.cpp b/src/core/file_sys/disk_archive.cppindex c084303c1a..7e88473bd1 100644--- a/src/core/file_sys/disk_archive.cpp+++ b/src/core/file_sys/disk_archive.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/disk_archive.h"#include <algorithm>#include <cstdio>#include <memory>-#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"-#include "core/file_sys/disk_archive.h"-////////////////////////////////////////////////////////////////////////////////////////////////////// FileSys namespacediff --git a/src/core/file_sys/disk_archive.h b/src/core/file_sys/disk_archive.hindex 64e36f5ea3..2165f27f9b 100644--- a/src/core/file_sys/disk_archive.h+++ b/src/core/file_sys/disk_archive.h@@ -8,10 +8,8 @@#include <memory>#include <string>#include <vector>-#include "common/common_types.h"#include "common/file_util.h"-#include "core/file_sys/archive_backend.h"#include "core/file_sys/directory_backend.h"#include "core/file_sys/file_backend.h"diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.hindex 3496facd4b..ed997537ff 100644--- a/src/core/file_sys/file_backend.h+++ b/src/core/file_sys/file_backend.h@@ -5,7 +5,6 @@#pragma once#include <cstddef>-#include "common/common_types.h"#include "core/hle/result.h"diff --git a/src/core/file_sys/ivfc_archive.cpp b/src/core/file_sys/ivfc_archive.cppindex 235a962e99..5add3254b6 100644--- a/src/core/file_sys/ivfc_archive.cpp+++ b/src/core/file_sys/ivfc_archive.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/file_sys/ivfc_archive.h"#include <cstring>#include <memory>-#include "common/common_types.h"#include "common/logging/log.h"-#include "core/file_sys/ivfc_archive.h"-////////////////////////////////////////////////////////////////////////////////////////////////////// FileSys namespacediff --git a/src/core/file_sys/ivfc_archive.h b/src/core/file_sys/ivfc_archive.hindex 0d15550dac..0df6cf83aa 100644--- a/src/core/file_sys/ivfc_archive.h+++ b/src/core/file_sys/ivfc_archive.h@@ -8,10 +8,8 @@#include <memory>#include <string>#include <vector>-#include "common/common_types.h"#include "common/file_util.h"-#include "core/file_sys/archive_backend.h"#include "core/file_sys/directory_backend.h"#include "core/file_sys/file_backend.h"diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.hindex fddc27a3e6..a7483bb10e 100644--- a/src/core/gdbstub/gdbstub.h+++ b/src/core/gdbstub/gdbstub.h@@ -6,7 +6,6 @@#pragma once#include <atomic>-#include "common/common_types.h"namespace GDBStub {diff --git a/src/core/hle/applets/applet.cpp b/src/core/hle/applets/applet.cppindex 2b4bd939d9..35e683cb3f 100644--- a/src/core/hle/applets/applet.cpp+++ b/src/core/hle/applets/applet.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/applets/applet.h"#include <cstddef>#include <memory>#include <type_traits>#include <unordered_map>-#include "common/assert.h"#include "common/common_types.h"-#include "core/core_timing.h"-#include "core/hle/applets/applet.h"#include "core/hle/applets/erreula.h"#include "core/hle/applets/mii_selector.h"#include "core/hle/applets/swkbd.h"diff --git a/src/core/hle/applets/applet.h b/src/core/hle/applets/applet.hindex 1850ad2616..bfdcad1264 100644--- a/src/core/hle/applets/applet.h+++ b/src/core/hle/applets/applet.h@@ -5,7 +5,6 @@#pragma once#include <memory>-#include "core/hle/result.h"#include "core/hle/service/apt/apt.h"diff --git a/src/core/hle/applets/erreula.cpp b/src/core/hle/applets/erreula.cppindex 457cbb1bda..9ad77994cf 100644--- a/src/core/hle/applets/erreula.cpp+++ b/src/core/hle/applets/erreula.cpp@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/string_util.h"-#include "core/hle/applets/erreula.h"+#include "common/string_util.h"#include "core/hle/service/apt/apt.h"namespace HLE {diff --git a/src/core/hle/applets/mii_selector.cpp b/src/core/hle/applets/mii_selector.cppindex 79264d3492..53d5b4ab4d 100644--- a/src/core/hle/applets/mii_selector.cpp+++ b/src/core/hle/applets/mii_selector.cpp@@ -2,18 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/applets/mii_selector.h"#include <cstring>#include <string>-#include "common/assert.h"#include "common/logging/log.h"#include "common/string_util.h"--#include "core/hle/applets/mii_selector.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/shared_memory.h"#include "core/hle/result.h"-#include "video_core/video_core.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/applets/mii_selector.h b/src/core/hle/applets/mii_selector.hindex 26966a271c..e3ab9f0cdd 100644--- a/src/core/hle/applets/mii_selector.h+++ b/src/core/hle/applets/mii_selector.h@@ -6,7 +6,6 @@#include "common/common_funcs.h"#include "common/common_types.h"-#include "core/hle/applets/applet.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/shared_memory.h"diff --git a/src/core/hle/applets/swkbd.cpp b/src/core/hle/applets/swkbd.cppindex cf2775968c..b26107332d 100644--- a/src/core/hle/applets/swkbd.cpp+++ b/src/core/hle/applets/swkbd.cpp@@ -2,21 +2,18 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/applets/swkbd.h"#include <cstring>#include <string>-#include "common/assert.h"#include "common/logging/log.h"#include "common/string_util.h"--#include "core/hle/applets/swkbd.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/shared_memory.h"#include "core/hle/result.h"#include "core/hle/service/gsp_gpu.h"#include "core/hle/service/hid/hid.h"#include "core/memory.h"-#include "video_core/video_core.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/applets/swkbd.h b/src/core/hle/applets/swkbd.hindex 4e2f9de620..ea0b1fba96 100644--- a/src/core/hle/applets/swkbd.h+++ b/src/core/hle/applets/swkbd.h@@ -6,7 +6,6 @@#include "common/common_funcs.h"#include "common/common_types.h"-#include "core/hle/applets/applet.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/shared_memory.h"diff --git a/src/core/hle/config_mem.h b/src/core/hle/config_mem.hindex 50664dac64..42fa6d789e 100644--- a/src/core/hle/config_mem.h+++ b/src/core/hle/config_mem.h@@ -12,7 +12,6 @@#include "common/common_funcs.h"#include "common/common_types.h"#include "common/swap.h"-#include "core/memory.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.hindex d5d989c291..8ce0f6d2b6 100644--- a/src/core/hle/function_wrappers.h+++ b/src/core/hle/function_wrappers.h@@ -5,8 +5,8 @@#pragma once#include "common/common_types.h"-#include "core/arm/arm_interface.h"+#include "core/core.h"#include "core/hle/hle.h"#include "core/hle/result.h"#include "core/hle/svc.h"diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cppindex 480a73e80a..5749068d6b 100644--- a/src/core/hle/hle.cpp+++ b/src/core/hle/hle.cpp@@ -2,12 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/hle.h"#include "common/assert.h"#include "common/logging/log.h"-#include "core/arm/arm_interface.h"#include "core/core.h"-#include "core/hle/hle.h"#include "core/hle/service/service.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cppindex 3506c2d48f..bcb4ee46f4 100644--- a/src/core/hle/kernel/address_arbiter.cpp+++ b/src/core/hle/kernel/address_arbiter.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/address_arbiter.h"#include "common/common_types.h"#include "common/logging/log.h"--#include "core/memory.h"-#include "core/hle/hle.h"-#include "core/hle/kernel/address_arbiter.h"#include "core/hle/kernel/thread.h"+#include "core/memory.h"////////////////////////////////////////////////////////////////////////////////////////////////////// Kernel namespacediff --git a/src/core/hle/kernel/address_arbiter.h b/src/core/hle/kernel/address_arbiter.hindex 1a03993b2f..6a7af93a92 100644--- a/src/core/hle/kernel/address_arbiter.h+++ b/src/core/hle/kernel/address_arbiter.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"// Address arbiters are an underlying kernel synchronization object that can be created/used viadiff --git a/src/core/hle/kernel/client_port.cpp b/src/core/hle/kernel/client_port.cppindex 444ce8d450..eed3339954 100644--- a/src/core/hle/kernel/client_port.cpp+++ b/src/core/hle/kernel/client_port.cpp@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/assert.h"-#include "core/hle/kernel/client_port.h"+#include "common/assert.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/server_port.h"diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.hindex 70e0d56cc1..d28147718d 100644--- a/src/core/hle/kernel/client_port.h+++ b/src/core/hle/kernel/client_port.h@@ -5,9 +5,7 @@#pragma once#include <string>-#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"namespace Kernel {diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cppindex f056eb7c36..cf8e6fa17f 100644--- a/src/core/hle/kernel/event.cpp+++ b/src/core/hle/kernel/event.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/event.h"#include <algorithm>#include <map>#include <vector>-#include "common/assert.h"--#include "core/hle/kernel/event.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/thread.h"diff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.hindex e333a46cee..6fe74065da 100644--- a/src/core/hle/kernel/event.h+++ b/src/core/hle/kernel/event.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"namespace Kernel {diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cppindex 1fd7c0326b..49bf956188 100644--- a/src/core/hle/kernel/kernel.cpp+++ b/src/core/hle/kernel/kernel.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/kernel.h"#include <algorithm>-#include "common/assert.h"#include "common/logging/log.h"-#include "core/hle/config_mem.h"-#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/memory.h"#include "core/hle/kernel/process.h"#include "core/hle/kernel/resource_limit.h"diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.hindex c683fcb80d..0e95f7ff04 100644--- a/src/core/hle/kernel/kernel.h+++ b/src/core/hle/kernel/kernel.h@@ -4,16 +4,13 @@#pragma once-#include <boost/smart_ptr/intrusive_ptr.hpp>-#include <algorithm>#include <array>#include <cstddef>#include <string>#include <vector>-+#include <boost/smart_ptr/intrusive_ptr.hpp>#include "common/common_types.h"-#include "core/hle/hle.h"#include "core/hle/result.h"diff --git a/src/core/hle/kernel/memory.cpp b/src/core/hle/kernel/memory.cppindex 89a72808a9..d13bc74c62 100644--- a/src/core/hle/kernel/memory.cpp+++ b/src/core/hle/kernel/memory.cpp@@ -2,18 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/memory.h"#include <map>#include <memory>#include <utility>#include <vector>-#include "audio_core/audio_core.h"-#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hle/config_mem.h"-#include "core/hle/kernel/memory.h"#include "core/hle/kernel/vm_manager.h"#include "core/hle/result.h"#include "core/hle/shared_page.h"diff --git a/src/core/hle/kernel/memory.h b/src/core/hle/kernel/memory.hindex b941c24b65..4e1856a414 100644--- a/src/core/hle/kernel/memory.h+++ b/src/core/hle/kernel/memory.h@@ -5,9 +5,7 @@#pragma once#include <memory>-#include "common/common_types.h"-#include "core/hle/kernel/process.h"namespace Kernel {diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cppindex edb97d324d..4cd237b447 100644--- a/src/core/hle/kernel/mutex.cpp+++ b/src/core/hle/kernel/mutex.cpp@@ -2,15 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/mutex.h"#include <map>#include <vector>-#include <boost/range/algorithm_ext/erase.hpp>-#include "common/assert.h"-#include "core/hle/kernel/kernel.h"-#include "core/hle/kernel/mutex.h"#include "core/hle/kernel/thread.h"namespace Kernel {diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.hindex cf6a51fdf5..53c3dc1f1f 100644--- a/src/core/hle/kernel/mutex.h+++ b/src/core/hle/kernel/mutex.h@@ -5,9 +5,7 @@#pragma once#include <string>-#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"namespace Kernel {diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cppindex b764f750f7..a94d74263a 100644--- a/src/core/hle/kernel/process.cpp+++ b/src/core/hle/kernel/process.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/process.h"#include <memory>-#include "common/assert.h"#include "common/common_funcs.h"#include "common/logging/log.h"-#include "core/hle/kernel/memory.h"-#include "core/hle/kernel/process.h"#include "core/hle/kernel/resource_limit.h"#include "core/hle/kernel/thread.h"#include "core/hle/kernel/vm_manager.h"diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.hindex 070b2b5589..b566950b06 100644--- a/src/core/hle/kernel/process.h+++ b/src/core/hle/kernel/process.h@@ -8,12 +8,9 @@#include <cstddef>#include <memory>#include <string>-#include <boost/container/static_vector.hpp>-#include "common/bit_field.h"#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/vm_manager.h"diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cppindex bb0baed6f5..64c91cc625 100644--- a/src/core/hle/kernel/resource_limit.cpp+++ b/src/core/hle/kernel/resource_limit.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/resource_limit.h"#include <cstring>-#include "common/logging/log.h"-#include "core/hle/kernel/resource_limit.h"-namespace Kernel {static SharedPtr<ResourceLimit> resource_limits[4];diff --git a/src/core/hle/kernel/resource_limit.h b/src/core/hle/kernel/resource_limit.hindex 5d8b31a2d7..6cdfbcf8db 100644--- a/src/core/hle/kernel/resource_limit.h+++ b/src/core/hle/kernel/resource_limit.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"namespace Kernel {diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cppindex 16ac22f1d8..2a9ced5b9c 100644--- a/src/core/hle/kernel/semaphore.cpp+++ b/src/core/hle/kernel/semaphore.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/semaphore.h"#include "common/assert.h"-#include "core/hle/kernel/kernel.h"-#include "core/hle/kernel/semaphore.h"#include "core/hle/kernel/thread.h"namespace Kernel {diff --git a/src/core/hle/kernel/semaphore.h b/src/core/hle/kernel/semaphore.hindex ed7d9a85c3..e01908a257 100644--- a/src/core/hle/kernel/semaphore.h+++ b/src/core/hle/kernel/semaphore.h@@ -6,9 +6,7 @@#include <queue>#include <string>-#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"namespace Kernel {diff --git a/src/core/hle/kernel/server_port.cpp b/src/core/hle/kernel/server_port.cppindex 57e93cad4b..12a709ceee 100644--- a/src/core/hle/kernel/server_port.cpp+++ b/src/core/hle/kernel/server_port.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/server_port.h"#include <tuple>-#include "common/assert.h"-#include "core/hle/kernel/client_port.h"#include "core/hle/kernel/kernel.h"-#include "core/hle/kernel/server_port.h"#include "core/hle/kernel/thread.h"namespace Kernel {diff --git a/src/core/hle/kernel/server_port.h b/src/core/hle/kernel/server_port.hindex c3f2ae177b..fa9448ca05 100644--- a/src/core/hle/kernel/server_port.h+++ b/src/core/hle/kernel/server_port.h@@ -6,9 +6,7 @@#include <string>#include <tuple>-#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"namespace Kernel {diff --git a/src/core/hle/kernel/session.h b/src/core/hle/kernel/session.hindex 8e4e010b8f..ec025f732a 100644--- a/src/core/hle/kernel/session.h+++ b/src/core/hle/kernel/session.h@@ -5,10 +5,8 @@#pragma once#include <string>-#include "common/assert.h"#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/thread.h"#include "core/hle/result.h"diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cppindex bf511a338a..8ab916e5ba 100644--- a/src/core/hle/kernel/shared_memory.cpp+++ b/src/core/hle/kernel/shared_memory.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/shared_memory.h"#include <cstring>-#include "common/logging/log.h"-#include "core/hle/kernel/memory.h"-#include "core/hle/kernel/shared_memory.h"#include "core/memory.h"namespace Kernel {diff --git a/src/core/hle/kernel/shared_memory.h b/src/core/hle/kernel/shared_memory.hindex afb142380e..94b335ed12 100644--- a/src/core/hle/kernel/shared_memory.h+++ b/src/core/hle/kernel/shared_memory.h@@ -5,9 +5,7 @@#pragma once#include <string>-#include "common/common_types.h"-#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/process.h"#include "core/hle/result.h"diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 0df03c9d50..0185c3ae37 100644--- a/src/core/hle/kernel/thread.cpp+++ b/src/core/hle/kernel/thread.cpp@@ -2,16 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/thread.h"#include <algorithm>#include <list>#include <vector>-#include "common/assert.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/math_util.h"#include "common/thread_queue_list.h"-#include "core/arm/arm_interface.h"#include "core/arm/skyeye_common/armstate.h"#include "core/core.h"@@ -21,7 +20,6 @@#include "core/hle/kernel/memory.h"#include "core/hle/kernel/mutex.h"#include "core/hle/kernel/process.h"-#include "core/hle/kernel/thread.h"#include "core/hle/result.h"#include "core/memory.h"diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.hindex 2ed5cf74e8..f63131716d 100644--- a/src/core/hle/kernel/thread.h+++ b/src/core/hle/kernel/thread.h@@ -6,13 +6,9 @@#include <string>#include <vector>-#include <boost/container/flat_set.hpp>-#include "common/common_types.h"-#include "core/core.h"-#include "core/hle/hle.h"#include "core/hle/kernel/kernel.h"#include "core/hle/result.h"diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cppindex 427a81923b..7432f35676 100644--- a/src/core/hle/kernel/timer.cpp+++ b/src/core/hle/kernel/timer.cpp@@ -2,15 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/timer.h"#include <cinttypes>-#include "common/assert.h"#include "common/logging/log.h"-#include "core/core_timing.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/thread.h"-#include "core/hle/kernel/timer.h"namespace Kernel {diff --git a/src/core/hle/kernel/timer.h b/src/core/hle/kernel/timer.hindex 97cd0d63ce..59a77aad38 100644--- a/src/core/hle/kernel/timer.h+++ b/src/core/hle/kernel/timer.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "core/hle/kernel/event.h"#include "core/hle/kernel/kernel.h"diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cppindex 4ad86cf489..4888986418 100644--- a/src/core/hle/kernel/vm_manager.cpp+++ b/src/core/hle/kernel/vm_manager.cpp@@ -2,11 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/kernel/vm_manager.h"#include <iterator>-#include "common/assert.h"--#include "core/hle/kernel/vm_manager.h"#include "core/memory.h"#include "core/memory_setup.h"#include "core/mmio.h"diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.hindex fbcd9870f0..9055664b20 100644--- a/src/core/hle/kernel/vm_manager.h+++ b/src/core/hle/kernel/vm_manager.h@@ -7,9 +7,7 @@#include <map>#include <memory>#include <vector>-#include "common/common_types.h"-#include "core/hle/result.h"#include "core/mmio.h"diff --git a/src/core/hle/result.h b/src/core/hle/result.hindex 492c1ffa60..7f8d8e00d9 100644--- a/src/core/hle/result.h+++ b/src/core/hle/result.h@@ -6,7 +6,6 @@#include <new>#include <utility>-#include "common/assert.h"#include "common/bit_field.h"#include "common/common_funcs.h"diff --git a/src/core/hle/service/ac_u.cpp b/src/core/hle/service/ac_u.cppindex 887b575297..0b61bfae8f 100644--- a/src/core/hle/service/ac_u.cpp+++ b/src/core/hle/service/ac_u.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/ac_u.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"-#include "core/hle/service/ac_u.h"////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace AC_Udiff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex 528bb18481..e9adfaa1b6 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -2,11 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/am/am.h"#include <cinttypes>-#include "common/logging/log.h"--#include "core/hle/service/am/am.h"#include "core/hle/service/am/am_app.h"#include "core/hle/service/am/am_net.h"#include "core/hle/service/am/am_sys.h"diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cppindex dfc1e9c08e..6240286bb9 100644--- a/src/core/hle/service/apt/apt.cpp+++ b/src/core/hle/service/apt/apt.cpp@@ -2,12 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/apt/apt.h"#include "common/common_paths.h"#include "common/file_util.h"#include "common/logging/log.h"-#include "core/hle/applets/applet.h"-#include "core/hle/service/apt/apt.h"+#include "core/hle/kernel/event.h"+#include "core/hle/kernel/mutex.h"+#include "core/hle/kernel/process.h"+#include "core/hle/kernel/shared_memory.h"#include "core/hle/service/apt/apt_a.h"#include "core/hle/service/apt/apt_s.h"#include "core/hle/service/apt/apt_u.h"@@ -16,11 +19,6 @@#include "core/hle/service/ptm/ptm.h"#include "core/hle/service/service.h"-#include "core/hle/kernel/event.h"-#include "core/hle/kernel/mutex.h"-#include "core/hle/kernel/process.h"-#include "core/hle/kernel/shared_memory.h"-namespace Service {namespace APT {diff --git a/src/core/hle/service/apt/apt.h b/src/core/hle/service/apt/apt.hindex 7597b0d3ea..a118cda1f0 100644--- a/src/core/hle/service/apt/apt.h+++ b/src/core/hle/service/apt/apt.h@@ -6,7 +6,6 @@#include "common/common_types.h"#include "common/swap.h"-#include "core/hle/kernel/kernel.h"namespace Service {diff --git a/src/core/hle/service/apt/bcfnt/bcfnt.h b/src/core/hle/service/apt/bcfnt/bcfnt.hindex 8936dcf63a..453bf7606c 100644--- a/src/core/hle/service/apt/bcfnt/bcfnt.h+++ b/src/core/hle/service/apt/bcfnt/bcfnt.h@@ -5,7 +5,6 @@#pragma once#include "common/swap.h"-#include "core/hle/kernel/shared_memory.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/cam/cam.cpp b/src/core/hle/service/cam/cam.cppindex ec1f9c749a..be2e42963f 100644--- a/src/core/hle/service/cam/cam.cpp+++ b/src/core/hle/service/cam/cam.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/cam/cam.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"-#include "core/hle/service/cam/cam.h"#include "core/hle/service/cam/cam_c.h"#include "core/hle/service/cam/cam_q.h"#include "core/hle/service/cam/cam_s.h"diff --git a/src/core/hle/service/cam/cam.h b/src/core/hle/service/cam/cam.hindex ec9b835f14..c9b6f8acf8 100644--- a/src/core/hle/service/cam/cam.h+++ b/src/core/hle/service/cam/cam.h@@ -7,7 +7,6 @@#include "common/common_funcs.h"#include "common/common_types.h"#include "common/swap.h"-#include "core/hle/kernel/kernel.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/cecd/cecd.cpp b/src/core/hle/service/cecd/cecd.cppindex 65a1d850ba..4d8916bdf5 100644--- a/src/core/hle/service/cecd/cecd.cpp+++ b/src/core/hle/service/cecd/cecd.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/cecd/cecd.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"-#include "core/hle/service/cecd/cecd.h"#include "core/hle/service/cecd/cecd_s.h"#include "core/hle/service/cecd/cecd_u.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cppindex aff033bde7..1f706751f2 100644--- a/src/core/hle/service/cfg/cfg.cpp+++ b/src/core/hle/service/cfg/cfg.cpp@@ -2,17 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/cfg/cfg.h"#include <algorithm>-#include "common/file_util.h"#include "common/logging/log.h"#include "common/string_util.h"#include "common/swap.h"-#include "core/file_sys/archive_systemsavedata.h"#include "core/file_sys/file_backend.h"#include "core/hle/result.h"-#include "core/hle/service/cfg/cfg.h"#include "core/hle/service/cfg/cfg_i.h"#include "core/hle/service/cfg/cfg_s.h"#include "core/hle/service/cfg/cfg_u.h"diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.hindex c7c2ab41d1..fb47c2aa55 100644--- a/src/core/hle/service/cfg/cfg.h+++ b/src/core/hle/service/cfg/cfg.h@@ -6,7 +6,6 @@#include <array>#include <string>-#include "common/common_types.h"union ResultCode;diff --git a/src/core/hle/service/dsp_dsp.cpp b/src/core/hle/service/dsp_dsp.cppindex 70e92c30c7..3f2f09f600 100644--- a/src/core/hle/service/dsp_dsp.cpp+++ b/src/core/hle/service/dsp_dsp.cpp@@ -2,16 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/dsp_dsp.h"#include <algorithm>#include <cinttypes>-#include "audio_core/hle/pipe.h"-#include "common/hash.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"-#include "core/hle/service/dsp_dsp.h"using DspPipe = DSP::HLE::DspPipe;diff --git a/src/core/hle/service/dsp_dsp.h b/src/core/hle/service/dsp_dsp.hindex 22f6687cce..3e97da6eb7 100644--- a/src/core/hle/service/dsp_dsp.h+++ b/src/core/hle/service/dsp_dsp.h@@ -5,7 +5,6 @@#pragma once#include <string>-#include "core/hle/service/service.h"namespace DSP {diff --git a/src/core/hle/service/err_f.cpp b/src/core/hle/service/err_f.cppindex a23f5896dc..ff606d883b 100644--- a/src/core/hle/service/err_f.cpp+++ b/src/core/hle/service/err_f.cpp@@ -2,12 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/err_f.h"#include "common/bit_field.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hle/service/err_f.h"-////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace ERR_Fdiff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cppindex 050665b486..bd89b522b3 100644--- a/src/core/hle/service/frd/frd.cpp+++ b/src/core/hle/service/frd/frd.cpp@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/string_util.h"-#include "core/hle/service/frd/frd.h"+#include "common/string_util.h"#include "core/hle/service/frd/frd_a.h"#include "core/hle/service/frd/frd_u.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cppindex 77fe5ab6cb..b945b255ea 100644--- a/src/core/hle/service/fs/archive.cpp+++ b/src/core/hle/service/fs/archive.cpp@@ -2,20 +2,18 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/fs/archive.h"#include <cstddef>#include <memory>#include <system_error>#include <type_traits>#include <unordered_map>#include <utility>-#include <boost/container/flat_map.hpp>-#include "common/assert.h"#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"-#include "core/file_sys/archive_backend.h"#include "core/file_sys/archive_extsavedata.h"#include "core/file_sys/archive_savedata.h"@@ -26,7 +24,6 @@#include "core/file_sys/file_backend.h"#include "core/hle/hle.h"#include "core/hle/result.h"-#include "core/hle/service/fs/archive.h"#include "core/hle/service/fs/fs_user.h"#include "core/hle/service/service.h"#include "core/memory.h"diff --git a/src/core/hle/service/fs/archive.h b/src/core/hle/service/fs/archive.hindex aad540ff9c..533be34a46 100644--- a/src/core/hle/service/fs/archive.h+++ b/src/core/hle/service/fs/archive.h@@ -6,9 +6,7 @@#include <memory>#include <string>-#include "common/common_types.h"-#include "core/file_sys/archive_backend.h"#include "core/hle/kernel/session.h"#include "core/hle/result.h"diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cppindex 605832214e..92578270b1 100644--- a/src/core/hle/service/fs/fs_user.cpp+++ b/src/core/hle/service/fs/fs_user.cpp@@ -2,16 +2,15 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/fs/fs_user.h"#include "common/assert.h"#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"#include "common/scope_exit.h"#include "common/string_util.h"-#include "core/hle/result.h"#include "core/hle/service/fs/archive.h"-#include "core/hle/service/fs/fs_user.h"#include "core/settings.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cppindex 2dff1e16c6..ba148eaf10 100644--- a/src/core/hle/service/gsp_gpu.cpp+++ b/src/core/hle/service/gsp_gpu.cpp@@ -2,9 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "gsp_gpu.h"#include "common/bit_field.h"#include "common/microprofile.h"-#include "core/hle/kernel/event.h"#include "core/hle/kernel/shared_memory.h"#include "core/hle/result.h"@@ -12,12 +12,9 @@#include "core/hw/hw.h"#include "core/hw/lcd.h"#include "core/memory.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/gpu_debugger.h"-#include "gsp_gpu.h"-// Main graphics debugger object - TODO: Here is probably not the best place for thisGraphicsDebugger g_debugger;diff --git a/src/core/hle/service/gsp_gpu.h b/src/core/hle/service/gsp_gpu.hindex e028123f3b..79a72f77df 100644--- a/src/core/hle/service/gsp_gpu.h+++ b/src/core/hle/service/gsp_gpu.h@@ -6,10 +6,8 @@#include <cstddef>#include <string>-#include "common/bit_field.h"#include "common/common_types.h"-#include "core/hle/result.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex 5a2edd3c0e..a050e81f77 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -2,20 +2,16 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/hid/hid.h"#include <cmath>-#include "common/emu_window.h"#include "common/logging/log.h"--#include "core/hle/service/hid/hid.h"-#include "core/hle/service/hid/hid_spvr.h"-#include "core/hle/service/hid/hid_user.h"-#include "core/hle/service/service.h"-#include "core/core_timing.h"#include "core/hle/kernel/event.h"#include "core/hle/kernel/shared_memory.h"-+#include "core/hle/service/hid/hid_spvr.h"+#include "core/hle/service/hid/hid_user.h"+#include "core/hle/service/service.h"#include "video_core/video_core.h"namespace Service {diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.hindex f54ffd8be4..7904e73550 100644--- a/src/core/hle/service/hid/hid.h+++ b/src/core/hle/service/hid/hid.h@@ -5,7 +5,6 @@#pragma once#include <array>-#ifndef _MSC_VER#include <cstddef>#endifdiff --git a/src/core/hle/service/ir/ir.cpp b/src/core/hle/service/ir/ir.cppindex fc048ae88f..459fe06917 100644--- a/src/core/hle/service/ir/ir.cpp+++ b/src/core/hle/service/ir/ir.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/ir/ir.h"#include "core/hle/kernel/event.h"#include "core/hle/kernel/shared_memory.h"--#include "core/hle/service/ir/ir.h"#include "core/hle/service/ir/ir_rst.h"#include "core/hle/service/ir/ir_u.h"#include "core/hle/service/ir/ir_user.h"diff --git a/src/core/hle/service/ldr_ro/cro_helper.cpp b/src/core/hle/service/ldr_ro/cro_helper.cppindex b5da9a9604..f583f5c310 100644--- a/src/core/hle/service/ldr_ro/cro_helper.cpp+++ b/src/core/hle/service/ldr_ro/cro_helper.cpp@@ -2,12 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/ldr_ro/cro_helper.h"#include "common/alignment.h"#include "common/logging/log.h"#include "common/scope_exit.h"-#include "core/hle/service/ldr_ro/cro_helper.h"-////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace LDR_ROdiff --git a/src/core/hle/service/ldr_ro/cro_helper.h b/src/core/hle/service/ldr_ro/cro_helper.hindex e1b8221bd9..6a0d0d3bf7 100644--- a/src/core/hle/service/ldr_ro/cro_helper.h+++ b/src/core/hle/service/ldr_ro/cro_helper.h@@ -6,10 +6,8 @@#include <array>#include <tuple>-#include "common/common_types.h"#include "common/swap.h"-#include "core/hle/result.h"#include "core/memory.h"diff --git a/src/core/hle/service/ldr_ro/ldr_ro.cpp b/src/core/hle/service/ldr_ro/ldr_ro.cppindex a8fc2c0150..3faa2e5d73 100644--- a/src/core/hle/service/ldr_ro/ldr_ro.cpp+++ b/src/core/hle/service/ldr_ro/ldr_ro.cpp@@ -2,15 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/ldr_ro/ldr_ro.h"#include "common/alignment.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/arm/arm_interface.h"#include "core/hle/kernel/process.h"#include "core/hle/kernel/vm_manager.h"#include "core/hle/service/ldr_ro/cro_helper.h"-#include "core/hle/service/ldr_ro/ldr_ro.h"#include "core/hle/service/ldr_ro/memory_synchronizer.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/service/ldr_ro/memory_synchronizer.cpp b/src/core/hle/service/ldr_ro/memory_synchronizer.cppindex aed6d33657..a3e590dfd7 100644--- a/src/core/hle/service/ldr_ro/memory_synchronizer.cpp+++ b/src/core/hle/service/ldr_ro/memory_synchronizer.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/ldr_ro/memory_synchronizer.h"#include <algorithm>-#include "common/assert.h"-#include "core/hle/service/ldr_ro/memory_synchronizer.h"-////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace LDR_ROdiff --git a/src/core/hle/service/ldr_ro/memory_synchronizer.h b/src/core/hle/service/ldr_ro/memory_synchronizer.hindex 92f2679126..883ee4acf9 100644--- a/src/core/hle/service/ldr_ro/memory_synchronizer.h+++ b/src/core/hle/service/ldr_ro/memory_synchronizer.h@@ -5,7 +5,6 @@#pragma once#include <vector>-#include "core/memory.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/service/news/news.cpp b/src/core/hle/service/news/news.cppindex e09ea56815..f22c49f528 100644--- a/src/core/hle/service/news/news.cpp+++ b/src/core/hle/service/news/news.cpp@@ -2,9 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/logging/log.h"-#include "core/hle/service/news/news.h"+#include "common/logging/log.h"#include "core/hle/service/news/news_s.h"#include "core/hle/service/news/news_u.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cppindex a7b76ed677..60505545ca 100644--- a/src/core/hle/service/nim/nim.cpp+++ b/src/core/hle/service/nim/nim.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/nim/nim.h"#include "common/common_types.h"#include "common/logging/log.h"--#include "core/hle/service/nim/nim.h"#include "core/hle/service/nim/nim_aoc.h"#include "core/hle/service/nim/nim_s.h"#include "core/hle/service/nim/nim_u.h"diff --git a/src/core/hle/service/nim/nim_u.h b/src/core/hle/service/nim/nim_u.hindex bc89dc0f38..c4b74985ac 100644--- a/src/core/hle/service/nim/nim_u.h+++ b/src/core/hle/service/nim/nim_u.h@@ -1,6 +1,6 @@// Copyright 2015 Citra Emulator Project// Licensed under GPLv2 or any later version-// Refer to the license.txt file included..+// Refer to the license.txt file included.#pragma oncediff --git a/src/core/hle/service/nwm_uds.cpp b/src/core/hle/service/nwm_uds.cppindex ed417fa9ac..3b608dcbb9 100644--- a/src/core/hle/service/nwm_uds.cpp+++ b/src/core/hle/service/nwm_uds.cpp@@ -2,11 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/nwm_uds.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"-#include "core/hle/service/nwm_uds.h"////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace NWM_UDSdiff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex a531aad87b..eff51af047 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -2,44 +2,42 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/service.h"#include "common/logging/log.h"#include "common/string_util.h"-#include "core/hle/service/ac_u.h"#include "core/hle/service/act_a.h"#include "core/hle/service/act_u.h"-#include "core/hle/service/csnd_snd.h"-#include "core/hle/service/dsp_dsp.h"-#include "core/hle/service/err_f.h"-#include "core/hle/service/gsp_gpu.h"-#include "core/hle/service/gsp_lcd.h"-#include "core/hle/service/http_c.h"-#include "core/hle/service/mic_u.h"-#include "core/hle/service/ns_s.h"-#include "core/hle/service/nwm_uds.h"-#include "core/hle/service/pm_app.h"-#include "core/hle/service/service.h"-#include "core/hle/service/soc_u.h"-#include "core/hle/service/srv.h"-#include "core/hle/service/ssl_c.h"-#include "core/hle/service/y2r_u.h"-#include "core/hle/service/am/am.h"#include "core/hle/service/apt/apt.h"#include "core/hle/service/boss/boss.h"#include "core/hle/service/cam/cam.h"#include "core/hle/service/cecd/cecd.h"#include "core/hle/service/cfg/cfg.h"+#include "core/hle/service/csnd_snd.h"#include "core/hle/service/dlp/dlp.h"+#include "core/hle/service/dsp_dsp.h"+#include "core/hle/service/err_f.h"#include "core/hle/service/frd/frd.h"#include "core/hle/service/fs/archive.h"+#include "core/hle/service/gsp_gpu.h"+#include "core/hle/service/gsp_lcd.h"#include "core/hle/service/hid/hid.h"+#include "core/hle/service/http_c.h"#include "core/hle/service/ir/ir.h"#include "core/hle/service/ldr_ro/ldr_ro.h"+#include "core/hle/service/mic_u.h"#include "core/hle/service/ndm/ndm.h"#include "core/hle/service/news/news.h"#include "core/hle/service/nim/nim.h"+#include "core/hle/service/ns_s.h"+#include "core/hle/service/nwm_uds.h"+#include "core/hle/service/pm_app.h"#include "core/hle/service/ptm/ptm.h"+#include "core/hle/service/soc_u.h"+#include "core/hle/service/srv.h"+#include "core/hle/service/ssl_c.h"+#include "core/hle/service/y2r_u.h"namespace Service {diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.hindex cd216f27e9..39b5ffaaec 100644--- a/src/core/hle/service/service.h+++ b/src/core/hle/service/service.h@@ -7,11 +7,8 @@#include <cstddef>#include <string>#include <unordered_map>-#include <boost/container/flat_map.hpp>-#include "common/common_types.h"-#include "core/hle/kernel/session.h"#include "core/hle/result.h"diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cppindex 302ab55b73..1eab61e523 100644--- a/src/core/hle/service/soc_u.cpp+++ b/src/core/hle/service/soc_u.cpp@@ -2,20 +2,18 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/soc_u.h"#include <algorithm>#include <cstring>#include <unordered_map>#include <vector>-#include "common/assert.h"#include "common/bit_field.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/scope_exit.h"-#include "core/hle/kernel/session.h"#include "core/hle/result.h"-#include "core/hle/service/soc_u.h"#include "core/memory.h"#ifdef _WIN32diff --git a/src/core/hle/service/soc_u.h b/src/core/hle/service/soc_u.hindex a091f597cc..8d02ed30f4 100644--- a/src/core/hle/service/soc_u.h+++ b/src/core/hle/service/soc_u.h@@ -5,7 +5,6 @@#pragma once#include <string>-#include "core/hle/service/service.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cppindex fda9d8acf5..241a5da941 100644--- a/src/core/hle/service/srv.cpp+++ b/src/core/hle/service/srv.cpp@@ -2,11 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/srv.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"-#include "core/hle/service/srv.h"////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace SRVdiff --git a/src/core/hle/service/ssl_c.cpp b/src/core/hle/service/ssl_c.cppindex 78ab922caf..16ec3d1163 100644--- a/src/core/hle/service/ssl_c.cpp+++ b/src/core/hle/service/ssl_c.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/ssl_c.h"#include <random>-#include "common/common_types.h"-#include "core/hle/service/ssl_c.h"////////////////////////////////////////////////////////////////////////////////////////////////////// Namespace SSL_Cdiff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cppindex d3c6d073e4..38e15b5d07 100644--- a/src/core/hle/service/y2r_u.cpp+++ b/src/core/hle/service/y2r_u.cpp@@ -2,15 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/service/y2r_u.h"#include <cstring>-#include "common/common_funcs.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hle/kernel/event.h"#include "core/hle/kernel/kernel.h"-#include "core/hle/service/y2r_u.h"#include "core/hw/y2r.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/service/y2r_u.h b/src/core/hle/service/y2r_u.hindex 95fa2fdb72..1b47b53228 100644--- a/src/core/hle/service/y2r_u.h+++ b/src/core/hle/service/y2r_u.h@@ -6,9 +6,7 @@#include <array>#include <string>-#include "common/common_types.h"-#include "core/hle/result.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cppindex 453fcf7ece..74a9031c56 100644--- a/src/core/hle/shared_page.cpp+++ b/src/core/hle/shared_page.cpp@@ -2,12 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hle/shared_page.h"#include <chrono>#include <cstring>#include <ctime>-#include "core/core_timing.h"-#include "core/hle/shared_page.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/shared_page.h b/src/core/hle/shared_page.hindex b3b10be313..106e47efc3 100644--- a/src/core/hle/shared_page.h+++ b/src/core/hle/shared_page.h@@ -13,7 +13,6 @@#include "common/common_funcs.h"#include "common/common_types.h"#include "common/swap.h"-#include "core/memory.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cppindex 9d0a9c54c9..02b397eba4 100644--- a/src/core/hle/svc.cpp+++ b/src/core/hle/svc.cpp@@ -3,16 +3,14 @@// Refer to the license.txt file included.#include <map>-#include "common/logging/log.h"#include "common/microprofile.h"#include "common/scope_exit.h"#include "common/string_util.h"#include "common/symbols.h"-#include "core/arm/arm_interface.h"#include "core/core_timing.h"-+#include "core/hle/function_wrappers.h"#include "core/hle/kernel/address_arbiter.h"#include "core/hle/kernel/client_port.h"#include "core/hle/kernel/event.h"@@ -26,8 +24,6 @@#include "core/hle/kernel/thread.h"#include "core/hle/kernel/timer.h"#include "core/hle/kernel/vm_manager.h"--#include "core/hle/function_wrappers.h"#include "core/hle/result.h"#include "core/hle/service/service.h"diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cppindex bf2c066f41..776c8fef71 100644--- a/src/core/hw/gpu.cpp+++ b/src/core/hw/gpu.cpp@@ -2,36 +2,29 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hw/gpu.h"#include <cstring>#include <numeric>#include <type_traits>-#include "common/color.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/microprofile.h"#include "common/vector_math.h"-#include "core/core_timing.h"-#include "core/memory.h"-#include "core/settings.h"-#include "core/hle/service/gsp_gpu.h"#include "core/hle/service/hid/hid.h"--#include "core/hw/gpu.h"#include "core/hw/hw.h"-+#include "core/memory.h"+#include "core/settings.h"#include "core/tracer/recorder.h"-#include "video_core/command_processor.h"+#include "video_core/debug_utils/debug_utils.h"#include "video_core/rasterizer_interface.h"#include "video_core/renderer_base.h"#include "video_core/utils.h"#include "video_core/video_core.h"-#include "video_core/debug_utils/debug_utils.h"-namespace GPU {Regs g_regs;diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.hindex 077b6255f1..32ddc56972 100644--- a/src/core/hw/gpu.h+++ b/src/core/hw/gpu.h@@ -6,7 +6,6 @@#include <cstddef>#include <type_traits>-#include "common/assert.h"#include "common/bit_field.h"#include "common/common_funcs.h"diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cppindex 71f44cbc47..0f84d5adb4 100644--- a/src/core/hw/hw.cpp+++ b/src/core/hw/hw.cpp@@ -2,11 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hw/hw.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hw/gpu.h"-#include "core/hw/hw.h"#include "core/hw/lcd.h"namespace HW {diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cppindex 0e3aa7cfdc..5231e4cc56 100644--- a/src/core/hw/lcd.cpp+++ b/src/core/hw/lcd.cpp@@ -2,14 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hw/lcd.h"#include <cstring>-#include "common/common_types.h"#include "common/logging/log.h"-#include "core/hw/hw.h"-#include "core/hw/lcd.h"-#include "core/tracer/recorder.h"#include "video_core/debug_utils/debug_utils.h"diff --git a/src/core/hw/lcd.h b/src/core/hw/lcd.hindex 404833165c..191fd44af7 100644--- a/src/core/hw/lcd.h+++ b/src/core/hw/lcd.h@@ -6,7 +6,6 @@#include <cstddef>#include <type_traits>-#include "common/bit_field.h"#include "common/common_funcs.h"#include "common/common_types.h"diff --git a/src/core/hw/y2r.cpp b/src/core/hw/y2r.cppindex 838b141631..0e13420d71 100644--- a/src/core/hw/y2r.cpp+++ b/src/core/hw/y2r.cpp@@ -2,19 +2,17 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/hw/y2r.h"#include <algorithm>#include <array>#include <cstddef>#include <memory>-#include "common/assert.h"#include "common/color.h"#include "common/common_types.h"#include "common/math_util.h"#include "common/vector_math.h"-#include "core/hle/service/y2r_u.h"-#include "core/hw/y2r.h"#include "core/memory.h"namespace HW {diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cppindex c2e87f5920..212772c5da 100644--- a/src/core/loader/3dsx.cpp+++ b/src/core/loader/3dsx.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/loader/3dsx.h"#include <algorithm>#include <vector>-#include "common/logging/log.h"-#include "core/file_sys/archive_romfs.h"#include "core/hle/kernel/process.h"#include "core/hle/kernel/resource_limit.h"#include "core/hle/service/fs/archive.h"-#include "core/loader/3dsx.h"#include "core/memory.h"namespace Loader {diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.hindex 8d15ba5558..cfcc21cc43 100644--- a/src/core/loader/3dsx.h+++ b/src/core/loader/3dsx.h@@ -5,7 +5,6 @@#pragma once#include <string>-#include "common/common_types.h"#include "core/loader/loader.h"diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cppindex 53c10a4564..0f4148a59b 100644--- a/src/core/loader/elf.cpp+++ b/src/core/loader/elf.cpp@@ -2,18 +2,16 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/loader/elf.h"#include <cstring>#include <memory>#include <string>-#include "common/common_types.h"#include "common/file_util.h"#include "common/logging/log.h"#include "common/symbols.h"-#include "core/hle/kernel/process.h"#include "core/hle/kernel/resource_limit.h"-#include "core/loader/elf.h"#include "core/memory.h"using Kernel::SharedPtr;diff --git a/src/core/loader/elf.h b/src/core/loader/elf.hindex 04a9b482de..584bf6e27d 100644--- a/src/core/loader/elf.h+++ b/src/core/loader/elf.h@@ -5,7 +5,6 @@#pragma once#include <string>-#include "common/common_types.h"#include "core/loader/loader.h"diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cppindex b392bf5441..147bf85918 100644--- a/src/core/loader/loader.cpp+++ b/src/core/loader/loader.cpp@@ -4,10 +4,8 @@#include <memory>#include <string>-#include "common/logging/log.h"#include "common/string_util.h"-#include "core/hle/kernel/process.h"#include "core/loader/3dsx.h"#include "core/loader/elf.h"diff --git a/src/core/loader/loader.h b/src/core/loader/loader.hindex fdfee835c8..9652d7ac50 100644--- a/src/core/loader/loader.h+++ b/src/core/loader/loader.h@@ -9,7 +9,6 @@#include <memory>#include <string>#include <vector>-#include "common/common_types.h"#include "common/file_util.h"diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cppindex 5b996d6717..64c8fef07f 100644--- a/src/core/loader/ncch.cpp+++ b/src/core/loader/ncch.cpp@@ -2,19 +2,17 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/loader/ncch.h"#include <algorithm>#include <cstring>#include <memory>-#include "common/logging/log.h"#include "common/string_util.h"#include "common/swap.h"-#include "core/file_sys/archive_romfs.h"#include "core/hle/kernel/process.h"#include "core/hle/kernel/resource_limit.h"#include "core/hle/service/fs/archive.h"-#include "core/loader/ncch.h"#include "core/memory.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.hindex f53f8100e6..04350d0069 100644--- a/src/core/loader/ncch.h+++ b/src/core/loader/ncch.h@@ -5,11 +5,9 @@#pragma once#include <memory>-#include "common/bit_field.h"#include "common/common_types.h"#include "common/swap.h"-#include "core/loader/loader.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/loader/smdh.cpp b/src/core/loader/smdh.cppindex 2d014054ab..7c875131fb 100644--- a/src/core/loader/smdh.cpp+++ b/src/core/loader/smdh.cpp@@ -2,14 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/loader/smdh.h"#include <cstring>#include <vector>-#include "common/common_types.h"-#include "core/loader/loader.h"-#include "core/loader/smdh.h"-#include "video_core/utils.h"namespace Loader {diff --git a/src/core/loader/smdh.h b/src/core/loader/smdh.hindex ab665ea82f..ac7726c8ff 100644--- a/src/core/loader/smdh.h+++ b/src/core/loader/smdh.h@@ -6,7 +6,6 @@#include <array>#include <vector>-#include "common/common_funcs.h"#include "common/common_types.h"#include "common/swap.h"diff --git a/src/core/memory.cpp b/src/core/memory.cppindex 4de510fe54..c702fa311d 100644--- a/src/core/memory.cpp+++ b/src/core/memory.cpp@@ -2,19 +2,16 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/memory.h"#include <array>#include <cstring>-#include "common/assert.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/swap.h"-#include "core/hle/kernel/process.h"-#include "core/memory.h"#include "core/memory_setup.h"#include "core/mmio.h"-#include "video_core/renderer_base.h"#include "video_core/video_core.h"diff --git a/src/core/memory.h b/src/core/memory.hindex 7d60ccdf1b..8fd3080ff6 100644--- a/src/core/memory.h+++ b/src/core/memory.h@@ -6,7 +6,6 @@#include <cstddef>#include <string>-#include "common/common_types.h"namespace Memory {diff --git a/src/core/memory_setup.h b/src/core/memory_setup.hindex 23c36d0196..3fdf3a87dc 100644--- a/src/core/memory_setup.h+++ b/src/core/memory_setup.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "core/mmio.h"namespace Memory {diff --git a/src/core/mmio.h b/src/core/mmio.hindex 9aa59212b2..f45126da8e 100644--- a/src/core/mmio.h+++ b/src/core/mmio.h@@ -5,7 +5,6 @@#pragma once#include <memory>-#include "common/common_types.h"namespace Memory {diff --git a/src/core/settings.cpp b/src/core/settings.cppindex 09194fe1fd..f2d1b5e74d 100644--- a/src/core/settings.cpp+++ b/src/core/settings.cpp@@ -3,11 +3,8 @@// Refer to the license.txt file included.#include "settings.h"-#include "audio_core/audio_core.h"-#include "core/gdbstub/gdbstub.h"-#include "video_core/video_core.h"namespace Settings {diff --git a/src/core/settings.h b/src/core/settings.hindex adb2fd5388..5a64f80180 100644--- a/src/core/settings.h+++ b/src/core/settings.h@@ -6,7 +6,6 @@#include <array>#include <string>-#include "common/common_types.h"namespace Settings {diff --git a/src/core/system.cpp b/src/core/system.cppindex f2bf648bd5..ef190203cf 100644--- a/src/core/system.cpp+++ b/src/core/system.cpp@@ -2,8 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "core/system.h"#include "audio_core/audio_core.h"-#include "core/core.h"#include "core/core_timing.h"#include "core/gdbstub/gdbstub.h"@@ -11,8 +11,6 @@#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/memory.h"#include "core/hw/hw.h"-#include "core/system.h"-#include "video_core/video_core.h"namespace System {diff --git a/src/core/tracer/recorder.cpp b/src/core/tracer/recorder.cppindex 11a289b2ce..ba43624848 100644--- a/src/core/tracer/recorder.cpp+++ b/src/core/tracer/recorder.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "recorder.h"#include <cstring>-#include "common/assert.h"#include "common/file_util.h"#include "common/logging/log.h"-#include "recorder.h"-namespace CiTrace {Recorder::Recorder(const InitialState& initial_state) : initial_state(initial_state) {}diff --git a/src/core/tracer/recorder.h b/src/core/tracer/recorder.hindex 6f5354f84a..aea363b958 100644--- a/src/core/tracer/recorder.h+++ b/src/core/tracer/recorder.h@@ -7,12 +7,9 @@#include <string>#include <unordered_map>#include <vector>-#include <boost/crc.hpp>--#include "common/common_types.h"-#include "citrace.h"+#include "common/common_types.h"namespace CiTrace {diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cppindex 82178d249d..5aad474187 100644--- a/src/video_core/clipper.cpp+++ b/src/video_core/clipper.cpp@@ -2,19 +2,16 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/clipper.h"#include <algorithm>#include <array>#include <cstddef>-#include <boost/container/static_vector.hpp>#include <boost/container/vector.hpp>-#include "common/bit_field.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/vector_math.h"--#include "video_core/clipper.h"#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/pica_types.h"diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cppindex 04a4ee3a2d..5c74b68e9d 100644--- a/src/video_core/command_processor.cpp+++ b/src/video_core/command_processor.cpp@@ -2,22 +2,19 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/command_processor.h"#include <array>#include <cstddef>#include <memory>#include <utility>-#include "common/assert.h"#include "common/logging/log.h"#include "common/microprofile.h"#include "common/vector_math.h"-#include "core/hle/service/gsp_gpu.h"#include "core/hw/gpu.h"#include "core/memory.h"#include "core/tracer/recorder.h"--#include "video_core/command_processor.h"#include "video_core/debug_utils/debug_utils.h"#include "video_core/pica.h"#include "video_core/pica_state.h"diff --git a/src/video_core/command_processor.h b/src/video_core/command_processor.hindex b8dad8e7b8..62ad2d3f30 100644--- a/src/video_core/command_processor.h+++ b/src/video_core/command_processor.h@@ -5,7 +5,6 @@#pragma once#include <type_traits>-#include "common/bit_field.h"#include "common/common_types.h"diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cppindex 194e5833c1..8806464d93 100644--- a/src/video_core/debug_utils/debug_utils.cpp+++ b/src/video_core/debug_utils/debug_utils.cpp@@ -20,7 +20,6 @@#include <nihstro/bit_field.h>#include <nihstro/float24.h>#include <nihstro/shader_binary.h>-#include "common/assert.h"#include "common/bit_field.h"#include "common/color.h"@@ -29,7 +28,6 @@#include "common/logging/log.h"#include "common/math_util.h"#include "common/vector_math.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/pica.h"#include "video_core/pica_state.h"diff --git a/src/video_core/debug_utils/debug_utils.h b/src/video_core/debug_utils/debug_utils.hindex fe3ed247d3..189c93abbc 100644--- a/src/video_core/debug_utils/debug_utils.h+++ b/src/video_core/debug_utils/debug_utils.h@@ -15,10 +15,8 @@#include <string>#include <utility>#include <vector>-#include "common/common_types.h"#include "common/vector_math.h"-#include "video_core/pica.h"namespace CiTrace {diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.hindex aea3916193..3c6636d66c 100644--- a/src/video_core/gpu_debugger.h+++ b/src/video_core/gpu_debugger.h@@ -7,7 +7,6 @@#include <algorithm>#include <functional>#include <vector>-#include "core/hle/service/gsp_gpu.h"class GraphicsDebugger {diff --git a/src/video_core/pica.cpp b/src/video_core/pica.cppindex ffd13e7179..771e83fe79 100644--- a/src/video_core/pica.cpp+++ b/src/video_core/pica.cpp@@ -2,12 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/pica.h"#include <cstring>#include <iterator>#include <unordered_map>#include <utility>--#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/primitive_assembly.h"#include "video_core/shader/shader.h"diff --git a/src/video_core/pica_state.h b/src/video_core/pica_state.hindex 2dbd6413f0..e4f2e6d5d8 100644--- a/src/video_core/pica_state.h+++ b/src/video_core/pica_state.h@@ -5,10 +5,8 @@#pragma once#include <array>-#include "common/bit_field.h"#include "common/common_types.h"-#include "video_core/pica.h"#include "video_core/primitive_assembly.h"#include "video_core/shader/shader.h"diff --git a/src/video_core/pica_types.h b/src/video_core/pica_types.hindex 20f648b031..5d7e100665 100644--- a/src/video_core/pica_types.h+++ b/src/video_core/pica_types.h@@ -6,7 +6,6 @@#include <cmath>#include <cstring>-#include "common/common_types.h"namespace Pica {diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cppindex 901cca26bf..670ffb67d6 100644--- a/src/video_core/primitive_assembly.cpp+++ b/src/video_core/primitive_assembly.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/primitive_assembly.h"#include "common/logging/log.h"-#include "video_core/pica.h"-#include "video_core/primitive_assembly.h"#include "video_core/shader/shader.h"namespace Pica {diff --git a/src/video_core/primitive_assembly.h b/src/video_core/primitive_assembly.hindex 2ad15a8580..0384d5984f 100644--- a/src/video_core/primitive_assembly.h+++ b/src/video_core/primitive_assembly.h@@ -5,7 +5,6 @@#pragma once#include <functional>-#include "video_core/pica.h"namespace Pica {diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cppindex f815d6cf0b..c179573d67 100644--- a/src/video_core/rasterizer.cpp+++ b/src/video_core/rasterizer.cpp@@ -2,10 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/rasterizer.h"#include <algorithm>#include <array>#include <cmath>-#include "common/assert.h"#include "common/bit_field.h"#include "common/color.h"@@ -14,15 +14,12 @@#include "common/math_util.h"#include "common/microprofile.h"#include "common/vector_math.h"-#include "core/hw/gpu.h"#include "core/memory.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/pica_types.h"-#include "video_core/rasterizer.h"#include "video_core/shader/shader.h"#include "video_core/utils.h"diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.hindex c7bd29f12c..71df233b58 100644--- a/src/video_core/rasterizer_interface.h+++ b/src/video_core/rasterizer_interface.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "core/hw/gpu.h"struct ScreenInfo;diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cppindex 0906832761..91347dea89 100644--- a/src/video_core/renderer_base.cpp+++ b/src/video_core/renderer_base.cpp@@ -2,10 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_base.h"#include <atomic>#include <memory>--#include "video_core/renderer_base.h"#include "video_core/renderer_opengl/gl_rasterizer.h"#include "video_core/swrasterizer.h"#include "video_core/video_core.h"diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.hindex daacdb167b..589aca8571 100644--- a/src/video_core/renderer_base.h+++ b/src/video_core/renderer_base.h@@ -5,9 +5,7 @@#pragma once#include <memory>-#include "common/common_types.h"-#include "video_core/rasterizer_interface.h"class EmuWindow;diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cppindex 37977464d4..45a4dc97d6 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp@@ -2,24 +2,20 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_opengl/gl_rasterizer.h"#include <memory>#include <string>#include <tuple>#include <utility>-#include <glad/glad.h>-#include "common/assert.h"#include "common/color.h"#include "common/logging/log.h"#include "common/math_util.h"#include "common/vector_math.h"-#include "core/hw/gpu.h"-#include "video_core/pica.h"#include "video_core/pica_state.h"-#include "video_core/renderer_opengl/gl_rasterizer.h"#include "video_core/renderer_opengl/gl_shader_gen.h"#include "video_core/renderer_opengl/gl_shader_util.h"#include "video_core/renderer_opengl/pica_to_gl.h"diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.hindex 60d70539cc..24fefed1b0 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.h+++ b/src/video_core/renderer_opengl/gl_rasterizer.h@@ -10,16 +10,12 @@#include <memory>#include <unordered_map>#include <vector>-#include <glad/glad.h>-#include "common/bit_field.h"#include "common/common_types.h"#include "common/hash.h"#include "common/vector_math.h"-#include "core/hw/gpu.h"-#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/pica_types.h"diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cppindex ec3300ca6a..ce9a193bde 100644--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp@@ -2,6 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_opengl/gl_rasterizer_cache.h"#include <algorithm>#include <atomic>#include <cstring>@@ -9,21 +10,16 @@#include <unordered_set>#include <utility>#include <vector>-#include <glad/glad.h>-#include "common/bit_field.h"#include "common/emu_window.h"#include "common/logging/log.h"#include "common/math_util.h"#include "common/microprofile.h"#include "common/vector_math.h"-#include "core/memory.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/pica_state.h"-#include "video_core/renderer_opengl/gl_rasterizer_cache.h"#include "video_core/renderer_opengl/gl_state.h"#include "video_core/utils.h"#include "video_core/video_core.h"diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.hindex b2272bda82..849530d860 100644--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h@@ -8,16 +8,12 @@#include <memory>#include <set>#include <tuple>-#include <boost/icl/interval_map.hpp>#include <glad/glad.h>-#include "common/assert.h"#include "common/common_funcs.h"#include "common/common_types.h"-#include "core/hw/gpu.h"-#include "video_core/pica.h"#include "video_core/renderer_opengl/gl_resource_manager.h"diff --git a/src/video_core/renderer_opengl/gl_resource_manager.h b/src/video_core/renderer_opengl/gl_resource_manager.hindex 2f40eb646c..13301ec9f5 100644--- a/src/video_core/renderer_opengl/gl_resource_manager.h+++ b/src/video_core/renderer_opengl/gl_resource_manager.h@@ -5,11 +5,8 @@#pragma once#include <utility>-#include <glad/glad.h>-#include "common/common_types.h"-#include "video_core/renderer_opengl/gl_shader_util.h"#include "video_core/renderer_opengl/gl_state.h"diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cppindex 9392c67b8e..52cee2ee27 100644--- a/src/video_core/renderer_opengl/gl_shader_gen.cpp+++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp@@ -2,16 +2,14 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_opengl/gl_shader_gen.h"#include <array>#include <cstddef>-#include "common/assert.h"#include "common/bit_field.h"#include "common/logging/log.h"-#include "video_core/pica.h"#include "video_core/renderer_opengl/gl_rasterizer.h"-#include "video_core/renderer_opengl/gl_shader_gen.h"#include "video_core/renderer_opengl/gl_shader_util.h"using Pica::Regs;diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cppindex 7d90ec6a3d..c8ba3b92d0 100644--- a/src/video_core/renderer_opengl/gl_shader_util.cpp+++ b/src/video_core/renderer_opengl/gl_shader_util.cpp@@ -2,12 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_opengl/gl_shader_util.h"#include <vector>-#include <glad/glad.h>-#include "common/logging/log.h"-#include "video_core/renderer_opengl/gl_shader_util.h"namespace GLShader {diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cppindex a97269d441..96af8469df 100644--- a/src/video_core/renderer_opengl/gl_state.cpp+++ b/src/video_core/renderer_opengl/gl_state.cpp@@ -2,13 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_opengl/gl_state.h"#include <glad/glad.h>-#include "common/common_funcs.h"#include "common/logging/log.h"-#include "video_core/renderer_opengl/gl_state.h"-OpenGLState OpenGLState::cur_state;OpenGLState::OpenGLState() {diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.hindex 415358b6c8..cc49867c8a 100644--- a/src/video_core/renderer_opengl/pica_to_gl.h+++ b/src/video_core/renderer_opengl/pica_to_gl.h@@ -6,15 +6,12 @@#include <array>#include <cstddef>-#include <glad/glad.h>-#include "common/assert.h"#include "common/bit_field.h"#include "common/common_funcs.h"#include "common/common_types.h"#include "common/logging/log.h"-#include "video_core/pica.h"using GLvec2 = std::array<GLfloat, 2>;diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cppindex a1d08e04d9..962785bdd3 100644--- a/src/video_core/renderer_opengl/renderer_opengl.cpp+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp@@ -2,30 +2,26 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/renderer_opengl/renderer_opengl.h"#include <algorithm>#include <cstddef>#include <cstdlib>#include <memory>-#include <glad/glad.h>-#include "common/assert.h"#include "common/bit_field.h"#include "common/emu_window.h"#include "common/logging/log.h"#include "common/profiler_reporting.h"#include "common/synchronized_wrapper.h"-#include "core/hw/gpu.h"#include "core/hw/hw.h"#include "core/hw/lcd.h"#include "core/memory.h"#include "core/settings.h"#include "core/tracer/recorder.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/rasterizer_interface.h"-#include "video_core/renderer_opengl/renderer_opengl.h"#include "video_core/video_core.h"static const char vertex_shader[] = R"(diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.hindex 762b790c10..87c556cff0 100644--- a/src/video_core/renderer_opengl/renderer_opengl.h+++ b/src/video_core/renderer_opengl/renderer_opengl.h@@ -5,14 +5,10 @@#pragma once#include <array>-#include <glad/glad.h>-#include "common/common_types.h"#include "common/math_util.h"-#include "core/hw/gpu.h"-#include "video_core/renderer_base.h"#include "video_core/renderer_opengl/gl_resource_manager.h"#include "video_core/renderer_opengl/gl_state.h"diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cppindex c38bdcc3c9..53e91df039 100644--- a/src/video_core/shader/shader.cpp+++ b/src/video_core/shader/shader.cpp@@ -2,28 +2,23 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/shader/shader.h"#include <atomic>#include <cmath>#include <cstring>#include <unordered_map>#include <utility>-#include <boost/range/algorithm/fill.hpp>-#include "common/bit_field.h"#include "common/hash.h"#include "common/logging/log.h"#include "common/microprofile.h"-#include "video_core/pica.h"#include "video_core/pica_state.h"-#include "video_core/shader/shader.h"#include "video_core/shader/shader_interpreter.h"-#ifdef ARCHITECTURE_x86_64#include "video_core/shader/shader_jit_x64.h"#endif // ARCHITECTURE_x86_64-#include "video_core/video_core.h"namespace Pica {diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.hindex 79c716b6e8..8858d67f8c 100644--- a/src/video_core/shader/shader.h+++ b/src/video_core/shader/shader.h@@ -9,16 +9,12 @@#include <memory>#include <type_traits>#include <vector>-#include <boost/container/static_vector.hpp>-#include <nihstro/shader_bytecode.h>-#include "common/assert.h"#include "common/common_funcs.h"#include "common/common_types.h"#include "common/vector_math.h"-#include "video_core/pica.h"#include "video_core/pica_types.h"diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cppindex 41df8a2fdd..5df3c4e86d 100644--- a/src/video_core/shader/shader_interpreter.cpp+++ b/src/video_core/shader/shader_interpreter.cpp@@ -2,21 +2,18 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/shader/shader.h"#include <algorithm>#include <array>#include <cmath>#include <numeric>-#include <nihstro/shader_bytecode.h>-#include "common/assert.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/vector_math.h"-#include "video_core/pica_state.h"#include "video_core/pica_types.h"-#include "video_core/shader/shader.h"#include "video_core/shader/shader_interpreter.h"using nihstro::OpCode;diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cppindex d1b2ce8d52..5f13237999 100644--- a/src/video_core/shader/shader_jit_x64.cpp+++ b/src/video_core/shader/shader_jit_x64.cpp@@ -2,23 +2,19 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "shader.h"#include <algorithm>#include <cmath>#include <cstdint>#include <xmmintrin.h>-#include <nihstro/shader_bytecode.h>-#include "common/assert.h"#include "common/logging/log.h"#include "common/vector_math.h"#include "common/x64/abi.h"#include "common/x64/cpu_detect.h"#include "common/x64/emitter.h"--#include "shader.h"#include "shader_jit_x64.h"-#include "video_core/pica_state.h"#include "video_core/pica_types.h"diff --git a/src/video_core/shader/shader_jit_x64.h b/src/video_core/shader/shader_jit_x64.hindex 2f37ef8bff..98de5ecefc 100644--- a/src/video_core/shader/shader_jit_x64.h+++ b/src/video_core/shader/shader_jit_x64.h@@ -8,13 +8,10 @@#include <cstddef>#include <utility>#include <vector>-#include <nihstro/shader_bytecode.h>-#include "common/bit_set.h"#include "common/common_types.h"#include "common/x64/emitter.h"-#include "video_core/shader/shader.h"using nihstro::Instruction;diff --git a/src/video_core/swrasterizer.h b/src/video_core/swrasterizer.hindex 12dc56bef3..6d42d74090 100644--- a/src/video_core/swrasterizer.h+++ b/src/video_core/swrasterizer.h@@ -5,7 +5,6 @@#pragma once#include "common/common_types.h"-#include "video_core/rasterizer_interface.h"namespace Pica {diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cppindex 9dcd9d748c..5704e9fea4 100644--- a/src/video_core/vertex_loader.cpp+++ b/src/video_core/vertex_loader.cpp@@ -1,22 +1,18 @@+#include "video_core/vertex_loader.h"#include <memory>-#include <boost/range/algorithm/fill.hpp>-#include "common/alignment.h"#include "common/assert.h"#include "common/bit_field.h"#include "common/common_types.h"#include "common/logging/log.h"#include "common/vector_math.h"-#include "core/memory.h"-#include "video_core/debug_utils/debug_utils.h"#include "video_core/pica.h"#include "video_core/pica_state.h"#include "video_core/pica_types.h"#include "video_core/shader/shader.h"-#include "video_core/vertex_loader.h"namespace Pica {diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.hindex 4f8d79f14b..9f2098bb25 100644--- a/src/video_core/vertex_loader.h+++ b/src/video_core/vertex_loader.h@@ -1,7 +1,6 @@#pragma once#include <array>-#include "common/common_types.h"#include "video_core/pica.h"diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cppindex 880f4990db..b06a88b780 100644--- a/src/video_core/video_core.cpp+++ b/src/video_core/video_core.cpp@@ -2,14 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "video_core/video_core.h"#include <memory>-#include "common/logging/log.h"-#include "video_core/pica.h"#include "video_core/renderer_base.h"#include "video_core/renderer_opengl/renderer_opengl.h"-#include "video_core/video_core.h"////////////////////////////////////////////////////////////////////////////////////////////////////// Video Core namespace