summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/.clang-format2
-rw-r--r--src/audio_core/audio_core.cpp4
-rw-r--r--src/audio_core/codec.cpp4
-rw-r--r--src/audio_core/codec.h1
-rw-r--r--src/audio_core/hle/common.h1
-rw-r--r--src/audio_core/hle/dsp.cpp3
-rw-r--r--src/audio_core/hle/dsp.h2
-rw-r--r--src/audio_core/hle/filter.cpp4
-rw-r--r--src/audio_core/hle/filter.h2
-rw-r--r--src/audio_core/hle/mixers.cpp1
-rw-r--r--src/audio_core/hle/mixers.h1
-rw-r--r--src/audio_core/hle/pipe.cpp5
-rw-r--r--src/audio_core/hle/pipe.h1
-rw-r--r--src/audio_core/hle/source.cpp5
-rw-r--r--src/audio_core/hle/source.h2
-rw-r--r--src/audio_core/interpolate.cpp1
-rw-r--r--src/audio_core/interpolate.h1
-rw-r--r--src/audio_core/null_sink.h1
-rw-r--r--src/audio_core/sdl2_sink.cpp7
-rw-r--r--src/audio_core/sdl2_sink.h1
-rw-r--r--src/audio_core/sink.h1
-rw-r--r--src/audio_core/sink_details.cpp4
-rw-r--r--src/audio_core/time_stretch.cpp5
-rw-r--r--src/audio_core/time_stretch.h1
-rw-r--r--src/citra/citra.cpp7
-rw-r--r--src/citra/config.cpp10
-rw-r--r--src/citra/config.h1
-rw-r--r--src/citra/emu_window/emu_window_sdl2.cpp8
-rw-r--r--src/citra/emu_window/emu_window_sdl2.h1
-rw-r--r--src/citra_qt/bootmanager.cpp3
-rw-r--r--src/citra_qt/bootmanager.h2
-rw-r--r--src/citra_qt/config.cpp4
-rw-r--r--src/citra_qt/config.h3
-rw-r--r--src/citra_qt/configure_audio.cpp6
-rw-r--r--src/citra_qt/configure_audio.h2
-rw-r--r--src/citra_qt/configure_debug.cpp3
-rw-r--r--src/citra_qt/configure_debug.h2
-rw-r--r--src/citra_qt/configure_dialog.cpp3
-rw-r--r--src/citra_qt/configure_dialog.h2
-rw-r--r--src/citra_qt/configure_general.cpp3
-rw-r--r--src/citra_qt/configure_general.h2
-rw-r--r--src/citra_qt/configure_graphics.cpp3
-rw-r--r--src/citra_qt/configure_graphics.h2
-rw-r--r--src/citra_qt/configure_input.cpp5
-rw-r--r--src/citra_qt/configure_input.h2
-rw-r--r--src/citra_qt/configure_system.cpp3
-rw-r--r--src/citra_qt/configure_system.h2
-rw-r--r--src/citra_qt/debugger/callstack.cpp5
-rw-r--r--src/citra_qt/debugger/disassembler.cpp5
-rw-r--r--src/citra_qt/debugger/disassembler.h4
-rw-r--r--src/citra_qt/debugger/graphics.cpp3
-rw-r--r--src/citra_qt/debugger/graphics.h1
-rw-r--r--src/citra_qt/debugger/graphics_breakpoint_observer.cpp3
-rw-r--r--src/citra_qt/debugger/graphics_breakpoint_observer.h1
-rw-r--r--src/citra_qt/debugger/graphics_breakpoints.cpp4
-rw-r--r--src/citra_qt/debugger/graphics_breakpoints.h2
-rw-r--r--src/citra_qt/debugger/graphics_breakpoints_p.h2
-rw-r--r--src/citra_qt/debugger/graphics_cmdlists.cpp5
-rw-r--r--src/citra_qt/debugger/graphics_cmdlists.h1
-rw-r--r--src/citra_qt/debugger/graphics_surface.cpp6
-rw-r--r--src/citra_qt/debugger/graphics_surface.h3
-rw-r--r--src/citra_qt/debugger/graphics_tracing.cpp11
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.cpp5
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.h4
-rw-r--r--src/citra_qt/debugger/profiler.cpp4
-rw-r--r--src/citra_qt/debugger/profiler.h4
-rw-r--r--src/citra_qt/debugger/registers.cpp4
-rw-r--r--src/citra_qt/debugger/registers.h3
-rw-r--r--src/citra_qt/game_list.cpp11
-rw-r--r--src/citra_qt/game_list_p.h4
-rw-r--r--src/citra_qt/hotkeys.cpp4
-rw-r--r--src/citra_qt/main.cpp18
-rw-r--r--src/citra_qt/main.h3
-rw-r--r--src/citra_qt/ui_settings.h3
-rw-r--r--src/citra_qt/util/spinbox.cpp5
-rw-r--r--src/citra_qt/util/util.cpp3
-rw-r--r--src/common/assert.h3
-rw-r--r--src/common/bit_field.h1
-rw-r--r--src/common/break_points.cpp3
-rw-r--r--src/common/break_points.h1
-rw-r--r--src/common/chunk_file.h1
-rw-r--r--src/common/code_block.h1
-rw-r--r--src/common/common_funcs.h1
-rw-r--r--src/common/emu_window.cpp4
-rw-r--r--src/common/emu_window.h2
-rw-r--r--src/common/file_util.cpp1
-rw-r--r--src/common/file_util.h2
-rw-r--r--src/common/hash.cpp1
-rw-r--r--src/common/key_map.cpp3
-rw-r--r--src/common/logging/backend.cpp3
-rw-r--r--src/common/logging/backend.h1
-rw-r--r--src/common/logging/filter.cpp3
-rw-r--r--src/common/logging/filter.h1
-rw-r--r--src/common/logging/text_formatter.cpp5
-rw-r--r--src/common/misc.cpp1
-rw-r--r--src/common/profiler.cpp1
-rw-r--r--src/common/profiler_reporting.h1
-rw-r--r--src/common/string_util.cpp4
-rw-r--r--src/common/string_util.h1
-rw-r--r--src/common/swap.h2
-rw-r--r--src/common/symbols.h1
-rw-r--r--src/common/thread.cpp2
-rw-r--r--src/common/thread.h1
-rw-r--r--src/common/thread_queue_list.h1
-rw-r--r--src/common/timer.cpp2
-rw-r--r--src/common/x64/cpu_detect.cpp4
-rw-r--r--src/common/x64/emitter.cpp8
-rw-r--r--src/common/x64/emitter.h1
-rw-r--r--src/core/arm/disassembler/arm_disasm.cpp4
-rw-r--r--src/core/arm/disassembler/arm_disasm.h1
-rw-r--r--src/core/arm/disassembler/load_symbol_map.cpp4
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.cpp6
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.h3
-rw-r--r--src/core/arm/dyncom/arm_dyncom.cpp11
-rw-r--r--src/core/arm/dyncom/arm_dyncom.h2
-rw-r--r--src/core/arm/dyncom/arm_dyncom_interpreter.cpp7
-rw-r--r--src/core/arm/dyncom/arm_dyncom_trans.cpp4
-rw-r--r--src/core/arm/dyncom/arm_dyncom_trans.h3
-rw-r--r--src/core/arm/skyeye_common/armstate.h1
-rw-r--r--src/core/arm/skyeye_common/armsupp.cpp3
-rw-r--r--src/core/arm/skyeye_common/vfp/vfp.cpp3
-rw-r--r--src/core/arm/skyeye_common/vfp/vfpdouble.cpp2
-rw-r--r--src/core/arm/skyeye_common/vfp/vfpsingle.cpp4
-rw-r--r--src/core/core.cpp4
-rw-r--r--src/core/core_timing.cpp4
-rw-r--r--src/core/core_timing.h6
-rw-r--r--src/core/file_sys/archive_backend.cpp4
-rw-r--r--src/core/file_sys/archive_backend.h2
-rw-r--r--src/core/file_sys/archive_extsavedata.cpp4
-rw-r--r--src/core/file_sys/archive_extsavedata.h2
-rw-r--r--src/core/file_sys/archive_romfs.cpp4
-rw-r--r--src/core/file_sys/archive_romfs.h2
-rw-r--r--src/core/file_sys/archive_savedata.cpp4
-rw-r--r--src/core/file_sys/archive_savedata.h1
-rw-r--r--src/core/file_sys/archive_savedatacheck.cpp4
-rw-r--r--src/core/file_sys/archive_savedatacheck.h1
-rw-r--r--src/core/file_sys/archive_sdmc.cpp4
-rw-r--r--src/core/file_sys/archive_sdmc.h1
-rw-r--r--src/core/file_sys/archive_systemsavedata.cpp4
-rw-r--r--src/core/file_sys/archive_systemsavedata.h2
-rw-r--r--src/core/file_sys/directory_backend.h1
-rw-r--r--src/core/file_sys/disk_archive.cpp4
-rw-r--r--src/core/file_sys/disk_archive.h2
-rw-r--r--src/core/file_sys/file_backend.h1
-rw-r--r--src/core/file_sys/ivfc_archive.cpp4
-rw-r--r--src/core/file_sys/ivfc_archive.h2
-rw-r--r--src/core/gdbstub/gdbstub.h1
-rw-r--r--src/core/hle/applets/applet.cpp4
-rw-r--r--src/core/hle/applets/applet.h1
-rw-r--r--src/core/hle/applets/erreula.cpp3
-rw-r--r--src/core/hle/applets/mii_selector.cpp5
-rw-r--r--src/core/hle/applets/mii_selector.h1
-rw-r--r--src/core/hle/applets/swkbd.cpp5
-rw-r--r--src/core/hle/applets/swkbd.h1
-rw-r--r--src/core/hle/config_mem.h1
-rw-r--r--src/core/hle/function_wrappers.h2
-rw-r--r--src/core/hle/hle.cpp3
-rw-r--r--src/core/hle/kernel/address_arbiter.cpp6
-rw-r--r--src/core/hle/kernel/address_arbiter.h1
-rw-r--r--src/core/hle/kernel/client_port.cpp3
-rw-r--r--src/core/hle/kernel/client_port.h2
-rw-r--r--src/core/hle/kernel/event.cpp4
-rw-r--r--src/core/hle/kernel/event.h1
-rw-r--r--src/core/hle/kernel/kernel.cpp4
-rw-r--r--src/core/hle/kernel/kernel.h5
-rw-r--r--src/core/hle/kernel/memory.cpp5
-rw-r--r--src/core/hle/kernel/memory.h2
-rw-r--r--src/core/hle/kernel/mutex.cpp5
-rw-r--r--src/core/hle/kernel/mutex.h2
-rw-r--r--src/core/hle/kernel/process.cpp4
-rw-r--r--src/core/hle/kernel/process.h3
-rw-r--r--src/core/hle/kernel/resource_limit.cpp4
-rw-r--r--src/core/hle/kernel/resource_limit.h1
-rw-r--r--src/core/hle/kernel/semaphore.cpp3
-rw-r--r--src/core/hle/kernel/semaphore.h2
-rw-r--r--src/core/hle/kernel/server_port.cpp4
-rw-r--r--src/core/hle/kernel/server_port.h2
-rw-r--r--src/core/hle/kernel/session.h2
-rw-r--r--src/core/hle/kernel/shared_memory.cpp4
-rw-r--r--src/core/hle/kernel/shared_memory.h2
-rw-r--r--src/core/hle/kernel/thread.cpp4
-rw-r--r--src/core/hle/kernel/thread.h4
-rw-r--r--src/core/hle/kernel/timer.cpp4
-rw-r--r--src/core/hle/kernel/timer.h1
-rw-r--r--src/core/hle/kernel/vm_manager.cpp4
-rw-r--r--src/core/hle/kernel/vm_manager.h2
-rw-r--r--src/core/hle/result.h1
-rw-r--r--src/core/hle/service/ac_u.cpp3
-rw-r--r--src/core/hle/service/am/am.cpp4
-rw-r--r--src/core/hle/service/apt/apt.cpp12
-rw-r--r--src/core/hle/service/apt/apt.h1
-rw-r--r--src/core/hle/service/apt/bcfnt/bcfnt.h1
-rw-r--r--src/core/hle/service/cam/cam.cpp3
-rw-r--r--src/core/hle/service/cam/cam.h1
-rw-r--r--src/core/hle/service/cecd/cecd.cpp3
-rw-r--r--src/core/hle/service/cfg/cfg.cpp4
-rw-r--r--src/core/hle/service/cfg/cfg.h1
-rw-r--r--src/core/hle/service/dsp_dsp.cpp5
-rw-r--r--src/core/hle/service/dsp_dsp.h1
-rw-r--r--src/core/hle/service/err_f.cpp3
-rw-r--r--src/core/hle/service/frd/frd.cpp3
-rw-r--r--src/core/hle/service/fs/archive.cpp5
-rw-r--r--src/core/hle/service/fs/archive.h2
-rw-r--r--src/core/hle/service/fs/fs_user.cpp3
-rw-r--r--src/core/hle/service/gsp_gpu.cpp5
-rw-r--r--src/core/hle/service/gsp_gpu.h2
-rw-r--r--src/core/hle/service/hid/hid.cpp12
-rw-r--r--src/core/hle/service/hid/hid.h1
-rw-r--r--src/core/hle/service/ir/ir.cpp3
-rw-r--r--src/core/hle/service/ldr_ro/cro_helper.cpp3
-rw-r--r--src/core/hle/service/ldr_ro/cro_helper.h2
-rw-r--r--src/core/hle/service/ldr_ro/ldr_ro.cpp3
-rw-r--r--src/core/hle/service/ldr_ro/memory_synchronizer.cpp4
-rw-r--r--src/core/hle/service/ldr_ro/memory_synchronizer.h1
-rw-r--r--src/core/hle/service/news/news.cpp3
-rw-r--r--src/core/hle/service/nim/nim.cpp3
-rw-r--r--src/core/hle/service/nim/nim_u.h2
-rw-r--r--src/core/hle/service/nwm_uds.cpp3
-rw-r--r--src/core/hle/service/service.cpp32
-rw-r--r--src/core/hle/service/service.h3
-rw-r--r--src/core/hle/service/soc_u.cpp4
-rw-r--r--src/core/hle/service/soc_u.h1
-rw-r--r--src/core/hle/service/srv.cpp3
-rw-r--r--src/core/hle/service/ssl_c.cpp3
-rw-r--r--src/core/hle/service/y2r_u.cpp4
-rw-r--r--src/core/hle/service/y2r_u.h2
-rw-r--r--src/core/hle/shared_page.cpp3
-rw-r--r--src/core/hle/shared_page.h1
-rw-r--r--src/core/hle/svc.cpp6
-rw-r--r--src/core/hw/gpu.cpp15
-rw-r--r--src/core/hw/gpu.h1
-rw-r--r--src/core/hw/hw.cpp3
-rw-r--r--src/core/hw/lcd.cpp5
-rw-r--r--src/core/hw/lcd.h1
-rw-r--r--src/core/hw/y2r.cpp4
-rw-r--r--src/core/loader/3dsx.cpp4
-rw-r--r--src/core/loader/3dsx.h1
-rw-r--r--src/core/loader/elf.cpp4
-rw-r--r--src/core/loader/elf.h1
-rw-r--r--src/core/loader/loader.cpp2
-rw-r--r--src/core/loader/loader.h1
-rw-r--r--src/core/loader/ncch.cpp4
-rw-r--r--src/core/loader/ncch.h2
-rw-r--r--src/core/loader/smdh.cpp5
-rw-r--r--src/core/loader/smdh.h1
-rw-r--r--src/core/memory.cpp5
-rw-r--r--src/core/memory.h1
-rw-r--r--src/core/memory_setup.h1
-rw-r--r--src/core/mmio.h1
-rw-r--r--src/core/settings.cpp3
-rw-r--r--src/core/settings.h1
-rw-r--r--src/core/system.cpp4
-rw-r--r--src/core/tracer/recorder.cpp4
-rw-r--r--src/core/tracer/recorder.h5
-rw-r--r--src/video_core/clipper.cpp5
-rw-r--r--src/video_core/command_processor.cpp5
-rw-r--r--src/video_core/command_processor.h1
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp2
-rw-r--r--src/video_core/debug_utils/debug_utils.h2
-rw-r--r--src/video_core/gpu_debugger.h1
-rw-r--r--src/video_core/pica.cpp3
-rw-r--r--src/video_core/pica_state.h2
-rw-r--r--src/video_core/pica_types.h1
-rw-r--r--src/video_core/primitive_assembly.cpp3
-rw-r--r--src/video_core/primitive_assembly.h1
-rw-r--r--src/video_core/rasterizer.cpp5
-rw-r--r--src/video_core/rasterizer_interface.h1
-rw-r--r--src/video_core/renderer_base.cpp3
-rw-r--r--src/video_core/renderer_base.h2
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp6
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.h4
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp6
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.h4
-rw-r--r--src/video_core/renderer_opengl/gl_resource_manager.h3
-rw-r--r--src/video_core/renderer_opengl/gl_shader_gen.cpp4
-rw-r--r--src/video_core/renderer_opengl/gl_shader_util.cpp4
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp4
-rw-r--r--src/video_core/renderer_opengl/pica_to_gl.h3
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp6
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.h4
-rw-r--r--src/video_core/shader/shader.cpp7
-rw-r--r--src/video_core/shader/shader.h4
-rw-r--r--src/video_core/shader/shader_interpreter.cpp5
-rw-r--r--src/video_core/shader/shader_jit_x64.cpp6
-rw-r--r--src/video_core/shader/shader_jit_x64.h3
-rw-r--r--src/video_core/swrasterizer.h1
-rw-r--r--src/video_core/vertex_loader.cpp6
-rw-r--r--src/video_core/vertex_loader.h1
-rw-r--r--src/video_core/video_core.cpp4
289 files changed, 214 insertions, 731 deletions
diff --git a/src/.clang-format b/src/.clang-format
index f9a5d1378..fc1bbb297 100644
--- a/src/.clang-format
+++ b/src/.clang-format
@@ -50,6 +50,8 @@ IncludeCategories:
50 Priority: 1 50 Priority: 1
51 - Regex: '^\<(boost|catch|dynarmic|glad|inih|nihstro)/' 51 - Regex: '^\<(boost|catch|dynarmic|glad|inih|nihstro)/'
52 Priority: 3 52 Priority: 3
53 - Regex: '^\<(SDL|SoundTouch|Q)'
54 Priority: 3
53 - Regex: '^\<' 55 - Regex: '^\<'
54 Priority: 2 56 Priority: 2
55IndentCaseLabels: false 57IndentCaseLabels: false
diff --git a/src/audio_core/audio_core.cpp b/src/audio_core/audio_core.cpp
index 0b36dbb03..c54a4b99a 100644
--- a/src/audio_core/audio_core.cpp
+++ b/src/audio_core/audio_core.cpp
@@ -2,16 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/audio_core.h"
5#include <memory> 6#include <memory>
6#include <string> 7#include <string>
7
8#include "audio_core/audio_core.h"
9#include "audio_core/hle/dsp.h" 8#include "audio_core/hle/dsp.h"
10#include "audio_core/hle/pipe.h" 9#include "audio_core/hle/pipe.h"
11#include "audio_core/null_sink.h" 10#include "audio_core/null_sink.h"
12#include "audio_core/sink.h" 11#include "audio_core/sink.h"
13#include "audio_core/sink_details.h" 12#include "audio_core/sink_details.h"
14
15#include "core/core_timing.h" 13#include "core/core_timing.h"
16#include "core/hle/kernel/vm_manager.h" 14#include "core/hle/kernel/vm_manager.h"
17#include "core/hle/service/dsp_dsp.h" 15#include "core/hle/service/dsp_dsp.h"
diff --git a/src/audio_core/codec.cpp b/src/audio_core/codec.cpp
index 4edfe9be0..fd189a176 100644
--- a/src/audio_core/codec.cpp
+++ b/src/audio_core/codec.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/codec.h"
5#include <array> 6#include <array>
6#include <cstddef> 7#include <cstddef>
7#include <cstring> 8#include <cstring>
8#include <vector> 9#include <vector>
9
10#include "audio_core/codec.h"
11
12#include "common/assert.h" 10#include "common/assert.h"
13#include "common/common_types.h" 11#include "common/common_types.h"
14#include "common/math_util.h" 12#include "common/math_util.h"
diff --git a/src/audio_core/codec.h b/src/audio_core/codec.h
index 77bbf98b5..2b0c395e6 100644
--- a/src/audio_core/codec.h
+++ b/src/audio_core/codec.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <vector> 8#include <vector>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace Codec { 11namespace Codec {
diff --git a/src/audio_core/hle/common.h b/src/audio_core/hle/common.h
index 8e7e5c3cd..7fbc3ad9a 100644
--- a/src/audio_core/hle/common.h
+++ b/src/audio_core/hle/common.h
@@ -6,7 +6,6 @@
6 6
7#include <algorithm> 7#include <algorithm>
8#include <array> 8#include <array>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace DSP { 11namespace DSP {
diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp
index aaa3a280f..aa64dae97 100644
--- a/src/audio_core/hle/dsp.cpp
+++ b/src/audio_core/hle/dsp.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/hle/dsp.h"
5#include <array> 6#include <array>
6#include <memory> 7#include <memory>
7
8#include "audio_core/hle/dsp.h"
9#include "audio_core/hle/mixers.h" 8#include "audio_core/hle/mixers.h"
10#include "audio_core/hle/pipe.h" 9#include "audio_core/hle/pipe.h"
11#include "audio_core/hle/source.h" 10#include "audio_core/hle/source.h"
diff --git a/src/audio_core/hle/dsp.h b/src/audio_core/hle/dsp.h
index f4c4b01e2..0a0f60ac1 100644
--- a/src/audio_core/hle/dsp.h
+++ b/src/audio_core/hle/dsp.h
@@ -8,9 +8,7 @@
8#include <cstddef> 8#include <cstddef>
9#include <memory> 9#include <memory>
10#include <type_traits> 10#include <type_traits>
11
12#include "audio_core/hle/common.h" 11#include "audio_core/hle/common.h"
13
14#include "common/bit_field.h" 12#include "common/bit_field.h"
15#include "common/common_funcs.h" 13#include "common/common_funcs.h"
16#include "common/common_types.h" 14#include "common/common_types.h"
diff --git a/src/audio_core/hle/filter.cpp b/src/audio_core/hle/filter.cpp
index da2a4684e..edf95f686 100644
--- a/src/audio_core/hle/filter.cpp
+++ b/src/audio_core/hle/filter.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/hle/filter.h"
5#include <array> 6#include <array>
6#include <cstddef> 7#include <cstddef>
7
8#include "audio_core/hle/common.h" 8#include "audio_core/hle/common.h"
9#include "audio_core/hle/dsp.h" 9#include "audio_core/hle/dsp.h"
10#include "audio_core/hle/filter.h"
11
12#include "common/common_types.h" 10#include "common/common_types.h"
13#include "common/math_util.h" 11#include "common/math_util.h"
14 12
diff --git a/src/audio_core/hle/filter.h b/src/audio_core/hle/filter.h
index 73d5ce670..4281a5898 100644
--- a/src/audio_core/hle/filter.h
+++ b/src/audio_core/hle/filter.h
@@ -5,10 +5,8 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8
9#include "audio_core/hle/common.h" 8#include "audio_core/hle/common.h"
10#include "audio_core/hle/dsp.h" 9#include "audio_core/hle/dsp.h"
11
12#include "common/common_types.h" 10#include "common/common_types.h"
13 11
14namespace DSP { 12namespace DSP {
diff --git a/src/audio_core/hle/mixers.cpp b/src/audio_core/hle/mixers.cpp
index 126f328bc..6cc81dfca 100644
--- a/src/audio_core/hle/mixers.cpp
+++ b/src/audio_core/hle/mixers.cpp
@@ -7,7 +7,6 @@
7#include "audio_core/hle/common.h" 7#include "audio_core/hle/common.h"
8#include "audio_core/hle/dsp.h" 8#include "audio_core/hle/dsp.h"
9#include "audio_core/hle/mixers.h" 9#include "audio_core/hle/mixers.h"
10
11#include "common/assert.h" 10#include "common/assert.h"
12#include "common/logging/log.h" 11#include "common/logging/log.h"
13#include "common/math_util.h" 12#include "common/math_util.h"
diff --git a/src/audio_core/hle/mixers.h b/src/audio_core/hle/mixers.h
index 537c3a3b9..bf4e865ae 100644
--- a/src/audio_core/hle/mixers.h
+++ b/src/audio_core/hle/mixers.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8
9#include "audio_core/hle/common.h" 8#include "audio_core/hle/common.h"
10#include "audio_core/hle/dsp.h" 9#include "audio_core/hle/dsp.h"
11 10
diff --git a/src/audio_core/hle/pipe.cpp b/src/audio_core/hle/pipe.cpp
index f2b6d6552..cab30c8aa 100644
--- a/src/audio_core/hle/pipe.cpp
+++ b/src/audio_core/hle/pipe.cpp
@@ -2,16 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/hle/pipe.h"
5#include <array> 6#include <array>
6#include <vector> 7#include <vector>
7
8#include "audio_core/hle/dsp.h" 8#include "audio_core/hle/dsp.h"
9#include "audio_core/hle/pipe.h"
10
11#include "common/assert.h" 9#include "common/assert.h"
12#include "common/common_types.h" 10#include "common/common_types.h"
13#include "common/logging/log.h" 11#include "common/logging/log.h"
14
15#include "core/hle/service/dsp_dsp.h" 12#include "core/hle/service/dsp_dsp.h"
16 13
17namespace DSP { 14namespace DSP {
diff --git a/src/audio_core/hle/pipe.h b/src/audio_core/hle/pipe.h
index 6d7fd92ab..ac053c029 100644
--- a/src/audio_core/hle/pipe.h
+++ b/src/audio_core/hle/pipe.h
@@ -6,7 +6,6 @@
6 6
7#include <cstddef> 7#include <cstddef>
8#include <vector> 8#include <vector>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace DSP { 11namespace DSP {
diff --git a/src/audio_core/hle/source.cpp b/src/audio_core/hle/source.cpp
index 249acc449..9e6b36fcd 100644
--- a/src/audio_core/hle/source.cpp
+++ b/src/audio_core/hle/source.cpp
@@ -2,17 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/hle/source.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7
8#include "audio_core/codec.h" 8#include "audio_core/codec.h"
9#include "audio_core/hle/common.h" 9#include "audio_core/hle/common.h"
10#include "audio_core/hle/source.h"
11#include "audio_core/interpolate.h" 10#include "audio_core/interpolate.h"
12
13#include "common/assert.h" 11#include "common/assert.h"
14#include "common/logging/log.h" 12#include "common/logging/log.h"
15
16#include "core/memory.h" 13#include "core/memory.h"
17 14
18namespace DSP { 15namespace DSP {
diff --git a/src/audio_core/hle/source.h b/src/audio_core/hle/source.h
index a1ab15520..3d725f2a3 100644
--- a/src/audio_core/hle/source.h
+++ b/src/audio_core/hle/source.h
@@ -7,13 +7,11 @@
7#include <array> 7#include <array>
8#include <queue> 8#include <queue>
9#include <vector> 9#include <vector>
10
11#include "audio_core/codec.h" 10#include "audio_core/codec.h"
12#include "audio_core/hle/common.h" 11#include "audio_core/hle/common.h"
13#include "audio_core/hle/dsp.h" 12#include "audio_core/hle/dsp.h"
14#include "audio_core/hle/filter.h" 13#include "audio_core/hle/filter.h"
15#include "audio_core/interpolate.h" 14#include "audio_core/interpolate.h"
16
17#include "common/common_types.h" 15#include "common/common_types.h"
18 16
19namespace DSP { 17namespace DSP {
diff --git a/src/audio_core/interpolate.cpp b/src/audio_core/interpolate.cpp
index cb1c58a67..8a5d4181a 100644
--- a/src/audio_core/interpolate.cpp
+++ b/src/audio_core/interpolate.cpp
@@ -3,7 +3,6 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/interpolate.h" 5#include "audio_core/interpolate.h"
6
7#include "common/assert.h" 6#include "common/assert.h"
8#include "common/math_util.h" 7#include "common/math_util.h"
9 8
diff --git a/src/audio_core/interpolate.h b/src/audio_core/interpolate.h
index 2d2e60311..dd06fdda9 100644
--- a/src/audio_core/interpolate.h
+++ b/src/audio_core/interpolate.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <vector> 8#include <vector>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace AudioInterp { 11namespace AudioInterp {
diff --git a/src/audio_core/null_sink.h b/src/audio_core/null_sink.h
index 9931c4778..e7668438c 100644
--- a/src/audio_core/null_sink.h
+++ b/src/audio_core/null_sink.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <cstddef> 7#include <cstddef>
8
9#include "audio_core/audio_core.h" 8#include "audio_core/audio_core.h"
10#include "audio_core/sink.h" 9#include "audio_core/sink.h"
11 10
diff --git a/src/audio_core/sdl2_sink.cpp b/src/audio_core/sdl2_sink.cpp
index 65aac877a..2520796cb 100644
--- a/src/audio_core/sdl2_sink.cpp
+++ b/src/audio_core/sdl2_sink.cpp
@@ -2,15 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/sdl2_sink.h"
5#include <list> 6#include <list>
7#include <numeric>
6#include <vector> 8#include <vector>
7
8#include <SDL.h> 9#include <SDL.h>
9
10#include "audio_core/audio_core.h" 10#include "audio_core/audio_core.h"
11#include "audio_core/sdl2_sink.h"
12
13#include <numeric>
14#include "common/assert.h" 11#include "common/assert.h"
15#include "common/logging/log.h" 12#include "common/logging/log.h"
16 13
diff --git a/src/audio_core/sdl2_sink.h b/src/audio_core/sdl2_sink.h
index b13827214..ccd0f7c7e 100644
--- a/src/audio_core/sdl2_sink.h
+++ b/src/audio_core/sdl2_sink.h
@@ -6,7 +6,6 @@
6 6
7#include <cstddef> 7#include <cstddef>
8#include <memory> 8#include <memory>
9
10#include "audio_core/sink.h" 9#include "audio_core/sink.h"
11 10
12namespace AudioCore { 11namespace AudioCore {
diff --git a/src/audio_core/sink.h b/src/audio_core/sink.h
index f5ce55a6b..08f3bab5b 100644
--- a/src/audio_core/sink.h
+++ b/src/audio_core/sink.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <vector> 7#include <vector>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10 9
11namespace AudioCore { 10namespace AudioCore {
diff --git a/src/audio_core/sink_details.cpp b/src/audio_core/sink_details.cpp
index ff529f4cf..1dc5e862e 100644
--- a/src/audio_core/sink_details.cpp
+++ b/src/audio_core/sink_details.cpp
@@ -2,12 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/sink_details.h"
5#include <memory> 6#include <memory>
6#include <vector> 7#include <vector>
7
8#include "audio_core/null_sink.h" 8#include "audio_core/null_sink.h"
9#include "audio_core/sink_details.h"
10
11#ifdef HAVE_SDL2 9#ifdef HAVE_SDL2
12#include "audio_core/sdl2_sink.h" 10#include "audio_core/sdl2_sink.h"
13#endif 11#endif
diff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cpp
index f44807c84..26059f503 100644
--- a/src/audio_core/time_stretch.cpp
+++ b/src/audio_core/time_stretch.cpp
@@ -2,15 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/time_stretch.h"
5#include <chrono> 6#include <chrono>
6#include <cmath> 7#include <cmath>
7#include <vector> 8#include <vector>
8
9#include <SoundTouch.h> 9#include <SoundTouch.h>
10
11#include "audio_core/audio_core.h" 10#include "audio_core/audio_core.h"
12#include "audio_core/time_stretch.h"
13
14#include "common/common_types.h" 11#include "common/common_types.h"
15#include "common/logging/log.h" 12#include "common/logging/log.h"
16#include "common/math_util.h" 13#include "common/math_util.h"
diff --git a/src/audio_core/time_stretch.h b/src/audio_core/time_stretch.h
index 42a213679..fa81718ed 100644
--- a/src/audio_core/time_stretch.h
+++ b/src/audio_core/time_stretch.h
@@ -5,7 +5,6 @@
5#include <cstddef> 5#include <cstddef>
6#include <memory> 6#include <memory>
7#include <vector> 7#include <vector>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10 9
11namespace AudioCore { 10namespace AudioCore {
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index 1b8f8cffe..e47375f88 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -21,22 +21,19 @@
21#include <Windows.h> 21#include <Windows.h>
22#endif 22#endif
23 23
24#include "citra/config.h"
25#include "citra/emu_window/emu_window_sdl2.h"
24#include "common/logging/backend.h" 26#include "common/logging/backend.h"
25#include "common/logging/filter.h" 27#include "common/logging/filter.h"
26#include "common/logging/log.h" 28#include "common/logging/log.h"
27#include "common/scm_rev.h" 29#include "common/scm_rev.h"
28#include "common/scope_exit.h" 30#include "common/scope_exit.h"
29#include "common/string_util.h" 31#include "common/string_util.h"
30
31#include "core/core.h" 32#include "core/core.h"
32#include "core/gdbstub/gdbstub.h" 33#include "core/gdbstub/gdbstub.h"
33#include "core/loader/loader.h" 34#include "core/loader/loader.h"
34#include "core/settings.h" 35#include "core/settings.h"
35#include "core/system.h" 36#include "core/system.h"
36
37#include "citra/config.h"
38#include "citra/emu_window/emu_window_sdl2.h"
39
40#include "video_core/video_core.h" 37#include "video_core/video_core.h"
41 38
42static void PrintHelp(const char* argv0) { 39static void PrintHelp(const char* argv0) {
diff --git a/src/citra/config.cpp b/src/citra/config.cpp
index 77679bd88..58aef7a9a 100644
--- a/src/citra/config.cpp
+++ b/src/citra/config.cpp
@@ -2,21 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "config.h"
5#include <memory> 6#include <memory>
6
7#include <inih/cpp/INIReader.h>
8
9#include <SDL.h> 7#include <SDL.h>
10 8#include <inih/cpp/INIReader.h>
11#include "citra/default_ini.h" 9#include "citra/default_ini.h"
12
13#include "common/file_util.h" 10#include "common/file_util.h"
14#include "common/logging/log.h" 11#include "common/logging/log.h"
15
16#include "core/settings.h" 12#include "core/settings.h"
17 13
18#include "config.h"
19
20Config::Config() { 14Config::Config() {
21 // TODO: Don't hardcode the path; let the frontend decide where to put the config files. 15 // TODO: Don't hardcode the path; let the frontend decide where to put the config files.
22 sdl2_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "sdl2-config.ini"; 16 sdl2_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "sdl2-config.ini";
diff --git a/src/citra/config.h b/src/citra/config.h
index 8bd2b294b..b1c31f59c 100644
--- a/src/citra/config.h
+++ b/src/citra/config.h
@@ -6,7 +6,6 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include <inih/cpp/INIReader.h> 9#include <inih/cpp/INIReader.h>
11 10
12class Config { 11class Config {
diff --git a/src/citra/emu_window/emu_window_sdl2.cpp b/src/citra/emu_window/emu_window_sdl2.cpp
index 42f2a7553..7df054208 100644
--- a/src/citra/emu_window/emu_window_sdl2.cpp
+++ b/src/citra/emu_window/emu_window_sdl2.cpp
@@ -5,22 +5,16 @@
5#include <algorithm> 5#include <algorithm>
6#include <cstdlib> 6#include <cstdlib>
7#include <string> 7#include <string>
8
9#define SDL_MAIN_HANDLED 8#define SDL_MAIN_HANDLED
10#include <SDL.h> 9#include <SDL.h>
11
12#include <glad/glad.h> 10#include <glad/glad.h>
13 11#include "citra/emu_window/emu_window_sdl2.h"
14#include "common/key_map.h" 12#include "common/key_map.h"
15#include "common/logging/log.h" 13#include "common/logging/log.h"
16#include "common/scm_rev.h" 14#include "common/scm_rev.h"
17#include "common/string_util.h" 15#include "common/string_util.h"
18
19#include "core/hle/service/hid/hid.h" 16#include "core/hle/service/hid/hid.h"
20#include "core/settings.h" 17#include "core/settings.h"
21
22#include "citra/emu_window/emu_window_sdl2.h"
23
24#include "video_core/video_core.h" 18#include "video_core/video_core.h"
25 19
26void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) { 20void 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.h
index d4d86821d..e4d14ef12 100644
--- a/src/citra/emu_window/emu_window_sdl2.h
+++ b/src/citra/emu_window/emu_window_sdl2.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <utility> 7#include <utility>
8
9#include "common/emu_window.h" 8#include "common/emu_window.h"
10 9
11struct SDL_Window; 10struct SDL_Window;
diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cpp
index 53d035b32..0abae86c3 100644
--- a/src/citra_qt/bootmanager.cpp
+++ b/src/citra_qt/bootmanager.cpp
@@ -9,16 +9,13 @@
9#endif 9#endif
10 10
11#include "citra_qt/bootmanager.h" 11#include "citra_qt/bootmanager.h"
12
13#include "common/key_map.h" 12#include "common/key_map.h"
14#include "common/microprofile.h" 13#include "common/microprofile.h"
15#include "common/scm_rev.h" 14#include "common/scm_rev.h"
16#include "common/string_util.h" 15#include "common/string_util.h"
17
18#include "core/core.h" 16#include "core/core.h"
19#include "core/settings.h" 17#include "core/settings.h"
20#include "core/system.h" 18#include "core/system.h"
21
22#include "video_core/debug_utils/debug_utils.h" 19#include "video_core/debug_utils/debug_utils.h"
23#include "video_core/video_core.h" 20#include "video_core/video_core.h"
24 21
diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.h
index 59241684d..67228b94f 100644
--- a/src/citra_qt/bootmanager.h
+++ b/src/citra_qt/bootmanager.h
@@ -5,10 +5,8 @@
5#include <atomic> 5#include <atomic>
6#include <condition_variable> 6#include <condition_variable>
7#include <mutex> 7#include <mutex>
8
9#include <QGLWidget> 8#include <QGLWidget>
10#include <QThread> 9#include <QThread>
11
12#include "common/emu_window.h" 10#include "common/emu_window.h"
13#include "common/thread.h" 11#include "common/thread.h"
14 12
diff --git a/src/citra_qt/config.cpp b/src/citra_qt/config.cpp
index d25bdcf9f..e3648572f 100644
--- a/src/citra_qt/config.cpp
+++ b/src/citra_qt/config.cpp
@@ -2,11 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <QSettings>
6
7#include "citra_qt/config.h" 5#include "citra_qt/config.h"
6#include <QSettings>
8#include "citra_qt/ui_settings.h" 7#include "citra_qt/ui_settings.h"
9
10#include "common/file_util.h" 8#include "common/file_util.h"
11 9
12Config::Config() { 10Config::Config() {
diff --git a/src/citra_qt/config.h b/src/citra_qt/config.h
index db76fa870..79c901804 100644
--- a/src/citra_qt/config.h
+++ b/src/citra_qt/config.h
@@ -4,9 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QVariant>
8#include <string> 7#include <string>
9 8#include <QVariant>
10#include "core/settings.h" 9#include "core/settings.h"
11 10
12class QSettings; 11class QSettings;
diff --git a/src/citra_qt/configure_audio.cpp b/src/citra_qt/configure_audio.cpp
index 944047d05..ba976252e 100644
--- a/src/citra_qt/configure_audio.cpp
+++ b/src/citra_qt/configure_audio.cpp
@@ -2,12 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "audio_core/sink_details.h"
6
7#include "citra_qt/configure_audio.h" 5#include "citra_qt/configure_audio.h"
8#include "ui_configure_audio.h" 6#include "audio_core/sink_details.h"
9
10#include "core/settings.h" 7#include "core/settings.h"
8#include "ui_configure_audio.h"
11 9
12ConfigureAudio::ConfigureAudio(QWidget* parent) 10ConfigureAudio::ConfigureAudio(QWidget* parent)
13 : QWidget(parent), ui(std::make_unique<Ui::ConfigureAudio>()) { 11 : QWidget(parent), ui(std::make_unique<Ui::ConfigureAudio>()) {
diff --git a/src/citra_qt/configure_audio.h b/src/citra_qt/configure_audio.h
index e836910aa..51df2e27b 100644
--- a/src/citra_qt/configure_audio.h
+++ b/src/citra_qt/configure_audio.h
@@ -4,8 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QWidget>
8#include <memory> 7#include <memory>
8#include <QWidget>
9 9
10namespace Ui { 10namespace Ui {
11class ConfigureAudio; 11class ConfigureAudio;
diff --git a/src/citra_qt/configure_debug.cpp b/src/citra_qt/configure_debug.cpp
index dde8d670e..dcc398eee 100644
--- a/src/citra_qt/configure_debug.cpp
+++ b/src/citra_qt/configure_debug.cpp
@@ -3,9 +3,8 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/configure_debug.h" 5#include "citra_qt/configure_debug.h"
6#include "ui_configure_debug.h"
7
8#include "core/settings.h" 6#include "core/settings.h"
7#include "ui_configure_debug.h"
9 8
10ConfigureDebug::ConfigureDebug(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureDebug) { 9ConfigureDebug::ConfigureDebug(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureDebug) {
11 ui->setupUi(this); 10 ui->setupUi(this);
diff --git a/src/citra_qt/configure_debug.h b/src/citra_qt/configure_debug.h
index e9c6960e2..d167eb996 100644
--- a/src/citra_qt/configure_debug.h
+++ b/src/citra_qt/configure_debug.h
@@ -4,8 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QWidget>
8#include <memory> 7#include <memory>
8#include <QWidget>
9 9
10namespace Ui { 10namespace Ui {
11class ConfigureDebug; 11class ConfigureDebug;
diff --git a/src/citra_qt/configure_dialog.cpp b/src/citra_qt/configure_dialog.cpp
index c33c95540..d6a4e8af1 100644
--- a/src/citra_qt/configure_dialog.cpp
+++ b/src/citra_qt/configure_dialog.cpp
@@ -4,9 +4,8 @@
4 4
5#include "citra_qt/configure_dialog.h" 5#include "citra_qt/configure_dialog.h"
6#include "citra_qt/config.h" 6#include "citra_qt/config.h"
7#include "ui_configure.h"
8
9#include "core/settings.h" 7#include "core/settings.h"
8#include "ui_configure.h"
10 9
11ConfigureDialog::ConfigureDialog(QWidget* parent) : QDialog(parent), ui(new Ui::ConfigureDialog) { 10ConfigureDialog::ConfigureDialog(QWidget* parent) : QDialog(parent), ui(new Ui::ConfigureDialog) {
12 ui->setupUi(this); 11 ui->setupUi(this);
diff --git a/src/citra_qt/configure_dialog.h b/src/citra_qt/configure_dialog.h
index e4e450691..21fa1f501 100644
--- a/src/citra_qt/configure_dialog.h
+++ b/src/citra_qt/configure_dialog.h
@@ -4,8 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QDialog>
8#include <memory> 7#include <memory>
8#include <QDialog>
9 9
10namespace Ui { 10namespace Ui {
11class ConfigureDialog; 11class ConfigureDialog;
diff --git a/src/citra_qt/configure_general.cpp b/src/citra_qt/configure_general.cpp
index 3e6f76bfe..27139fb30 100644
--- a/src/citra_qt/configure_general.cpp
+++ b/src/citra_qt/configure_general.cpp
@@ -4,10 +4,9 @@
4 4
5#include "citra_qt/configure_general.h" 5#include "citra_qt/configure_general.h"
6#include "citra_qt/ui_settings.h" 6#include "citra_qt/ui_settings.h"
7#include "ui_configure_general.h"
8
9#include "core/settings.h" 7#include "core/settings.h"
10#include "core/system.h" 8#include "core/system.h"
9#include "ui_configure_general.h"
11 10
12ConfigureGeneral::ConfigureGeneral(QWidget* parent) 11ConfigureGeneral::ConfigureGeneral(QWidget* parent)
13 : QWidget(parent), ui(new Ui::ConfigureGeneral) { 12 : QWidget(parent), ui(new Ui::ConfigureGeneral) {
diff --git a/src/citra_qt/configure_general.h b/src/citra_qt/configure_general.h
index 196474ae3..447552d8c 100644
--- a/src/citra_qt/configure_general.h
+++ b/src/citra_qt/configure_general.h
@@ -4,8 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QWidget>
8#include <memory> 7#include <memory>
8#include <QWidget>
9 9
10namespace Ui { 10namespace Ui {
11class ConfigureGeneral; 11class ConfigureGeneral;
diff --git a/src/citra_qt/configure_graphics.cpp b/src/citra_qt/configure_graphics.cpp
index bde6727cc..19c1f75c2 100644
--- a/src/citra_qt/configure_graphics.cpp
+++ b/src/citra_qt/configure_graphics.cpp
@@ -3,10 +3,9 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/configure_graphics.h" 5#include "citra_qt/configure_graphics.h"
6#include "ui_configure_graphics.h"
7
8#include "core/settings.h" 6#include "core/settings.h"
9#include "core/system.h" 7#include "core/system.h"
8#include "ui_configure_graphics.h"
10 9
11ConfigureGraphics::ConfigureGraphics(QWidget* parent) 10ConfigureGraphics::ConfigureGraphics(QWidget* parent)
12 : QWidget(parent), ui(new Ui::ConfigureGraphics) { 11 : QWidget(parent), ui(new Ui::ConfigureGraphics) {
diff --git a/src/citra_qt/configure_graphics.h b/src/citra_qt/configure_graphics.h
index 906d534a6..5497a55f7 100644
--- a/src/citra_qt/configure_graphics.h
+++ b/src/citra_qt/configure_graphics.h
@@ -4,8 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QWidget>
8#include <memory> 7#include <memory>
8#include <QWidget>
9 9
10namespace Ui { 10namespace Ui {
11class ConfigureGraphics; 11class ConfigureGraphics;
diff --git a/src/citra_qt/configure_input.cpp b/src/citra_qt/configure_input.cpp
index 7900134ca..7039301e3 100644
--- a/src/citra_qt/configure_input.cpp
+++ b/src/citra_qt/configure_input.cpp
@@ -2,11 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <QTimer> 5#include "citra_qt/configure_input.h"
6#include <memory> 6#include <memory>
7#include <utility> 7#include <utility>
8 8#include <QTimer>
9#include "citra_qt/configure_input.h"
10 9
11ConfigureInput::ConfigureInput(QWidget* parent) 10ConfigureInput::ConfigureInput(QWidget* parent)
12 : QWidget(parent), ui(std::make_unique<Ui::ConfigureInput>()) { 11 : QWidget(parent), ui(std::make_unique<Ui::ConfigureInput>()) {
diff --git a/src/citra_qt/configure_input.h b/src/citra_qt/configure_input.h
index 5d9624bb0..5183b904d 100644
--- a/src/citra_qt/configure_input.h
+++ b/src/citra_qt/configure_input.h
@@ -4,9 +4,9 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <memory>
7#include <QKeyEvent> 8#include <QKeyEvent>
8#include <QWidget> 9#include <QWidget>
9
10#include "citra_qt/config.h" 10#include "citra_qt/config.h"
11#include "core/settings.h" 11#include "core/settings.h"
12#include "ui_configure_input.h" 12#include "ui_configure_input.h"
diff --git a/src/citra_qt/configure_system.cpp b/src/citra_qt/configure_system.cpp
index 732e15dda..873d314ec 100644
--- a/src/citra_qt/configure_system.cpp
+++ b/src/citra_qt/configure_system.cpp
@@ -4,11 +4,10 @@
4 4
5#include "citra_qt/configure_system.h" 5#include "citra_qt/configure_system.h"
6#include "citra_qt/ui_settings.h" 6#include "citra_qt/ui_settings.h"
7#include "ui_configure_system.h"
8
9#include "core/hle/service/cfg/cfg.h" 7#include "core/hle/service/cfg/cfg.h"
10#include "core/hle/service/fs/archive.h" 8#include "core/hle/service/fs/archive.h"
11#include "core/system.h" 9#include "core/system.h"
10#include "ui_configure_system.h"
12 11
13static const std::array<int, 12> days_in_month = {{ 12static const std::array<int, 12> days_in_month = {{
14 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 13 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.h
index 3a0754bb5..db0ead13c 100644
--- a/src/citra_qt/configure_system.h
+++ b/src/citra_qt/configure_system.h
@@ -4,8 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <QWidget>
8#include <memory> 7#include <memory>
8#include <QWidget>
9 9
10namespace Ui { 10namespace Ui {
11class ConfigureSystem; 11class ConfigureSystem;
diff --git a/src/citra_qt/debugger/callstack.cpp b/src/citra_qt/debugger/callstack.cpp
index db266b506..14bd1c77c 100644
--- a/src/citra_qt/debugger/callstack.cpp
+++ b/src/citra_qt/debugger/callstack.cpp
@@ -2,13 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <QStandardItemModel>
6
7#include "citra_qt/debugger/callstack.h" 5#include "citra_qt/debugger/callstack.h"
8 6#include <QStandardItemModel>
9#include "common/common_types.h" 7#include "common/common_types.h"
10#include "common/symbols.h" 8#include "common/symbols.h"
11
12#include "core/arm/arm_interface.h" 9#include "core/arm/arm_interface.h"
13#include "core/arm/disassembler/arm_disasm.h" 10#include "core/arm/disassembler/arm_disasm.h"
14#include "core/core.h" 11#include "core/core.h"
diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cpp
index 803e8b172..7a5d3e2f1 100644
--- a/src/citra_qt/debugger/disassembler.cpp
+++ b/src/citra_qt/debugger/disassembler.cpp
@@ -2,16 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/disassembler.h"
5#include <QShortcut> 6#include <QShortcut>
6
7#include "citra_qt/bootmanager.h" 7#include "citra_qt/bootmanager.h"
8#include "citra_qt/debugger/disassembler.h"
9#include "citra_qt/hotkeys.h" 8#include "citra_qt/hotkeys.h"
10#include "citra_qt/util/util.h" 9#include "citra_qt/util/util.h"
11
12#include "common/break_points.h" 10#include "common/break_points.h"
13#include "common/symbols.h" 11#include "common/symbols.h"
14
15#include "core/arm/arm_interface.h" 12#include "core/arm/arm_interface.h"
16#include "core/arm/disassembler/arm_disasm.h" 13#include "core/arm/disassembler/arm_disasm.h"
17#include "core/core.h" 14#include "core/core.h"
diff --git a/src/citra_qt/debugger/disassembler.h b/src/citra_qt/debugger/disassembler.h
index 1f5607788..2ca6c2bd4 100644
--- a/src/citra_qt/debugger/disassembler.h
+++ b/src/citra_qt/debugger/disassembler.h
@@ -6,11 +6,9 @@
6 6
7#include <QAbstractListModel> 7#include <QAbstractListModel>
8#include <QDockWidget> 8#include <QDockWidget>
9
10#include "ui_disassembler.h"
11
12#include "common/break_points.h" 9#include "common/break_points.h"
13#include "common/common_types.h" 10#include "common/common_types.h"
11#include "ui_disassembler.h"
14 12
15class QAction; 13class QAction;
16class EmuThread; 14class EmuThread;
diff --git a/src/citra_qt/debugger/graphics.cpp b/src/citra_qt/debugger/graphics.cpp
index b79c063db..31b54e855 100644
--- a/src/citra_qt/debugger/graphics.cpp
+++ b/src/citra_qt/debugger/graphics.cpp
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <QListView>
6
7#include "citra_qt/debugger/graphics.h" 5#include "citra_qt/debugger/graphics.h"
6#include <QListView>
8#include "citra_qt/util/util.h" 7#include "citra_qt/util/util.h"
9 8
10extern GraphicsDebugger g_debugger; 9extern GraphicsDebugger g_debugger;
diff --git a/src/citra_qt/debugger/graphics.h b/src/citra_qt/debugger/graphics.h
index 7d681b97d..bedf3e596 100644
--- a/src/citra_qt/debugger/graphics.h
+++ b/src/citra_qt/debugger/graphics.h
@@ -6,7 +6,6 @@
6 6
7#include <QAbstractListModel> 7#include <QAbstractListModel>
8#include <QDockWidget> 8#include <QDockWidget>
9
10#include "video_core/gpu_debugger.h" 9#include "video_core/gpu_debugger.h"
11 10
12class GPUCommandStreamItemModel : public QAbstractListModel, 11class GPUCommandStreamItemModel : public QAbstractListModel,
diff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp
index 25a398ece..ad11552d7 100644
--- a/src/citra_qt/debugger/graphics_breakpoint_observer.cpp
+++ b/src/citra_qt/debugger/graphics_breakpoint_observer.cpp
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <QMetaType>
6
7#include "citra_qt/debugger/graphics_breakpoint_observer.h" 5#include "citra_qt/debugger/graphics_breakpoint_observer.h"
6#include <QMetaType>
8 7
9BreakPointObserverDock::BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context, 8BreakPointObserverDock::BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context,
10 const QString& title, QWidget* parent) 9 const QString& title, QWidget* parent)
diff --git a/src/citra_qt/debugger/graphics_breakpoint_observer.h b/src/citra_qt/debugger/graphics_breakpoint_observer.h
index 8d0871f27..e77df4f5b 100644
--- a/src/citra_qt/debugger/graphics_breakpoint_observer.h
+++ b/src/citra_qt/debugger/graphics_breakpoint_observer.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <QDockWidget> 7#include <QDockWidget>
8
9#include "video_core/debug_utils/debug_utils.h" 8#include "video_core/debug_utils/debug_utils.h"
10 9
11/** 10/**
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp
index b31eba533..e1d1b4911 100644
--- a/src/citra_qt/debugger/graphics_breakpoints.cpp
+++ b/src/citra_qt/debugger/graphics_breakpoints.cpp
@@ -2,15 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/graphics_breakpoints.h"
5#include <QLabel> 6#include <QLabel>
6#include <QMetaType> 7#include <QMetaType>
7#include <QPushButton> 8#include <QPushButton>
8#include <QTreeView> 9#include <QTreeView>
9#include <QVBoxLayout> 10#include <QVBoxLayout>
10
11#include "citra_qt/debugger/graphics_breakpoints.h"
12#include "citra_qt/debugger/graphics_breakpoints_p.h" 11#include "citra_qt/debugger/graphics_breakpoints_p.h"
13
14#include "common/assert.h" 12#include "common/assert.h"
15 13
16BreakPointModel::BreakPointModel(std::shared_ptr<Pica::DebugContext> debug_context, QObject* parent) 14BreakPointModel::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.h
index 2371b0e39..5fc40c916 100644
--- a/src/citra_qt/debugger/graphics_breakpoints.h
+++ b/src/citra_qt/debugger/graphics_breakpoints.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include <QDockWidget> 8#include <QDockWidget>
10
11#include "video_core/debug_utils/debug_utils.h" 9#include "video_core/debug_utils/debug_utils.h"
12 10
13class QLabel; 11class QLabel;
diff --git a/src/citra_qt/debugger/graphics_breakpoints_p.h b/src/citra_qt/debugger/graphics_breakpoints_p.h
index 5f321ede2..dc64706bd 100644
--- a/src/citra_qt/debugger/graphics_breakpoints_p.h
+++ b/src/citra_qt/debugger/graphics_breakpoints_p.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include <QAbstractListModel> 8#include <QAbstractListModel>
10
11#include "video_core/debug_utils/debug_utils.h" 9#include "video_core/debug_utils/debug_utils.h"
12 10
13class BreakPointModel : public QAbstractListModel { 11class BreakPointModel : public QAbstractListModel {
diff --git a/src/citra_qt/debugger/graphics_cmdlists.cpp b/src/citra_qt/debugger/graphics_cmdlists.cpp
index b088ad29d..35be9b9bd 100644
--- a/src/citra_qt/debugger/graphics_cmdlists.cpp
+++ b/src/citra_qt/debugger/graphics_cmdlists.cpp
@@ -2,6 +2,7 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/graphics_cmdlists.h"
5#include <QApplication> 6#include <QApplication>
6#include <QClipboard> 7#include <QClipboard>
7#include <QComboBox> 8#include <QComboBox>
@@ -13,13 +14,9 @@
13#include <QSpinBox> 14#include <QSpinBox>
14#include <QTreeView> 15#include <QTreeView>
15#include <QVBoxLayout> 16#include <QVBoxLayout>
16
17#include "citra_qt/debugger/graphics_cmdlists.h"
18#include "citra_qt/util/spinbox.h" 17#include "citra_qt/util/spinbox.h"
19#include "citra_qt/util/util.h" 18#include "citra_qt/util/util.h"
20
21#include "common/vector_math.h" 19#include "common/vector_math.h"
22
23#include "video_core/debug_utils/debug_utils.h" 20#include "video_core/debug_utils/debug_utils.h"
24#include "video_core/pica.h" 21#include "video_core/pica.h"
25#include "video_core/pica_state.h" 22#include "video_core/pica_state.h"
diff --git a/src/citra_qt/debugger/graphics_cmdlists.h b/src/citra_qt/debugger/graphics_cmdlists.h
index b2242eca4..fa2b9122b 100644
--- a/src/citra_qt/debugger/graphics_cmdlists.h
+++ b/src/citra_qt/debugger/graphics_cmdlists.h
@@ -6,7 +6,6 @@
6 6
7#include <QAbstractListModel> 7#include <QAbstractListModel>
8#include <QDockWidget> 8#include <QDockWidget>
9
10#include "video_core/debug_utils/debug_utils.h" 9#include "video_core/debug_utils/debug_utils.h"
11#include "video_core/gpu_debugger.h" 10#include "video_core/gpu_debugger.h"
12 11
diff --git a/src/citra_qt/debugger/graphics_surface.cpp b/src/citra_qt/debugger/graphics_surface.cpp
index bb998acc4..496fce59d 100644
--- a/src/citra_qt/debugger/graphics_surface.cpp
+++ b/src/citra_qt/debugger/graphics_surface.cpp
@@ -2,6 +2,7 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/graphics_surface.h"
5#include <QBoxLayout> 6#include <QBoxLayout>
6#include <QComboBox> 7#include <QComboBox>
7#include <QDebug> 8#include <QDebug>
@@ -11,15 +12,10 @@
11#include <QPushButton> 12#include <QPushButton>
12#include <QScrollArea> 13#include <QScrollArea>
13#include <QSpinBox> 14#include <QSpinBox>
14
15#include "citra_qt/debugger/graphics_surface.h"
16#include "citra_qt/util/spinbox.h" 15#include "citra_qt/util/spinbox.h"
17
18#include "common/color.h" 16#include "common/color.h"
19
20#include "core/hw/gpu.h" 17#include "core/hw/gpu.h"
21#include "core/memory.h" 18#include "core/memory.h"
22
23#include "video_core/pica.h" 19#include "video_core/pica.h"
24#include "video_core/pica_state.h" 20#include "video_core/pica_state.h"
25#include "video_core/utils.h" 21#include "video_core/utils.h"
diff --git a/src/citra_qt/debugger/graphics_surface.h b/src/citra_qt/debugger/graphics_surface.h
index 5881ae60a..21e6b5b8b 100644
--- a/src/citra_qt/debugger/graphics_surface.h
+++ b/src/citra_qt/debugger/graphics_surface.h
@@ -4,10 +4,9 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "citra_qt/debugger/graphics_breakpoint_observer.h"
8
9#include <QLabel> 7#include <QLabel>
10#include <QPushButton> 8#include <QPushButton>
9#include "citra_qt/debugger/graphics_breakpoint_observer.h"
11 10
12class QComboBox; 11class QComboBox;
13class QSpinBox; 12class QSpinBox;
diff --git a/src/citra_qt/debugger/graphics_tracing.cpp b/src/citra_qt/debugger/graphics_tracing.cpp
index b6f638b60..944150b8e 100644
--- a/src/citra_qt/debugger/graphics_tracing.cpp
+++ b/src/citra_qt/debugger/graphics_tracing.cpp
@@ -2,29 +2,22 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/graphics_tracing.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7#include <iterator> 8#include <iterator>
8#include <memory> 9#include <memory>
9
10#include <boost/range/algorithm/copy.hpp>
11
12#include <QBoxLayout> 10#include <QBoxLayout>
13#include <QComboBox> 11#include <QComboBox>
14#include <QFileDialog> 12#include <QFileDialog>
15#include <QMessageBox> 13#include <QMessageBox>
16#include <QPushButton> 14#include <QPushButton>
17 15#include <boost/range/algorithm/copy.hpp>
18#include "citra_qt/debugger/graphics_tracing.h"
19
20#include "common/common_types.h" 16#include "common/common_types.h"
21
22#include "core/hw/gpu.h" 17#include "core/hw/gpu.h"
23#include "core/hw/lcd.h" 18#include "core/hw/lcd.h"
24#include "core/tracer/recorder.h" 19#include "core/tracer/recorder.h"
25
26#include "nihstro/float24.h" 20#include "nihstro/float24.h"
27
28#include "video_core/pica.h" 21#include "video_core/pica.h"
29#include "video_core/pica_state.h" 22#include "video_core/pica_state.h"
30 23
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp
index 0f02bc3da..3b3ffe5c6 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp
+++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp
@@ -2,9 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/graphics_vertex_shader.h"
5#include <iomanip> 6#include <iomanip>
6#include <sstream> 7#include <sstream>
7
8#include <QBoxLayout> 8#include <QBoxLayout>
9#include <QFileDialog> 9#include <QFileDialog>
10#include <QFormLayout> 10#include <QFormLayout>
@@ -15,10 +15,7 @@
15#include <QSignalMapper> 15#include <QSignalMapper>
16#include <QSpinBox> 16#include <QSpinBox>
17#include <QTreeView> 17#include <QTreeView>
18
19#include "citra_qt/debugger/graphics_vertex_shader.h"
20#include "citra_qt/util/util.h" 18#include "citra_qt/util/util.h"
21
22#include "video_core/pica.h" 19#include "video_core/pica.h"
23#include "video_core/pica_state.h" 20#include "video_core/pica_state.h"
24#include "video_core/shader/shader.h" 21#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.h
index 96692d82c..ec42f24bb 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.h
+++ b/src/citra_qt/debugger/graphics_vertex_shader.h
@@ -5,11 +5,9 @@
5#pragma once 5#pragma once
6 6
7#include <QAbstractTableModel> 7#include <QAbstractTableModel>
8 8#include <QTreeView>
9#include "citra_qt/debugger/graphics_breakpoint_observer.h" 9#include "citra_qt/debugger/graphics_breakpoint_observer.h"
10
11#include "nihstro/parser_shbin.h" 10#include "nihstro/parser_shbin.h"
12
13#include "video_core/shader/shader.h" 11#include "video_core/shader/shader.h"
14 12
15class QLabel; 13class QLabel;
diff --git a/src/citra_qt/debugger/profiler.cpp b/src/citra_qt/debugger/profiler.cpp
index 97a377513..39d2d6e39 100644
--- a/src/citra_qt/debugger/profiler.cpp
+++ b/src/citra_qt/debugger/profiler.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/debugger/profiler.h"
5#include <QMouseEvent> 6#include <QMouseEvent>
6#include <QPainter> 7#include <QPainter>
7#include <QString> 8#include <QString>
8
9#include "citra_qt/debugger/profiler.h"
10#include "citra_qt/util/util.h" 9#include "citra_qt/util/util.h"
11
12#include "common/common_types.h" 10#include "common/common_types.h"
13#include "common/microprofile.h" 11#include "common/microprofile.h"
14#include "common/profiler_reporting.h" 12#include "common/profiler_reporting.h"
diff --git a/src/citra_qt/debugger/profiler.h b/src/citra_qt/debugger/profiler.h
index d0a90fdee..d8c6487aa 100644
--- a/src/citra_qt/debugger/profiler.h
+++ b/src/citra_qt/debugger/profiler.h
@@ -7,11 +7,9 @@
7#include <QAbstractItemModel> 7#include <QAbstractItemModel>
8#include <QDockWidget> 8#include <QDockWidget>
9#include <QTimer> 9#include <QTimer>
10
11#include "ui_profiler.h"
12
13#include "common/microprofile.h" 10#include "common/microprofile.h"
14#include "common/profiler_reporting.h" 11#include "common/profiler_reporting.h"
12#include "ui_profiler.h"
15 13
16class ProfilerModel : public QAbstractItemModel { 14class ProfilerModel : public QAbstractItemModel {
17 Q_OBJECT 15 Q_OBJECT
diff --git a/src/citra_qt/debugger/registers.cpp b/src/citra_qt/debugger/registers.cpp
index 87c8c3418..13842dac3 100644
--- a/src/citra_qt/debugger/registers.cpp
+++ b/src/citra_qt/debugger/registers.cpp
@@ -2,11 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <QTreeWidgetItem>
6
7#include "citra_qt/debugger/registers.h" 5#include "citra_qt/debugger/registers.h"
6#include <QTreeWidgetItem>
8#include "citra_qt/util/util.h" 7#include "citra_qt/util/util.h"
9
10#include "core/arm/arm_interface.h" 8#include "core/arm/arm_interface.h"
11#include "core/core.h" 9#include "core/core.h"
12 10
diff --git a/src/citra_qt/debugger/registers.h b/src/citra_qt/debugger/registers.h
index cba601731..54c9a8155 100644
--- a/src/citra_qt/debugger/registers.h
+++ b/src/citra_qt/debugger/registers.h
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "ui_registers.h"
6
7#include <QDockWidget> 5#include <QDockWidget>
6#include "ui_registers.h"
8 7
9class QTreeWidget; 8class QTreeWidget;
10class QTreeWidgetItem; 9class QTreeWidgetItem;
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp
index 9f9c22a44..16d31be77 100644
--- a/src/citra_qt/game_list.cpp
+++ b/src/citra_qt/game_list.cpp
@@ -2,19 +2,16 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "game_list.h"
5#include <QHeaderView> 6#include <QHeaderView>
6#include <QThreadPool> 7#include <QThreadPool>
7#include <QVBoxLayout> 8#include <QVBoxLayout>
8
9#include "game_list.h"
10#include "game_list_p.h"
11#include "ui_settings.h"
12
13#include "core/loader/loader.h"
14
15#include "common/common_paths.h" 9#include "common/common_paths.h"
16#include "common/logging/log.h" 10#include "common/logging/log.h"
17#include "common/string_util.h" 11#include "common/string_util.h"
12#include "core/loader/loader.h"
13#include "game_list_p.h"
14#include "ui_settings.h"
18 15
19GameList::GameList(QWidget* parent) { 16GameList::GameList(QWidget* parent) {
20 QVBoxLayout* layout = new QVBoxLayout; 17 QVBoxLayout* layout = new QVBoxLayout;
diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h
index c8a9ee5db..60ab4cf02 100644
--- a/src/citra_qt/game_list_p.h
+++ b/src/citra_qt/game_list_p.h
@@ -5,18 +5,14 @@
5#pragma once 5#pragma once
6 6
7#include <atomic> 7#include <atomic>
8
9#include <QImage> 8#include <QImage>
10#include <QRunnable> 9#include <QRunnable>
11#include <QStandardItem> 10#include <QStandardItem>
12#include <QString> 11#include <QString>
13
14#include "citra_qt/util/util.h" 12#include "citra_qt/util/util.h"
15#include "common/color.h" 13#include "common/color.h"
16#include "common/string_util.h" 14#include "common/string_util.h"
17
18#include "core/loader/smdh.h" 15#include "core/loader/smdh.h"
19
20#include "video_core/utils.h" 16#include "video_core/utils.h"
21 17
22/** 18/**
diff --git a/src/citra_qt/hotkeys.cpp b/src/citra_qt/hotkeys.cpp
index 3e38223ee..9037f20f2 100644
--- a/src/citra_qt/hotkeys.cpp
+++ b/src/citra_qt/hotkeys.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/hotkeys.h"
5#include <map> 6#include <map>
6
7#include <QKeySequence> 7#include <QKeySequence>
8#include <QShortcut> 8#include <QShortcut>
9#include <QtGlobal> 9#include <QtGlobal>
10
11#include "citra_qt/hotkeys.h"
12#include "citra_qt/ui_settings.h" 10#include "citra_qt/ui_settings.h"
13 11
14struct Hotkey { 12struct Hotkey {
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index e10314856..82667446b 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -5,25 +5,15 @@
5#include <clocale> 5#include <clocale>
6#include <memory> 6#include <memory>
7#include <thread> 7#include <thread>
8
9#include <glad/glad.h> 8#include <glad/glad.h>
10
11#define QT_NO_OPENGL 9#define QT_NO_OPENGL
12#include <QDesktopWidget> 10#include <QDesktopWidget>
13#include <QFileDialog> 11#include <QFileDialog>
14#include <QMessageBox> 12#include <QMessageBox>
15#include <QtGui> 13#include <QtGui>
16#include "qhexedit.h"
17
18#include "citra_qt/bootmanager.h" 14#include "citra_qt/bootmanager.h"
19#include "citra_qt/config.h" 15#include "citra_qt/config.h"
20#include "citra_qt/configure_dialog.h" 16#include "citra_qt/configure_dialog.h"
21#include "citra_qt/game_list.h"
22#include "citra_qt/hotkeys.h"
23#include "citra_qt/main.h"
24#include "citra_qt/ui_settings.h"
25
26// Debugger
27#include "citra_qt/debugger/callstack.h" 17#include "citra_qt/debugger/callstack.h"
28#include "citra_qt/debugger/disassembler.h" 18#include "citra_qt/debugger/disassembler.h"
29#include "citra_qt/debugger/graphics.h" 19#include "citra_qt/debugger/graphics.h"
@@ -35,7 +25,10 @@
35#include "citra_qt/debugger/profiler.h" 25#include "citra_qt/debugger/profiler.h"
36#include "citra_qt/debugger/ramview.h" 26#include "citra_qt/debugger/ramview.h"
37#include "citra_qt/debugger/registers.h" 27#include "citra_qt/debugger/registers.h"
38 28#include "citra_qt/game_list.h"
29#include "citra_qt/hotkeys.h"
30#include "citra_qt/main.h"
31#include "citra_qt/ui_settings.h"
39#include "common/logging/backend.h" 32#include "common/logging/backend.h"
40#include "common/logging/filter.h" 33#include "common/logging/filter.h"
41#include "common/logging/log.h" 34#include "common/logging/log.h"
@@ -45,14 +38,13 @@
45#include "common/scm_rev.h" 38#include "common/scm_rev.h"
46#include "common/scope_exit.h" 39#include "common/scope_exit.h"
47#include "common/string_util.h" 40#include "common/string_util.h"
48
49#include "core/arm/disassembler/load_symbol_map.h" 41#include "core/arm/disassembler/load_symbol_map.h"
50#include "core/core.h" 42#include "core/core.h"
51#include "core/gdbstub/gdbstub.h" 43#include "core/gdbstub/gdbstub.h"
52#include "core/loader/loader.h" 44#include "core/loader/loader.h"
53#include "core/settings.h" 45#include "core/settings.h"
54#include "core/system.h" 46#include "core/system.h"
55 47#include "qhexedit.h"
56#include "video_core/video_core.h" 48#include "video_core/video_core.h"
57 49
58GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) { 50GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr) {
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h
index 10157310e..c4349513f 100644
--- a/src/citra_qt/main.h
+++ b/src/citra_qt/main.h
@@ -5,9 +5,8 @@
5#ifndef _CITRA_QT_MAIN_HXX_ 5#ifndef _CITRA_QT_MAIN_HXX_
6#define _CITRA_QT_MAIN_HXX_ 6#define _CITRA_QT_MAIN_HXX_
7 7
8#include <QMainWindow>
9#include <memory> 8#include <memory>
10 9#include <QMainWindow>
11#include "ui_main.h" 10#include "ui_main.h"
12 11
13class Config; 12class Config;
diff --git a/src/citra_qt/ui_settings.h b/src/citra_qt/ui_settings.h
index 30f031831..ed7fdff7e 100644
--- a/src/citra_qt/ui_settings.h
+++ b/src/citra_qt/ui_settings.h
@@ -4,12 +4,11 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <vector>
7#include <QByteArray> 8#include <QByteArray>
8#include <QString> 9#include <QString>
9#include <QStringList> 10#include <QStringList>
10 11
11#include <vector>
12
13namespace UISettings { 12namespace UISettings {
14 13
15using ContextualShortcut = std::pair<QString, int>; 14using ContextualShortcut = std::pair<QString, int>;
diff --git a/src/citra_qt/util/spinbox.cpp b/src/citra_qt/util/spinbox.cpp
index 5868f3b91..0bda21502 100644
--- a/src/citra_qt/util/spinbox.cpp
+++ b/src/citra_qt/util/spinbox.cpp
@@ -28,11 +28,10 @@
28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 30
31#include "citra_qt/util/spinbox.h"
32#include <cstdlib>
31#include <QLineEdit> 33#include <QLineEdit>
32#include <QRegExpValidator> 34#include <QRegExpValidator>
33#include <cstdlib>
34
35#include "citra_qt/util/spinbox.h"
36#include "common/assert.h" 35#include "common/assert.h"
37 36
38CSpinBox::CSpinBox(QWidget* parent) 37CSpinBox::CSpinBox(QWidget* parent)
diff --git a/src/citra_qt/util/util.cpp b/src/citra_qt/util/util.cpp
index bf44d78ff..e77d3796c 100644
--- a/src/citra_qt/util/util.cpp
+++ b/src/citra_qt/util/util.cpp
@@ -2,11 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "citra_qt/util/util.h"
5#include <array> 6#include <array>
6#include <cmath> 7#include <cmath>
7 8
8#include "citra_qt/util/util.h"
9
10QFont GetMonospaceFont() { 9QFont GetMonospaceFont() {
11 QFont font("monospace"); 10 QFont font("monospace");
12 // Automatic fallback to a monospace font on on platforms without a font called "monospace" 11 // 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.h
index 70214efae..04e80c87a 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <cstdlib> 7#include <cstdlib>
8
9#include "common/common_funcs.h" 8#include "common/common_funcs.h"
10#include "common/logging/log.h" 9#include "common/logging/log.h"
11 10
@@ -54,4 +53,4 @@ __declspec(noinline, noreturn)
54#endif 53#endif
55 54
56#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!") 55#define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")
57#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) \ No newline at end of file 56#define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__)
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 8d45743e2..030f7caeb 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -33,7 +33,6 @@
33#include <cstddef> 33#include <cstddef>
34#include <limits> 34#include <limits>
35#include <type_traits> 35#include <type_traits>
36
37#include "common/common_funcs.h" 36#include "common/common_funcs.h"
38 37
39/* 38/*
diff --git a/src/common/break_points.cpp b/src/common/break_points.cpp
index 3218db314..4b64a6c7b 100644
--- a/src/common/break_points.cpp
+++ b/src/common/break_points.cpp
@@ -3,10 +3,9 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/break_points.h" 5#include "common/break_points.h"
6#include "common/logging/log.h"
7
8#include <algorithm> 6#include <algorithm>
9#include <sstream> 7#include <sstream>
8#include "common/logging/log.h"
10 9
11bool BreakPoints::IsAddressBreakPoint(u32 iAddress) const { 10bool BreakPoints::IsAddressBreakPoint(u32 iAddress) const {
12 auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress; }; 11 auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress; };
diff --git a/src/common/break_points.h b/src/common/break_points.h
index 1a5b7d296..e15b9f842 100644
--- a/src/common/break_points.h
+++ b/src/common/break_points.h
@@ -6,7 +6,6 @@
6 6
7#include <string> 7#include <string>
8#include <vector> 8#include <vector>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12class DebugInterface; 11class DebugInterface;
diff --git a/src/common/chunk_file.h b/src/common/chunk_file.h
index 2bf3c774b..5145a3657 100644
--- a/src/common/chunk_file.h
+++ b/src/common/chunk_file.h
@@ -35,7 +35,6 @@
35#include <type_traits> 35#include <type_traits>
36#include <utility> 36#include <utility>
37#include <vector> 37#include <vector>
38
39#include "common/assert.h" 38#include "common/assert.h"
40#include "common/common_types.h" 39#include "common/common_types.h"
41#include "common/logging/log.h" 40#include "common/logging/log.h"
diff --git a/src/common/code_block.h b/src/common/code_block.h
index 099088925..6a55a8e30 100644
--- a/src/common/code_block.h
+++ b/src/common/code_block.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <cstddef> 7#include <cstddef>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10#include "common/memory_util.h" 9#include "common/memory_util.h"
11 10
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 7032c2117..b141e79ed 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -7,7 +7,6 @@
7#if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM) 7#if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM)
8#include <cstdlib> // for exit 8#include <cstdlib> // for exit
9#endif 9#endif
10
11#include "common_types.h" 10#include "common_types.h"
12 11
13#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) 12#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
diff --git a/src/common/emu_window.cpp b/src/common/emu_window.cpp
index c86f663a8..6fd6f1987 100644
--- a/src/common/emu_window.cpp
+++ b/src/common/emu_window.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "emu_window.h"
5#include <algorithm> 6#include <algorithm>
6#include <cmath> 7#include <cmath>
7
8#include "common/assert.h" 8#include "common/assert.h"
9#include "common/key_map.h" 9#include "common/key_map.h"
10
11#include "emu_window.h"
12#include "video_core/video_core.h" 10#include "video_core/video_core.h"
13 11
14void EmuWindow::ButtonPressed(Service::HID::PadState pad) { 12void EmuWindow::ButtonPressed(Service::HID::PadState pad) {
diff --git a/src/common/emu_window.h b/src/common/emu_window.h
index 20131300d..67df63e06 100644
--- a/src/common/emu_window.h
+++ b/src/common/emu_window.h
@@ -6,10 +6,8 @@
6 6
7#include <tuple> 7#include <tuple>
8#include <utility> 8#include <utility>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11#include "common/math_util.h" 10#include "common/math_util.h"
12
13#include "core/hle/service/hid/hid.h" 11#include "core/hle/service/hid/hid.h"
14 12
15/** 13/**
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 96afe2ca0..a0cae11e3 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -16,7 +16,6 @@
16#include <shellapi.h> 16#include <shellapi.h>
17#include <shlobj.h> // for SHGetFolderPath 17#include <shlobj.h> // for SHGetFolderPath
18#include <tchar.h> 18#include <tchar.h>
19
20#include "common/string_util.h" 19#include "common/string_util.h"
21 20
22// 64 bit offsets for windows 21// 64 bit offsets for windows
diff --git a/src/common/file_util.h b/src/common/file_util.h
index b15021a63..204b06f14 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -11,9 +11,7 @@
11#include <string> 11#include <string>
12#include <type_traits> 12#include <type_traits>
13#include <vector> 13#include <vector>
14
15#include "common/common_types.h" 14#include "common/common_types.h"
16
17#ifdef _MSC_VER 15#ifdef _MSC_VER
18#include "common/string_util.h" 16#include "common/string_util.h"
19#endif 17#endif
diff --git a/src/common/hash.cpp b/src/common/hash.cpp
index a46c92553..5aa5118eb 100644
--- a/src/common/hash.cpp
+++ b/src/common/hash.cpp
@@ -5,7 +5,6 @@
5#if defined(_MSC_VER) 5#if defined(_MSC_VER)
6#include <stdlib.h> 6#include <stdlib.h>
7#endif 7#endif
8
9#include "common_funcs.h" 8#include "common_funcs.h"
10#include "common_types.h" 9#include "common_types.h"
11#include "hash.h" 10#include "hash.h"
diff --git a/src/common/key_map.cpp b/src/common/key_map.cpp
index e882f5f52..8380ce489 100644
--- a/src/common/key_map.cpp
+++ b/src/common/key_map.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/key_map.h"
5#include <map> 6#include <map>
6
7#include "common/emu_window.h" 7#include "common/emu_window.h"
8#include "common/key_map.h"
9 8
10namespace KeyMap { 9namespace KeyMap {
11 10
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index b3d6598e4..b4a312948 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -2,13 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/logging/backend.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7#include <cstdio> 8#include <cstdio>
8
9#include "common/assert.h" 9#include "common/assert.h"
10#include "common/common_funcs.h" // snprintf compatibility define 10#include "common/common_funcs.h" // snprintf compatibility define
11#include "common/logging/backend.h"
12#include "common/logging/filter.h" 11#include "common/logging/filter.h"
13#include "common/logging/log.h" 12#include "common/logging/log.h"
14#include "common/logging/text_formatter.h" 13#include "common/logging/text_formatter.h"
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index 3fe88e4f6..c4fe2acbf 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -8,7 +8,6 @@
8#include <cstdarg> 8#include <cstdarg>
9#include <string> 9#include <string>
10#include <utility> 10#include <utility>
11
12#include "common/logging/log.h" 11#include "common/logging/log.h"
13 12
14namespace Log { 13namespace Log {
diff --git a/src/common/logging/filter.cpp b/src/common/logging/filter.cpp
index 186e0b621..9aa72cecc 100644
--- a/src/common/logging/filter.cpp
+++ b/src/common/logging/filter.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/logging/filter.h"
5#include <algorithm> 6#include <algorithm>
6
7#include "common/logging/backend.h" 7#include "common/logging/backend.h"
8#include "common/logging/filter.h"
9#include "common/string_util.h" 8#include "common/string_util.h"
10 9
11namespace Log { 10namespace Log {
diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h
index db526fead..b51df61de 100644
--- a/src/common/logging/filter.h
+++ b/src/common/logging/filter.h
@@ -7,7 +7,6 @@
7#include <array> 7#include <array>
8#include <cstddef> 8#include <cstddef>
9#include <string> 9#include <string>
10
11#include "common/logging/log.h" 10#include "common/logging/log.h"
12 11
13namespace Log { 12namespace Log {
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp
index 955358553..d61c1696b 100644
--- a/src/common/logging/text_formatter.cpp
+++ b/src/common/logging/text_formatter.cpp
@@ -10,12 +10,11 @@
10#include <Windows.h> 10#include <Windows.h>
11#endif 11#endif
12 12
13#include "common/assert.h"
14#include "common/common_funcs.h"
13#include "common/logging/backend.h" 15#include "common/logging/backend.h"
14#include "common/logging/log.h" 16#include "common/logging/log.h"
15#include "common/logging/text_formatter.h" 17#include "common/logging/text_formatter.h"
16
17#include "common/assert.h"
18#include "common/common_funcs.h"
19#include "common/string_util.h" 18#include "common/string_util.h"
20 19
21namespace Log { 20namespace Log {
diff --git a/src/common/misc.cpp b/src/common/misc.cpp
index 5938e6289..7be2235b0 100644
--- a/src/common/misc.cpp
+++ b/src/common/misc.cpp
@@ -3,7 +3,6 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <cstddef> 5#include <cstddef>
6
7#ifdef _WIN32 6#ifdef _WIN32
8#include <windows.h> 7#include <windows.h>
9#else 8#else
diff --git a/src/common/profiler.cpp b/src/common/profiler.cpp
index 231a0afc1..b40e7205d 100644
--- a/src/common/profiler.cpp
+++ b/src/common/profiler.cpp
@@ -5,7 +5,6 @@
5#include <algorithm> 5#include <algorithm>
6#include <cstddef> 6#include <cstddef>
7#include <vector> 7#include <vector>
8
9#include "common/assert.h" 8#include "common/assert.h"
10#include "common/profiler_reporting.h" 9#include "common/profiler_reporting.h"
11#include "common/synchronized_wrapper.h" 10#include "common/synchronized_wrapper.h"
diff --git a/src/common/profiler_reporting.h b/src/common/profiler_reporting.h
index fa1ac883f..e9ce6d41c 100644
--- a/src/common/profiler_reporting.h
+++ b/src/common/profiler_reporting.h
@@ -7,7 +7,6 @@
7#include <chrono> 7#include <chrono>
8#include <cstddef> 8#include <cstddef>
9#include <vector> 9#include <vector>
10
11#include "common/synchronized_wrapper.h" 10#include "common/synchronized_wrapper.h"
12 11
13namespace Common { 12namespace Common {
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 9ccd6f135..968854bae 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -2,17 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/string_util.h"
5#include <cctype> 6#include <cctype>
6#include <cerrno> 7#include <cerrno>
7#include <cstdio> 8#include <cstdio>
8#include <cstdlib> 9#include <cstdlib>
9#include <cstring> 10#include <cstring>
10#include <boost/range/algorithm/transform.hpp> 11#include <boost/range/algorithm/transform.hpp>
11
12#include "common/common_paths.h" 12#include "common/common_paths.h"
13#include "common/logging/log.h" 13#include "common/logging/log.h"
14#include "common/string_util.h"
15
16#ifdef _MSC_VER 14#ifdef _MSC_VER
17#include <Windows.h> 15#include <Windows.h>
18#include <codecvt> 16#include <codecvt>
diff --git a/src/common/string_util.h b/src/common/string_util.h
index 6ffd735f4..075bf4ecb 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -10,7 +10,6 @@
10#include <sstream> 10#include <sstream>
11#include <string> 11#include <string>
12#include <vector> 12#include <vector>
13
14#include "common/common_types.h" 13#include "common/common_types.h"
15 14
16namespace Common { 15namespace Common {
diff --git a/src/common/swap.h b/src/common/swap.h
index 72c50d789..e241c9f73 100644
--- a/src/common/swap.h
+++ b/src/common/swap.h
@@ -24,9 +24,7 @@
24#elif defined(__FreeBSD__) 24#elif defined(__FreeBSD__)
25#include <sys/endian.h> 25#include <sys/endian.h>
26#endif 26#endif
27
28#include <cstring> 27#include <cstring>
29
30#include "common/common_types.h" 28#include "common/common_types.h"
31 29
32// GCC 4.6+ 30// GCC 4.6+
diff --git a/src/common/symbols.h b/src/common/symbols.h
index 6044c9db6..f5a48e05a 100644
--- a/src/common/symbols.h
+++ b/src/common/symbols.h
@@ -7,7 +7,6 @@
7#include <map> 7#include <map>
8#include <string> 8#include <string>
9#include <utility> 9#include <utility>
10
11#include "common/common_types.h" 10#include "common/common_types.h"
12 11
13struct TSymbol { 12struct TSymbol {
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index bee607ce9..6e7b39b9a 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -3,7 +3,6 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/thread.h" 5#include "common/thread.h"
6
7#ifdef __APPLE__ 6#ifdef __APPLE__
8#include <mach/mach.h> 7#include <mach/mach.h>
9#elif defined(_WIN32) 8#elif defined(_WIN32)
@@ -16,7 +15,6 @@
16#endif 15#endif
17#include <sched.h> 16#include <sched.h>
18#endif 17#endif
19
20#ifndef _WIN32 18#ifndef _WIN32
21#include <unistd.h> 19#include <unistd.h>
22#endif 20#endif
diff --git a/src/common/thread.h b/src/common/thread.h
index 499c151c2..9c08be7e3 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -8,7 +8,6 @@
8#include <cstddef> 8#include <cstddef>
9#include <mutex> 9#include <mutex>
10#include <thread> 10#include <thread>
11
12#include "common/common_types.h" 11#include "common/common_types.h"
13 12
14// Support for C++11's thread_local keyword was surprisingly spotty in compilers until very 13// Support for C++11's thread_local keyword was surprisingly spotty in compilers until very
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h
index 0dcf785b6..edd0e4a3f 100644
--- a/src/common/thread_queue_list.h
+++ b/src/common/thread_queue_list.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <deque> 8#include <deque>
9
10#include <boost/range/algorithm_ext/erase.hpp> 9#include <boost/range/algorithm_ext/erase.hpp>
11 10
12namespace Common { 11namespace Common {
diff --git a/src/common/timer.cpp b/src/common/timer.cpp
index 27560eb0b..e843cbd9c 100644
--- a/src/common/timer.cpp
+++ b/src/common/timer.cpp
@@ -3,7 +3,6 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <time.h> 5#include <time.h>
6
7#ifdef _WIN32 6#ifdef _WIN32
8#include <Windows.h> 7#include <Windows.h>
9#include <mmsystem.h> 8#include <mmsystem.h>
@@ -11,7 +10,6 @@
11#else 10#else
12#include <sys/time.h> 11#include <sys/time.h>
13#endif 12#endif
14
15#include "common/common_types.h" 13#include "common/common_types.h"
16#include "common/string_util.h" 14#include "common/string_util.h"
17#include "common/timer.h" 15#include "common/timer.h"
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp
index 19f1a4030..ac37c42bc 100644
--- a/src/common/x64/cpu_detect.cpp
+++ b/src/common/x64/cpu_detect.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "cpu_detect.h"
5#include <cstring> 6#include <cstring>
6#include <string> 7#include <string>
7#include <thread> 8#include <thread>
8
9#include "common/common_types.h" 9#include "common/common_types.h"
10 10
11#include "cpu_detect.h"
12
13namespace Common { 11namespace Common {
14 12
15#ifndef _MSC_VER 13#ifndef _MSC_VER
diff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cpp
index 7cf350b4a..b69e4bd5e 100644
--- a/src/common/x64/emitter.cpp
+++ b/src/common/x64/emitter.cpp
@@ -15,16 +15,14 @@
15// Official SVN repository and contact information can be found at 15// Official SVN repository and contact information can be found at
16// http://code.google.com/p/dolphin-emu/ 16// http://code.google.com/p/dolphin-emu/
17 17
18#include "emitter.h"
18#include <cinttypes> 19#include <cinttypes>
19#include <cstring> 20#include <cstring>
20 21#include "abi.h"
21#include "common/assert.h" 22#include "common/assert.h"
22#include "common/logging/log.h" 23#include "common/logging/log.h"
23#include "common/memory_util.h" 24#include "common/memory_util.h"
24
25#include "abi.h"
26#include "cpu_detect.h" 25#include "cpu_detect.h"
27#include "emitter.h"
28 26
29namespace Gen { 27namespace Gen {
30 28
@@ -222,7 +220,7 @@ void OpArg::WriteVex(XEmitter* emit, X64Reg regOp1, X64Reg regOp2, int L, int pp
222void OpArg::WriteRest(XEmitter* emit, int extraBytes, X64Reg _operandReg, 220void OpArg::WriteRest(XEmitter* emit, int extraBytes, X64Reg _operandReg,
223 bool warn_64bit_offset) const { 221 bool warn_64bit_offset) const {
224 if (_operandReg == INVALID_REG) 222 if (_operandReg == INVALID_REG)
225 _operandReg = (X64Reg)this->operandReg; 223 _operandReg = (X64Reg) this->operandReg;
226 int mod = 0; 224 int mod = 0;
227 int ireg = indexReg; 225 int ireg = indexReg;
228 bool SIB = false; 226 bool SIB = false;
diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.h
index 6c9dc3d6b..7d7cdde16 100644
--- a/src/common/x64/emitter.h
+++ b/src/common/x64/emitter.h
@@ -18,7 +18,6 @@
18#pragma once 18#pragma once
19 19
20#include <cstddef> 20#include <cstddef>
21
22#include "common/assert.h" 21#include "common/assert.h"
23#include "common/bit_set.h" 22#include "common/bit_set.h"
24#include "common/code_block.h" 23#include "common/code_block.h"
diff --git a/src/core/arm/disassembler/arm_disasm.cpp b/src/core/arm/disassembler/arm_disasm.cpp
index b3b9971e8..068f395ac 100644
--- a/src/core/arm/disassembler/arm_disasm.cpp
+++ b/src/core/arm/disassembler/arm_disasm.cpp
@@ -1,12 +1,10 @@
1// Copyright 2006 The Android Open Source Project 1// Copyright 2006 The Android Open Source Project
2 2
3#include "core/arm/disassembler/arm_disasm.h"
3#include <string> 4#include <string>
4#include <unordered_set> 5#include <unordered_set>
5
6#include "common/common_types.h" 6#include "common/common_types.h"
7#include "common/string_util.h" 7#include "common/string_util.h"
8
9#include "core/arm/disassembler/arm_disasm.h"
10#include "core/arm/skyeye_common/armsupp.h" 8#include "core/arm/skyeye_common/armsupp.h"
11 9
12static const char* cond_names[] = {"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc", 10static 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.h
index 031f973d6..300e228ed 100644
--- a/src/core/arm/disassembler/arm_disasm.h
+++ b/src/core/arm/disassembler/arm_disasm.h
@@ -3,7 +3,6 @@
3#pragma once 3#pragma once
4 4
5#include <string> 5#include <string>
6
7#include "common/common_types.h" 6#include "common/common_types.h"
8 7
9// Note: this list of opcodes must match the list used to initialize 8// Note: this list of opcodes must match the list used to initialize
diff --git a/src/core/arm/disassembler/load_symbol_map.cpp b/src/core/arm/disassembler/load_symbol_map.cpp
index 58e8e6fa1..e602d4511 100644
--- a/src/core/arm/disassembler/load_symbol_map.cpp
+++ b/src/core/arm/disassembler/load_symbol_map.cpp
@@ -2,15 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/arm/disassembler/load_symbol_map.h"
5#include <sstream> 6#include <sstream>
6#include <string> 7#include <string>
7#include <vector> 8#include <vector>
8
9#include "common/file_util.h" 9#include "common/file_util.h"
10#include "common/symbols.h" 10#include "common/symbols.h"
11 11
12#include "core/arm/disassembler/load_symbol_map.h"
13
14/* 12/*
15 * Loads a symbol map file for use with the disassembler 13 * Loads a symbol map file for use with the disassembler
16 * @param filename String filename path of symbol map file 14 * @param filename String filename path of symbol map file
diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp
index a521aec7c..b57d9e65b 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic.cpp
@@ -2,12 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/arm/dynarmic/arm_dynarmic.h"
6#include <dynarmic/dynarmic.h>
5#include "common/assert.h" 7#include "common/assert.h"
6#include "common/microprofile.h" 8#include "common/microprofile.h"
7
8#include <dynarmic/dynarmic.h>
9
10#include "core/arm/dynarmic/arm_dynarmic.h"
11#include "core/arm/dyncom/arm_dyncom_interpreter.h" 9#include "core/arm/dyncom/arm_dyncom_interpreter.h"
12#include "core/core.h" 10#include "core/core.h"
13#include "core/core_timing.h" 11#include "core/core_timing.h"
diff --git a/src/core/arm/dynarmic/arm_dynarmic.h b/src/core/arm/dynarmic/arm_dynarmic.h
index d493cabd5..ced86d29b 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.h
+++ b/src/core/arm/dynarmic/arm_dynarmic.h
@@ -5,11 +5,8 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include <dynarmic/dynarmic.h> 8#include <dynarmic/dynarmic.h>
10
11#include "common/common_types.h" 9#include "common/common_types.h"
12
13#include "core/arm/arm_interface.h" 10#include "core/arm/arm_interface.h"
14#include "core/arm/skyeye_common/armstate.h" 11#include "core/arm/skyeye_common/armstate.h"
15 12
diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cpp
index 912560402..bc9ba2941 100644
--- a/src/core/arm/dyncom/arm_dyncom.cpp
+++ b/src/core/arm/dyncom/arm_dyncom.cpp
@@ -2,18 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/arm/dyncom/arm_dyncom.h"
5#include <cstring> 6#include <cstring>
6#include <memory> 7#include <memory>
7
8#include "core/arm/skyeye_common/armstate.h"
9#include "core/arm/skyeye_common/armsupp.h"
10#include "core/arm/skyeye_common/vfp/vfp.h"
11
12#include "core/arm/dyncom/arm_dyncom.h"
13#include "core/arm/dyncom/arm_dyncom_interpreter.h" 8#include "core/arm/dyncom/arm_dyncom_interpreter.h"
14#include "core/arm/dyncom/arm_dyncom_run.h" 9#include "core/arm/dyncom/arm_dyncom_run.h"
15#include "core/arm/dyncom/arm_dyncom_trans.h" 10#include "core/arm/dyncom/arm_dyncom_trans.h"
16 11#include "core/arm/skyeye_common/armstate.h"
12#include "core/arm/skyeye_common/armsupp.h"
13#include "core/arm/skyeye_common/vfp/vfp.h"
17#include "core/core.h" 14#include "core/core.h"
18#include "core/core_timing.h" 15#include "core/core_timing.h"
19 16
diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.h
index 70f71a828..65db1f0f9 100644
--- a/src/core/arm/dyncom/arm_dyncom.h
+++ b/src/core/arm/dyncom/arm_dyncom.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10
11#include "core/arm/arm_interface.h" 9#include "core/arm/arm_interface.h"
12#include "core/arm/skyeye_common/arm_regformat.h" 10#include "core/arm/skyeye_common/arm_regformat.h"
13#include "core/arm/skyeye_common/armstate.h" 11#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.cpp
index 211d49edb..4f83d8332 100644
--- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp
@@ -4,27 +4,24 @@
4 4
5#define CITRA_IGNORE_EXIT(x) 5#define CITRA_IGNORE_EXIT(x)
6 6
7#include "core/arm/dyncom/arm_dyncom_interpreter.h"
7#include <algorithm> 8#include <algorithm>
8#include <cstdio> 9#include <cstdio>
9
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/microprofile.h" 12#include "common/microprofile.h"
13
14#include "core/arm/disassembler/arm_disasm.h" 13#include "core/arm/disassembler/arm_disasm.h"
15#include "core/arm/dyncom/arm_dyncom_dec.h" 14#include "core/arm/dyncom/arm_dyncom_dec.h"
16#include "core/arm/dyncom/arm_dyncom_interpreter.h"
17#include "core/arm/dyncom/arm_dyncom_run.h" 15#include "core/arm/dyncom/arm_dyncom_run.h"
18#include "core/arm/dyncom/arm_dyncom_thumb.h" 16#include "core/arm/dyncom/arm_dyncom_thumb.h"
19#include "core/arm/dyncom/arm_dyncom_trans.h" 17#include "core/arm/dyncom/arm_dyncom_trans.h"
20#include "core/arm/skyeye_common/armstate.h" 18#include "core/arm/skyeye_common/armstate.h"
21#include "core/arm/skyeye_common/armsupp.h" 19#include "core/arm/skyeye_common/armsupp.h"
22#include "core/arm/skyeye_common/vfp/vfp.h" 20#include "core/arm/skyeye_common/vfp/vfp.h"
21#include "core/gdbstub/gdbstub.h"
23#include "core/hle/svc.h" 22#include "core/hle/svc.h"
24#include "core/memory.h" 23#include "core/memory.h"
25 24
26#include "core/gdbstub/gdbstub.h"
27
28#define RM BITS(sht_oper, 0, 3) 25#define RM BITS(sht_oper, 0, 3)
29#define RS BITS(sht_oper, 8, 11) 26#define RS BITS(sht_oper, 8, 11)
30 27
diff --git a/src/core/arm/dyncom/arm_dyncom_trans.cpp b/src/core/arm/dyncom/arm_dyncom_trans.cpp
index 526cf28f3..5f3644c28 100644
--- a/src/core/arm/dyncom/arm_dyncom_trans.cpp
+++ b/src/core/arm/dyncom/arm_dyncom_trans.cpp
@@ -1,10 +1,8 @@
1#include "core/arm/dyncom/arm_dyncom_trans.h"
1#include <cstdlib> 2#include <cstdlib>
2
3#include "common/assert.h" 3#include "common/assert.h"
4#include "common/common_types.h" 4#include "common/common_types.h"
5
6#include "core/arm/dyncom/arm_dyncom_interpreter.h" 5#include "core/arm/dyncom/arm_dyncom_interpreter.h"
7#include "core/arm/dyncom/arm_dyncom_trans.h"
8#include "core/arm/skyeye_common/armstate.h" 6#include "core/arm/skyeye_common/armstate.h"
9#include "core/arm/skyeye_common/armsupp.h" 7#include "core/arm/skyeye_common/armsupp.h"
10#include "core/arm/skyeye_common/vfp/vfp.h" 8#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.h
index 6fdb3d248..b1ec90662 100644
--- a/src/core/arm/dyncom/arm_dyncom_trans.h
+++ b/src/core/arm/dyncom/arm_dyncom_trans.h
@@ -1,3 +1,6 @@
1#include <cstddef>
2#include "common/common_types.h"
3
1struct ARMul_State; 4struct ARMul_State;
2typedef unsigned int (*shtop_fp_t)(ARMul_State* cpu, unsigned int sht_oper); 5typedef unsigned int (*shtop_fp_t)(ARMul_State* cpu, unsigned int sht_oper);
3 6
diff --git a/src/core/arm/skyeye_common/armstate.h b/src/core/arm/skyeye_common/armstate.h
index f31fb207c..1a707ff7e 100644
--- a/src/core/arm/skyeye_common/armstate.h
+++ b/src/core/arm/skyeye_common/armstate.h
@@ -19,7 +19,6 @@
19 19
20#include <array> 20#include <array>
21#include <unordered_map> 21#include <unordered_map>
22
23#include "common/common_types.h" 22#include "common/common_types.h"
24#include "core/arm/skyeye_common/arm_regformat.h" 23#include "core/arm/skyeye_common/arm_regformat.h"
25 24
diff --git a/src/core/arm/skyeye_common/armsupp.cpp b/src/core/arm/skyeye_common/armsupp.cpp
index e70be29a7..b76942e47 100644
--- a/src/core/arm/skyeye_common/armsupp.cpp
+++ b/src/core/arm/skyeye_common/armsupp.cpp
@@ -15,11 +15,10 @@
15 along with this program; if not, write to the Free Software 15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 17
18#include "core/arm/skyeye_common/armsupp.h"
18#include "common/logging/log.h" 19#include "common/logging/log.h"
19
20#include "core/arm/skyeye_common/arm_regformat.h" 20#include "core/arm/skyeye_common/arm_regformat.h"
21#include "core/arm/skyeye_common/armstate.h" 21#include "core/arm/skyeye_common/armstate.h"
22#include "core/arm/skyeye_common/armsupp.h"
23 22
24// Unsigned sum of absolute difference 23// Unsigned sum of absolute difference
25u8 ARMul_UnsignedAbsoluteDifference(u8 left, u8 right) { 24u8 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.cpp
index 859937645..8ac1fb95e 100644
--- a/src/core/arm/skyeye_common/vfp/vfp.cpp
+++ b/src/core/arm/skyeye_common/vfp/vfp.cpp
@@ -20,13 +20,12 @@
20 20
21/* Note: this file handles interface with arm core and vfp registers */ 21/* Note: this file handles interface with arm core and vfp registers */
22 22
23#include "core/arm/skyeye_common/vfp/vfp.h"
23#include "common/common_funcs.h" 24#include "common/common_funcs.h"
24#include "common/common_types.h" 25#include "common/common_types.h"
25#include "common/logging/log.h" 26#include "common/logging/log.h"
26
27#include "core/arm/skyeye_common/armstate.h" 27#include "core/arm/skyeye_common/armstate.h"
28#include "core/arm/skyeye_common/vfp/asm_vfp.h" 28#include "core/arm/skyeye_common/vfp/asm_vfp.h"
29#include "core/arm/skyeye_common/vfp/vfp.h"
30 29
31void VFPInit(ARMul_State* state) { 30void VFPInit(ARMul_State* state) {
32 state->VFP[VFP_FPSID] = VFP_FPSID_IMPLMEN << 24 | VFP_FPSID_SW << 23 | VFP_FPSID_SUBARCH << 16 | 31 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.cpp
index 2886f351f..4d89743e7 100644
--- a/src/core/arm/skyeye_common/vfp/vfpdouble.cpp
+++ b/src/core/arm/skyeye_common/vfp/vfpdouble.cpp
@@ -51,10 +51,10 @@
51 * =========================================================================== 51 * ===========================================================================
52 */ 52 */
53 53
54#include "core/arm/skyeye_common/vfp/vfp.h"
54#include <algorithm> 55#include <algorithm>
55#include "common/logging/log.h" 56#include "common/logging/log.h"
56#include "core/arm/skyeye_common/vfp/asm_vfp.h" 57#include "core/arm/skyeye_common/vfp/asm_vfp.h"
57#include "core/arm/skyeye_common/vfp/vfp.h"
58#include "core/arm/skyeye_common/vfp/vfp_helper.h" 58#include "core/arm/skyeye_common/vfp/vfp_helper.h"
59 59
60static struct vfp_double vfp_double_default_qnan = { 60static 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.cpp
index bf157e2c3..35f9d84d5 100644
--- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp
+++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp
@@ -51,15 +51,13 @@
51 * =========================================================================== 51 * ===========================================================================
52 */ 52 */
53 53
54#include "core/arm/skyeye_common/vfp/vfp.h"
54#include <algorithm> 55#include <algorithm>
55#include <cinttypes> 56#include <cinttypes>
56
57#include "common/common_funcs.h" 57#include "common/common_funcs.h"
58#include "common/common_types.h" 58#include "common/common_types.h"
59#include "common/logging/log.h" 59#include "common/logging/log.h"
60
61#include "core/arm/skyeye_common/vfp/asm_vfp.h" 60#include "core/arm/skyeye_common/vfp/asm_vfp.h"
62#include "core/arm/skyeye_common/vfp/vfp.h"
63#include "core/arm/skyeye_common/vfp/vfp_helper.h" 61#include "core/arm/skyeye_common/vfp/vfp_helper.h"
64 62
65static struct vfp_single vfp_single_default_qnan = { 63static struct vfp_single vfp_single_default_qnan = {
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 71a13dd33..346b6a0ae 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/core.h"
5#include <memory> 6#include <memory>
6
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8
9#include "core/arm/arm_interface.h" 8#include "core/arm/arm_interface.h"
10#include "core/arm/dynarmic/arm_dynarmic.h" 9#include "core/arm/dynarmic/arm_dynarmic.h"
11#include "core/arm/dyncom/arm_dyncom.h" 10#include "core/arm/dyncom/arm_dyncom.h"
12#include "core/core.h"
13#include "core/core_timing.h" 11#include "core/core_timing.h"
14#include "core/gdbstub/gdbstub.h" 12#include "core/gdbstub/gdbstub.h"
15#include "core/hle/hle.h" 13#include "core/hle/hle.h"
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index fb88ecaf2..4f38403e3 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -2,17 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/core.h"
5#include <atomic> 6#include <atomic>
6#include <cinttypes> 7#include <cinttypes>
7#include <mutex> 8#include <mutex>
8#include <vector> 9#include <vector>
9
10#include "common/chunk_file.h" 10#include "common/chunk_file.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/string_util.h" 12#include "common/string_util.h"
13
14#include "core/arm/arm_interface.h" 13#include "core/arm/arm_interface.h"
15#include "core/core.h"
16#include "core/core_timing.h" 14#include "core/core_timing.h"
17 15
18int g_clock_rate_arm11 = 268123480; 16int g_clock_rate_arm11 = 268123480;
diff --git a/src/core/core_timing.h b/src/core/core_timing.h
index 64fd8dcd0..b72a1b500 100644
--- a/src/core/core_timing.h
+++ b/src/core/core_timing.h
@@ -4,7 +4,9 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <functional>
7#include <string> 8#include <string>
9#include "common/common_types.h"
8 10
9// This is a system to schedule events into the emulated machine's future. Time is measured 11// This is a system to schedule events into the emulated machine's future. Time is measured
10// in main CPU clock cycles. 12// in main CPU clock cycles.
@@ -19,10 +21,6 @@
19// inside callback: 21// inside callback:
20// ScheduleEvent(periodInCycles - cycles_late, callback, "whatever") 22// ScheduleEvent(periodInCycles - cycles_late, callback, "whatever")
21 23
22#include <functional>
23
24#include "common/common_types.h"
25
26extern int g_clock_rate_arm11; 24extern int g_clock_rate_arm11;
27 25
28inline s64 msToCycles(int ms) { 26inline s64 msToCycles(int ms) {
diff --git a/src/core/file_sys/archive_backend.cpp b/src/core/file_sys/archive_backend.cpp
index 6ea920ec1..5c02fb748 100644
--- a/src/core/file_sys/archive_backend.cpp
+++ b/src/core/file_sys/archive_backend.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_backend.h"
5#include <cstddef> 6#include <cstddef>
6#include <iomanip> 7#include <iomanip>
7#include <sstream> 8#include <sstream>
8
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10#include "common/string_util.h" 10#include "common/string_util.h"
11
12#include "core/file_sys/archive_backend.h"
13#include "core/memory.h" 11#include "core/memory.h"
14 12
15namespace FileSys { 13namespace FileSys {
diff --git a/src/core/file_sys/archive_backend.h b/src/core/file_sys/archive_backend.h
index 7f64fe4e2..d69c3c785 100644
--- a/src/core/file_sys/archive_backend.h
+++ b/src/core/file_sys/archive_backend.h
@@ -8,11 +8,9 @@
8#include <string> 8#include <string>
9#include <utility> 9#include <utility>
10#include <vector> 10#include <vector>
11
12#include "common/bit_field.h" 11#include "common/bit_field.h"
13#include "common/common_types.h" 12#include "common/common_types.h"
14#include "common/swap.h" 13#include "common/swap.h"
15
16#include "core/hle/result.h" 14#include "core/hle/result.h"
17 15
18namespace FileSys { 16namespace FileSys {
diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cpp
index 6b4af28bf..ed9fecd64 100644
--- a/src/core/file_sys/archive_extsavedata.cpp
+++ b/src/core/file_sys/archive_extsavedata.cpp
@@ -2,16 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_extsavedata.h"
5#include <algorithm> 6#include <algorithm>
6#include <memory> 7#include <memory>
7#include <vector> 8#include <vector>
8
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/file_util.h" 10#include "common/file_util.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/string_util.h" 12#include "common/string_util.h"
13
14#include "core/file_sys/archive_extsavedata.h"
15#include "core/file_sys/disk_archive.h" 13#include "core/file_sys/disk_archive.h"
16#include "core/hle/service/fs/archive.h" 14#include "core/hle/service/fs/archive.h"
17 15
diff --git a/src/core/file_sys/archive_extsavedata.h b/src/core/file_sys/archive_extsavedata.h
index 2b942817e..6a3431e94 100644
--- a/src/core/file_sys/archive_extsavedata.h
+++ b/src/core/file_sys/archive_extsavedata.h
@@ -6,9 +6,7 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/file_sys/archive_backend.h" 10#include "core/file_sys/archive_backend.h"
13#include "core/hle/result.h" 11#include "core/hle/result.h"
14 12
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp
index 87455eb95..7c0e1da21 100644
--- a/src/core/file_sys/archive_romfs.cpp
+++ b/src/core/file_sys/archive_romfs.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_romfs.h"
5#include <algorithm> 6#include <algorithm>
6#include <memory> 7#include <memory>
7
8#include "common/common_types.h" 8#include "common/common_types.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10
11#include "core/file_sys/archive_romfs.h"
12#include "core/file_sys/ivfc_archive.h" 10#include "core/file_sys/ivfc_archive.h"
13 11
14//////////////////////////////////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h
index 3c68a6b1c..8a8082a05 100644
--- a/src/core/file_sys/archive_romfs.h
+++ b/src/core/file_sys/archive_romfs.h
@@ -7,9 +7,7 @@
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9#include <vector> 9#include <vector>
10
11#include "common/common_types.h" 10#include "common/common_types.h"
12
13#include "core/file_sys/archive_backend.h" 11#include "core/file_sys/archive_backend.h"
14#include "core/hle/result.h" 12#include "core/hle/result.h"
15#include "core/loader/loader.h" 13#include "core/loader/loader.h"
diff --git a/src/core/file_sys/archive_savedata.cpp b/src/core/file_sys/archive_savedata.cpp
index 860f2fca8..829f97743 100644
--- a/src/core/file_sys/archive_savedata.cpp
+++ b/src/core/file_sys/archive_savedata.cpp
@@ -2,15 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_savedata.h"
5#include <algorithm> 6#include <algorithm>
6#include <memory> 7#include <memory>
7
8#include "common/common_types.h" 8#include "common/common_types.h"
9#include "common/file_util.h" 9#include "common/file_util.h"
10#include "common/logging/log.h" 10#include "common/logging/log.h"
11#include "common/string_util.h" 11#include "common/string_util.h"
12
13#include "core/file_sys/archive_savedata.h"
14#include "core/file_sys/disk_archive.h" 12#include "core/file_sys/disk_archive.h"
15#include "core/hle/kernel/process.h" 13#include "core/hle/kernel/process.h"
16#include "core/hle/service/fs/archive.h" 14#include "core/hle/service/fs/archive.h"
diff --git a/src/core/file_sys/archive_savedata.h b/src/core/file_sys/archive_savedata.h
index 4ac324985..6a372865a 100644
--- a/src/core/file_sys/archive_savedata.h
+++ b/src/core/file_sys/archive_savedata.h
@@ -6,7 +6,6 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "core/file_sys/archive_backend.h" 9#include "core/file_sys/archive_backend.h"
11#include "core/hle/result.h" 10#include "core/hle/result.h"
12 11
diff --git a/src/core/file_sys/archive_savedatacheck.cpp b/src/core/file_sys/archive_savedatacheck.cpp
index 50fe004fe..8bdf24b1f 100644
--- a/src/core/file_sys/archive_savedatacheck.cpp
+++ b/src/core/file_sys/archive_savedatacheck.cpp
@@ -2,16 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_savedatacheck.h"
5#include <algorithm> 6#include <algorithm>
6#include <memory> 7#include <memory>
7#include <vector> 8#include <vector>
8
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/file_util.h" 10#include "common/file_util.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/string_util.h" 12#include "common/string_util.h"
13
14#include "core/file_sys/archive_savedatacheck.h"
15#include "core/file_sys/ivfc_archive.h" 13#include "core/file_sys/ivfc_archive.h"
16#include "core/hle/service/fs/archive.h" 14#include "core/hle/service/fs/archive.h"
17 15
diff --git a/src/core/file_sys/archive_savedatacheck.h b/src/core/file_sys/archive_savedatacheck.h
index 4a4259260..e9cafbed9 100644
--- a/src/core/file_sys/archive_savedatacheck.h
+++ b/src/core/file_sys/archive_savedatacheck.h
@@ -6,7 +6,6 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "core/file_sys/archive_backend.h" 9#include "core/file_sys/archive_backend.h"
11#include "core/hle/result.h" 10#include "core/hle/result.h"
12 11
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp
index c1a28df6c..887cfbb0f 100644
--- a/src/core/file_sys/archive_sdmc.cpp
+++ b/src/core/file_sys/archive_sdmc.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_sdmc.h"
5#include <algorithm> 6#include <algorithm>
6#include <memory> 7#include <memory>
7
8#include "common/file_util.h" 8#include "common/file_util.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10
11#include "core/file_sys/archive_sdmc.h"
12#include "core/file_sys/disk_archive.h" 10#include "core/file_sys/disk_archive.h"
13#include "core/settings.h" 11#include "core/settings.h"
14 12
diff --git a/src/core/file_sys/archive_sdmc.h b/src/core/file_sys/archive_sdmc.h
index 2523c3979..88e855351 100644
--- a/src/core/file_sys/archive_sdmc.h
+++ b/src/core/file_sys/archive_sdmc.h
@@ -6,7 +6,6 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "core/file_sys/archive_backend.h" 9#include "core/file_sys/archive_backend.h"
11#include "core/hle/result.h" 10#include "core/hle/result.h"
12 11
diff --git a/src/core/file_sys/archive_systemsavedata.cpp b/src/core/file_sys/archive_systemsavedata.cpp
index 0261ab547..b3dfcf897 100644
--- a/src/core/file_sys/archive_systemsavedata.cpp
+++ b/src/core/file_sys/archive_systemsavedata.cpp
@@ -2,15 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/archive_systemsavedata.h"
5#include <algorithm> 6#include <algorithm>
6#include <memory> 7#include <memory>
7#include <vector> 8#include <vector>
8
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/file_util.h" 10#include "common/file_util.h"
11#include "common/string_util.h" 11#include "common/string_util.h"
12
13#include "core/file_sys/archive_systemsavedata.h"
14#include "core/file_sys/disk_archive.h" 12#include "core/file_sys/disk_archive.h"
15#include "core/hle/service/fs/archive.h" 13#include "core/hle/service/fs/archive.h"
16 14
diff --git a/src/core/file_sys/archive_systemsavedata.h b/src/core/file_sys/archive_systemsavedata.h
index 61a002a7d..a24b89f2b 100644
--- a/src/core/file_sys/archive_systemsavedata.h
+++ b/src/core/file_sys/archive_systemsavedata.h
@@ -6,9 +6,7 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/file_sys/archive_backend.h" 10#include "core/file_sys/archive_backend.h"
13#include "core/hle/result.h" 11#include "core/hle/result.h"
14 12
diff --git a/src/core/file_sys/directory_backend.h b/src/core/file_sys/directory_backend.h
index 9706e909b..b55e382ef 100644
--- a/src/core/file_sys/directory_backend.h
+++ b/src/core/file_sys/directory_backend.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <cstddef> 8#include <cstddef>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12//////////////////////////////////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/file_sys/disk_archive.cpp b/src/core/file_sys/disk_archive.cpp
index c084303c1..7e88473bd 100644
--- a/src/core/file_sys/disk_archive.cpp
+++ b/src/core/file_sys/disk_archive.cpp
@@ -2,16 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/disk_archive.h"
5#include <algorithm> 6#include <algorithm>
6#include <cstdio> 7#include <cstdio>
7#include <memory> 8#include <memory>
8
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/file_util.h" 10#include "common/file_util.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12 12
13#include "core/file_sys/disk_archive.h"
14
15//////////////////////////////////////////////////////////////////////////////////////////////////// 13////////////////////////////////////////////////////////////////////////////////////////////////////
16// FileSys namespace 14// FileSys namespace
17 15
diff --git a/src/core/file_sys/disk_archive.h b/src/core/file_sys/disk_archive.h
index 64e36f5ea..2165f27f9 100644
--- a/src/core/file_sys/disk_archive.h
+++ b/src/core/file_sys/disk_archive.h
@@ -8,10 +8,8 @@
8#include <memory> 8#include <memory>
9#include <string> 9#include <string>
10#include <vector> 10#include <vector>
11
12#include "common/common_types.h" 11#include "common/common_types.h"
13#include "common/file_util.h" 12#include "common/file_util.h"
14
15#include "core/file_sys/archive_backend.h" 13#include "core/file_sys/archive_backend.h"
16#include "core/file_sys/directory_backend.h" 14#include "core/file_sys/directory_backend.h"
17#include "core/file_sys/file_backend.h" 15#include "core/file_sys/file_backend.h"
diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.h
index 3496facd4..ed997537f 100644
--- a/src/core/file_sys/file_backend.h
+++ b/src/core/file_sys/file_backend.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <cstddef> 7#include <cstddef>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10#include "core/hle/result.h" 9#include "core/hle/result.h"
11 10
diff --git a/src/core/file_sys/ivfc_archive.cpp b/src/core/file_sys/ivfc_archive.cpp
index 235a962e9..5add3254b 100644
--- a/src/core/file_sys/ivfc_archive.cpp
+++ b/src/core/file_sys/ivfc_archive.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/file_sys/ivfc_archive.h"
5#include <cstring> 6#include <cstring>
6#include <memory> 7#include <memory>
7
8#include "common/common_types.h" 8#include "common/common_types.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10 10
11#include "core/file_sys/ivfc_archive.h"
12
13//////////////////////////////////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////////////////////////////////
14// FileSys namespace 12// FileSys namespace
15 13
diff --git a/src/core/file_sys/ivfc_archive.h b/src/core/file_sys/ivfc_archive.h
index 0d15550da..0df6cf83a 100644
--- a/src/core/file_sys/ivfc_archive.h
+++ b/src/core/file_sys/ivfc_archive.h
@@ -8,10 +8,8 @@
8#include <memory> 8#include <memory>
9#include <string> 9#include <string>
10#include <vector> 10#include <vector>
11
12#include "common/common_types.h" 11#include "common/common_types.h"
13#include "common/file_util.h" 12#include "common/file_util.h"
14
15#include "core/file_sys/archive_backend.h" 13#include "core/file_sys/archive_backend.h"
16#include "core/file_sys/directory_backend.h" 14#include "core/file_sys/directory_backend.h"
17#include "core/file_sys/file_backend.h" 15#include "core/file_sys/file_backend.h"
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h
index fddc27a3e..a7483bb10 100644
--- a/src/core/gdbstub/gdbstub.h
+++ b/src/core/gdbstub/gdbstub.h
@@ -6,7 +6,6 @@
6 6
7#pragma once 7#pragma once
8#include <atomic> 8#include <atomic>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace GDBStub { 11namespace GDBStub {
diff --git a/src/core/hle/applets/applet.cpp b/src/core/hle/applets/applet.cpp
index 2b4bd939d..35e683cb3 100644
--- a/src/core/hle/applets/applet.cpp
+++ b/src/core/hle/applets/applet.cpp
@@ -2,16 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/applets/applet.h"
5#include <cstddef> 6#include <cstddef>
6#include <memory> 7#include <memory>
7#include <type_traits> 8#include <type_traits>
8#include <unordered_map> 9#include <unordered_map>
9
10#include "common/assert.h" 10#include "common/assert.h"
11#include "common/common_types.h" 11#include "common/common_types.h"
12
13#include "core/core_timing.h" 12#include "core/core_timing.h"
14#include "core/hle/applets/applet.h"
15#include "core/hle/applets/erreula.h" 13#include "core/hle/applets/erreula.h"
16#include "core/hle/applets/mii_selector.h" 14#include "core/hle/applets/mii_selector.h"
17#include "core/hle/applets/swkbd.h" 15#include "core/hle/applets/swkbd.h"
diff --git a/src/core/hle/applets/applet.h b/src/core/hle/applets/applet.h
index 1850ad261..bfdcad126 100644
--- a/src/core/hle/applets/applet.h
+++ b/src/core/hle/applets/applet.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include "core/hle/result.h" 8#include "core/hle/result.h"
10#include "core/hle/service/apt/apt.h" 9#include "core/hle/service/apt/apt.h"
11 10
diff --git a/src/core/hle/applets/erreula.cpp b/src/core/hle/applets/erreula.cpp
index 457cbb1bd..9ad77994c 100644
--- a/src/core/hle/applets/erreula.cpp
+++ b/src/core/hle/applets/erreula.cpp
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/string_util.h"
6
7#include "core/hle/applets/erreula.h" 5#include "core/hle/applets/erreula.h"
6#include "common/string_util.h"
8#include "core/hle/service/apt/apt.h" 7#include "core/hle/service/apt/apt.h"
9 8
10namespace HLE { 9namespace HLE {
diff --git a/src/core/hle/applets/mii_selector.cpp b/src/core/hle/applets/mii_selector.cpp
index 79264d349..53d5b4ab4 100644
--- a/src/core/hle/applets/mii_selector.cpp
+++ b/src/core/hle/applets/mii_selector.cpp
@@ -2,18 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/applets/mii_selector.h"
5#include <cstring> 6#include <cstring>
6#include <string> 7#include <string>
7
8#include "common/assert.h" 8#include "common/assert.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10#include "common/string_util.h" 10#include "common/string_util.h"
11
12#include "core/hle/applets/mii_selector.h"
13#include "core/hle/kernel/kernel.h" 11#include "core/hle/kernel/kernel.h"
14#include "core/hle/kernel/shared_memory.h" 12#include "core/hle/kernel/shared_memory.h"
15#include "core/hle/result.h" 13#include "core/hle/result.h"
16
17#include "video_core/video_core.h" 14#include "video_core/video_core.h"
18 15
19//////////////////////////////////////////////////////////////////////////////////////////////////// 16////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/applets/mii_selector.h b/src/core/hle/applets/mii_selector.h
index 26966a271..e3ab9f0cd 100644
--- a/src/core/hle/applets/mii_selector.h
+++ b/src/core/hle/applets/mii_selector.h
@@ -6,7 +6,6 @@
6 6
7#include "common/common_funcs.h" 7#include "common/common_funcs.h"
8#include "common/common_types.h" 8#include "common/common_types.h"
9
10#include "core/hle/applets/applet.h" 9#include "core/hle/applets/applet.h"
11#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
12#include "core/hle/kernel/shared_memory.h" 11#include "core/hle/kernel/shared_memory.h"
diff --git a/src/core/hle/applets/swkbd.cpp b/src/core/hle/applets/swkbd.cpp
index cf2775968..b26107332 100644
--- a/src/core/hle/applets/swkbd.cpp
+++ b/src/core/hle/applets/swkbd.cpp
@@ -2,21 +2,18 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/applets/swkbd.h"
5#include <cstring> 6#include <cstring>
6#include <string> 7#include <string>
7
8#include "common/assert.h" 8#include "common/assert.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10#include "common/string_util.h" 10#include "common/string_util.h"
11
12#include "core/hle/applets/swkbd.h"
13#include "core/hle/kernel/kernel.h" 11#include "core/hle/kernel/kernel.h"
14#include "core/hle/kernel/shared_memory.h" 12#include "core/hle/kernel/shared_memory.h"
15#include "core/hle/result.h" 13#include "core/hle/result.h"
16#include "core/hle/service/gsp_gpu.h" 14#include "core/hle/service/gsp_gpu.h"
17#include "core/hle/service/hid/hid.h" 15#include "core/hle/service/hid/hid.h"
18#include "core/memory.h" 16#include "core/memory.h"
19
20#include "video_core/video_core.h" 17#include "video_core/video_core.h"
21 18
22//////////////////////////////////////////////////////////////////////////////////////////////////// 19////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/applets/swkbd.h b/src/core/hle/applets/swkbd.h
index 4e2f9de62..ea0b1fba9 100644
--- a/src/core/hle/applets/swkbd.h
+++ b/src/core/hle/applets/swkbd.h
@@ -6,7 +6,6 @@
6 6
7#include "common/common_funcs.h" 7#include "common/common_funcs.h"
8#include "common/common_types.h" 8#include "common/common_types.h"
9
10#include "core/hle/applets/applet.h" 9#include "core/hle/applets/applet.h"
11#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
12#include "core/hle/kernel/shared_memory.h" 11#include "core/hle/kernel/shared_memory.h"
diff --git a/src/core/hle/config_mem.h b/src/core/hle/config_mem.h
index 50664dac6..42fa6d789 100644
--- a/src/core/hle/config_mem.h
+++ b/src/core/hle/config_mem.h
@@ -12,7 +12,6 @@
12#include "common/common_funcs.h" 12#include "common/common_funcs.h"
13#include "common/common_types.h" 13#include "common/common_types.h"
14#include "common/swap.h" 14#include "common/swap.h"
15
16#include "core/memory.h" 15#include "core/memory.h"
17 16
18//////////////////////////////////////////////////////////////////////////////////////////////////// 17////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h
index d5d989c29..8ce0f6d2b 100644
--- a/src/core/hle/function_wrappers.h
+++ b/src/core/hle/function_wrappers.h
@@ -5,8 +5,8 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/arm/arm_interface.h" 8#include "core/arm/arm_interface.h"
9#include "core/core.h"
10#include "core/hle/hle.h" 10#include "core/hle/hle.h"
11#include "core/hle/result.h" 11#include "core/hle/result.h"
12#include "core/hle/svc.h" 12#include "core/hle/svc.h"
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp
index 480a73e80..5749068d6 100644
--- a/src/core/hle/hle.cpp
+++ b/src/core/hle/hle.cpp
@@ -2,12 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/hle.h"
5#include "common/assert.h" 6#include "common/assert.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7
8#include "core/arm/arm_interface.h" 8#include "core/arm/arm_interface.h"
9#include "core/core.h" 9#include "core/core.h"
10#include "core/hle/hle.h"
11#include "core/hle/service/service.h" 10#include "core/hle/service/service.h"
12 11
13//////////////////////////////////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp
index 3506c2d48..bcb4ee46f 100644
--- a/src/core/hle/kernel/address_arbiter.cpp
+++ b/src/core/hle/kernel/address_arbiter.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/address_arbiter.h"
5#include "common/common_types.h" 6#include "common/common_types.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7
8#include "core/memory.h"
9
10#include "core/hle/hle.h" 8#include "core/hle/hle.h"
11#include "core/hle/kernel/address_arbiter.h"
12#include "core/hle/kernel/thread.h" 9#include "core/hle/kernel/thread.h"
10#include "core/memory.h"
13 11
14//////////////////////////////////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////////////////////////////////
15// Kernel namespace 13// Kernel namespace
diff --git a/src/core/hle/kernel/address_arbiter.h b/src/core/hle/kernel/address_arbiter.h
index 1a03993b2..6a7af93a9 100644
--- a/src/core/hle/kernel/address_arbiter.h
+++ b/src/core/hle/kernel/address_arbiter.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/hle/kernel/kernel.h" 8#include "core/hle/kernel/kernel.h"
10 9
11// Address arbiters are an underlying kernel synchronization object that can be created/used via 10// Address arbiters are an underlying kernel synchronization object that can be created/used via
diff --git a/src/core/hle/kernel/client_port.cpp b/src/core/hle/kernel/client_port.cpp
index 444ce8d45..eed333995 100644
--- a/src/core/hle/kernel/client_port.cpp
+++ b/src/core/hle/kernel/client_port.cpp
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/assert.h"
6
7#include "core/hle/kernel/client_port.h" 5#include "core/hle/kernel/client_port.h"
6#include "common/assert.h"
8#include "core/hle/kernel/kernel.h" 7#include "core/hle/kernel/kernel.h"
9#include "core/hle/kernel/server_port.h" 8#include "core/hle/kernel/server_port.h"
10 9
diff --git a/src/core/hle/kernel/client_port.h b/src/core/hle/kernel/client_port.h
index 70e0d56cc..d28147718 100644
--- a/src/core/hle/kernel/client_port.h
+++ b/src/core/hle/kernel/client_port.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10
11#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
12 10
13namespace Kernel { 11namespace Kernel {
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cpp
index f056eb7c3..cf8e6fa17 100644
--- a/src/core/hle/kernel/event.cpp
+++ b/src/core/hle/kernel/event.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/event.h"
5#include <algorithm> 6#include <algorithm>
6#include <map> 7#include <map>
7#include <vector> 8#include <vector>
8
9#include "common/assert.h" 9#include "common/assert.h"
10
11#include "core/hle/kernel/event.h"
12#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
13#include "core/hle/kernel/thread.h" 11#include "core/hle/kernel/thread.h"
14 12
diff --git a/src/core/hle/kernel/event.h b/src/core/hle/kernel/event.h
index e333a46ce..6fe74065d 100644
--- a/src/core/hle/kernel/event.h
+++ b/src/core/hle/kernel/event.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/hle/kernel/kernel.h" 8#include "core/hle/kernel/kernel.h"
10 9
11namespace Kernel { 10namespace Kernel {
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 1fd7c0326..49bf95618 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/kernel.h"
5#include <algorithm> 6#include <algorithm>
6
7#include "common/assert.h" 7#include "common/assert.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9
10#include "core/hle/config_mem.h" 9#include "core/hle/config_mem.h"
11#include "core/hle/kernel/kernel.h"
12#include "core/hle/kernel/memory.h" 10#include "core/hle/kernel/memory.h"
13#include "core/hle/kernel/process.h" 11#include "core/hle/kernel/process.h"
14#include "core/hle/kernel/resource_limit.h" 12#include "core/hle/kernel/resource_limit.h"
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h
index c683fcb80..0e95f7ff0 100644
--- a/src/core/hle/kernel/kernel.h
+++ b/src/core/hle/kernel/kernel.h
@@ -4,16 +4,13 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <boost/smart_ptr/intrusive_ptr.hpp>
8
9#include <algorithm> 7#include <algorithm>
10#include <array> 8#include <array>
11#include <cstddef> 9#include <cstddef>
12#include <string> 10#include <string>
13#include <vector> 11#include <vector>
14 12#include <boost/smart_ptr/intrusive_ptr.hpp>
15#include "common/common_types.h" 13#include "common/common_types.h"
16
17#include "core/hle/hle.h" 14#include "core/hle/hle.h"
18#include "core/hle/result.h" 15#include "core/hle/result.h"
19 16
diff --git a/src/core/hle/kernel/memory.cpp b/src/core/hle/kernel/memory.cpp
index 89a72808a..d13bc74c6 100644
--- a/src/core/hle/kernel/memory.cpp
+++ b/src/core/hle/kernel/memory.cpp
@@ -2,18 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/memory.h"
5#include <map> 6#include <map>
6#include <memory> 7#include <memory>
7#include <utility> 8#include <utility>
8#include <vector> 9#include <vector>
9
10#include "audio_core/audio_core.h" 10#include "audio_core/audio_core.h"
11
12#include "common/common_types.h" 11#include "common/common_types.h"
13#include "common/logging/log.h" 12#include "common/logging/log.h"
14
15#include "core/hle/config_mem.h" 13#include "core/hle/config_mem.h"
16#include "core/hle/kernel/memory.h"
17#include "core/hle/kernel/vm_manager.h" 14#include "core/hle/kernel/vm_manager.h"
18#include "core/hle/result.h" 15#include "core/hle/result.h"
19#include "core/hle/shared_page.h" 16#include "core/hle/shared_page.h"
diff --git a/src/core/hle/kernel/memory.h b/src/core/hle/kernel/memory.h
index b941c24b6..4e1856a41 100644
--- a/src/core/hle/kernel/memory.h
+++ b/src/core/hle/kernel/memory.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10
11#include "core/hle/kernel/process.h" 9#include "core/hle/kernel/process.h"
12 10
13namespace Kernel { 11namespace Kernel {
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index edb97d324..4cd237b44 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -2,15 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/mutex.h"
5#include <map> 6#include <map>
6#include <vector> 7#include <vector>
7
8#include <boost/range/algorithm_ext/erase.hpp> 8#include <boost/range/algorithm_ext/erase.hpp>
9
10#include "common/assert.h" 9#include "common/assert.h"
11
12#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
13#include "core/hle/kernel/mutex.h"
14#include "core/hle/kernel/thread.h" 11#include "core/hle/kernel/thread.h"
15 12
16namespace Kernel { 13namespace Kernel {
diff --git a/src/core/hle/kernel/mutex.h b/src/core/hle/kernel/mutex.h
index cf6a51fdf..53c3dc1f1 100644
--- a/src/core/hle/kernel/mutex.h
+++ b/src/core/hle/kernel/mutex.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10
11#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
12 10
13namespace Kernel { 11namespace Kernel {
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index b764f750f..a94d74263 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/process.h"
5#include <memory> 6#include <memory>
6
7#include "common/assert.h" 7#include "common/assert.h"
8#include "common/common_funcs.h" 8#include "common/common_funcs.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10
11#include "core/hle/kernel/memory.h" 10#include "core/hle/kernel/memory.h"
12#include "core/hle/kernel/process.h"
13#include "core/hle/kernel/resource_limit.h" 11#include "core/hle/kernel/resource_limit.h"
14#include "core/hle/kernel/thread.h" 12#include "core/hle/kernel/thread.h"
15#include "core/hle/kernel/vm_manager.h" 13#include "core/hle/kernel/vm_manager.h"
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h
index 070b2b558..b566950b0 100644
--- a/src/core/hle/kernel/process.h
+++ b/src/core/hle/kernel/process.h
@@ -8,12 +8,9 @@
8#include <cstddef> 8#include <cstddef>
9#include <memory> 9#include <memory>
10#include <string> 10#include <string>
11
12#include <boost/container/static_vector.hpp> 11#include <boost/container/static_vector.hpp>
13
14#include "common/bit_field.h" 12#include "common/bit_field.h"
15#include "common/common_types.h" 13#include "common/common_types.h"
16
17#include "core/hle/kernel/kernel.h" 14#include "core/hle/kernel/kernel.h"
18#include "core/hle/kernel/vm_manager.h" 15#include "core/hle/kernel/vm_manager.h"
19 16
diff --git a/src/core/hle/kernel/resource_limit.cpp b/src/core/hle/kernel/resource_limit.cpp
index bb0baed6f..64c91cc62 100644
--- a/src/core/hle/kernel/resource_limit.cpp
+++ b/src/core/hle/kernel/resource_limit.cpp
@@ -2,12 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/resource_limit.h"
5#include <cstring> 6#include <cstring>
6
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8 8
9#include "core/hle/kernel/resource_limit.h"
10
11namespace Kernel { 9namespace Kernel {
12 10
13static SharedPtr<ResourceLimit> resource_limits[4]; 11static SharedPtr<ResourceLimit> resource_limits[4];
diff --git a/src/core/hle/kernel/resource_limit.h b/src/core/hle/kernel/resource_limit.h
index 5d8b31a2d..6cdfbcf8d 100644
--- a/src/core/hle/kernel/resource_limit.h
+++ b/src/core/hle/kernel/resource_limit.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/hle/kernel/kernel.h" 8#include "core/hle/kernel/kernel.h"
10 9
11namespace Kernel { 10namespace Kernel {
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp
index 16ac22f1d..2a9ced5b9 100644
--- a/src/core/hle/kernel/semaphore.cpp
+++ b/src/core/hle/kernel/semaphore.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/semaphore.h"
5#include "common/assert.h" 6#include "common/assert.h"
6
7#include "core/hle/kernel/kernel.h" 7#include "core/hle/kernel/kernel.h"
8#include "core/hle/kernel/semaphore.h"
9#include "core/hle/kernel/thread.h" 8#include "core/hle/kernel/thread.h"
10 9
11namespace Kernel { 10namespace Kernel {
diff --git a/src/core/hle/kernel/semaphore.h b/src/core/hle/kernel/semaphore.h
index ed7d9a85c..e01908a25 100644
--- a/src/core/hle/kernel/semaphore.h
+++ b/src/core/hle/kernel/semaphore.h
@@ -6,9 +6,7 @@
6 6
7#include <queue> 7#include <queue>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
13 11
14namespace Kernel { 12namespace Kernel {
diff --git a/src/core/hle/kernel/server_port.cpp b/src/core/hle/kernel/server_port.cpp
index 57e93cad4..12a709cee 100644
--- a/src/core/hle/kernel/server_port.cpp
+++ b/src/core/hle/kernel/server_port.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/server_port.h"
5#include <tuple> 6#include <tuple>
6
7#include "common/assert.h" 7#include "common/assert.h"
8
9#include "core/hle/kernel/client_port.h" 8#include "core/hle/kernel/client_port.h"
10#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
11#include "core/hle/kernel/server_port.h"
12#include "core/hle/kernel/thread.h" 10#include "core/hle/kernel/thread.h"
13 11
14namespace Kernel { 12namespace Kernel {
diff --git a/src/core/hle/kernel/server_port.h b/src/core/hle/kernel/server_port.h
index c3f2ae177..fa9448ca0 100644
--- a/src/core/hle/kernel/server_port.h
+++ b/src/core/hle/kernel/server_port.h
@@ -6,9 +6,7 @@
6 6
7#include <string> 7#include <string>
8#include <tuple> 8#include <tuple>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
13 11
14namespace Kernel { 12namespace Kernel {
diff --git a/src/core/hle/kernel/session.h b/src/core/hle/kernel/session.h
index 8e4e010b8..ec025f732 100644
--- a/src/core/hle/kernel/session.h
+++ b/src/core/hle/kernel/session.h
@@ -5,10 +5,8 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "common/assert.h" 8#include "common/assert.h"
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
13#include "core/hle/kernel/thread.h" 11#include "core/hle/kernel/thread.h"
14#include "core/hle/result.h" 12#include "core/hle/result.h"
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp
index bf511a338..8ab916e5b 100644
--- a/src/core/hle/kernel/shared_memory.cpp
+++ b/src/core/hle/kernel/shared_memory.cpp
@@ -2,12 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/shared_memory.h"
5#include <cstring> 6#include <cstring>
6
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8
9#include "core/hle/kernel/memory.h" 8#include "core/hle/kernel/memory.h"
10#include "core/hle/kernel/shared_memory.h"
11#include "core/memory.h" 9#include "core/memory.h"
12 10
13namespace Kernel { 11namespace Kernel {
diff --git a/src/core/hle/kernel/shared_memory.h b/src/core/hle/kernel/shared_memory.h
index afb142380..94b335ed1 100644
--- a/src/core/hle/kernel/shared_memory.h
+++ b/src/core/hle/kernel/shared_memory.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10
11#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
12#include "core/hle/kernel/process.h" 10#include "core/hle/kernel/process.h"
13#include "core/hle/result.h" 11#include "core/hle/result.h"
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 0df03c9d5..0185c3ae3 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -2,16 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/thread.h"
5#include <algorithm> 6#include <algorithm>
6#include <list> 7#include <list>
7#include <vector> 8#include <vector>
8
9#include "common/assert.h" 9#include "common/assert.h"
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/math_util.h" 12#include "common/math_util.h"
13#include "common/thread_queue_list.h" 13#include "common/thread_queue_list.h"
14
15#include "core/arm/arm_interface.h" 14#include "core/arm/arm_interface.h"
16#include "core/arm/skyeye_common/armstate.h" 15#include "core/arm/skyeye_common/armstate.h"
17#include "core/core.h" 16#include "core/core.h"
@@ -21,7 +20,6 @@
21#include "core/hle/kernel/memory.h" 20#include "core/hle/kernel/memory.h"
22#include "core/hle/kernel/mutex.h" 21#include "core/hle/kernel/mutex.h"
23#include "core/hle/kernel/process.h" 22#include "core/hle/kernel/process.h"
24#include "core/hle/kernel/thread.h"
25#include "core/hle/result.h" 23#include "core/hle/result.h"
26#include "core/memory.h" 24#include "core/memory.h"
27 25
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 2ed5cf74e..f63131716 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -6,13 +6,9 @@
6 6
7#include <string> 7#include <string>
8#include <vector> 8#include <vector>
9
10#include <boost/container/flat_set.hpp> 9#include <boost/container/flat_set.hpp>
11
12#include "common/common_types.h" 10#include "common/common_types.h"
13
14#include "core/core.h" 11#include "core/core.h"
15
16#include "core/hle/hle.h" 12#include "core/hle/hle.h"
17#include "core/hle/kernel/kernel.h" 13#include "core/hle/kernel/kernel.h"
18#include "core/hle/result.h" 14#include "core/hle/result.h"
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp
index 427a81923..7432f3567 100644
--- a/src/core/hle/kernel/timer.cpp
+++ b/src/core/hle/kernel/timer.cpp
@@ -2,15 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/timer.h"
5#include <cinttypes> 6#include <cinttypes>
6
7#include "common/assert.h" 7#include "common/assert.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9
10#include "core/core_timing.h" 9#include "core/core_timing.h"
11#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
12#include "core/hle/kernel/thread.h" 11#include "core/hle/kernel/thread.h"
13#include "core/hle/kernel/timer.h"
14 12
15namespace Kernel { 13namespace Kernel {
16 14
diff --git a/src/core/hle/kernel/timer.h b/src/core/hle/kernel/timer.h
index 97cd0d63c..59a77aad3 100644
--- a/src/core/hle/kernel/timer.h
+++ b/src/core/hle/kernel/timer.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/hle/kernel/event.h" 8#include "core/hle/kernel/event.h"
10#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
11 10
diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cpp
index 4ad86cf48..488898641 100644
--- a/src/core/hle/kernel/vm_manager.cpp
+++ b/src/core/hle/kernel/vm_manager.cpp
@@ -2,11 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/kernel/vm_manager.h"
5#include <iterator> 6#include <iterator>
6
7#include "common/assert.h" 7#include "common/assert.h"
8
9#include "core/hle/kernel/vm_manager.h"
10#include "core/memory.h" 8#include "core/memory.h"
11#include "core/memory_setup.h" 9#include "core/memory_setup.h"
12#include "core/mmio.h" 10#include "core/mmio.h"
diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.h
index fbcd9870f..9055664b2 100644
--- a/src/core/hle/kernel/vm_manager.h
+++ b/src/core/hle/kernel/vm_manager.h
@@ -7,9 +7,7 @@
7#include <map> 7#include <map>
8#include <memory> 8#include <memory>
9#include <vector> 9#include <vector>
10
11#include "common/common_types.h" 10#include "common/common_types.h"
12
13#include "core/hle/result.h" 11#include "core/hle/result.h"
14#include "core/mmio.h" 12#include "core/mmio.h"
15 13
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 492c1ffa6..7f8d8e00d 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -6,7 +6,6 @@
6 6
7#include <new> 7#include <new>
8#include <utility> 8#include <utility>
9
10#include "common/assert.h" 9#include "common/assert.h"
11#include "common/bit_field.h" 10#include "common/bit_field.h"
12#include "common/common_funcs.h" 11#include "common/common_funcs.h"
diff --git a/src/core/hle/service/ac_u.cpp b/src/core/hle/service/ac_u.cpp
index 887b57529..0b61bfae8 100644
--- a/src/core/hle/service/ac_u.cpp
+++ b/src/core/hle/service/ac_u.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/ac_u.h"
5#include "common/logging/log.h" 6#include "common/logging/log.h"
6
7#include "core/hle/kernel/event.h" 7#include "core/hle/kernel/event.h"
8#include "core/hle/service/ac_u.h"
9 8
10//////////////////////////////////////////////////////////////////////////////////////////////////// 9////////////////////////////////////////////////////////////////////////////////////////////////////
11// Namespace AC_U 10// Namespace AC_U
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 528bb1848..e9adfaa1b 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -2,11 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/am/am.h"
5#include <cinttypes> 6#include <cinttypes>
6
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8
9#include "core/hle/service/am/am.h"
10#include "core/hle/service/am/am_app.h" 8#include "core/hle/service/am/am_app.h"
11#include "core/hle/service/am/am_net.h" 9#include "core/hle/service/am/am_net.h"
12#include "core/hle/service/am/am_sys.h" 10#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.cpp
index dfc1e9c08..6240286bb 100644
--- a/src/core/hle/service/apt/apt.cpp
+++ b/src/core/hle/service/apt/apt.cpp
@@ -2,12 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/apt/apt.h"
5#include "common/common_paths.h" 6#include "common/common_paths.h"
6#include "common/file_util.h" 7#include "common/file_util.h"
7#include "common/logging/log.h" 8#include "common/logging/log.h"
8
9#include "core/hle/applets/applet.h" 9#include "core/hle/applets/applet.h"
10#include "core/hle/service/apt/apt.h" 10#include "core/hle/kernel/event.h"
11#include "core/hle/kernel/mutex.h"
12#include "core/hle/kernel/process.h"
13#include "core/hle/kernel/shared_memory.h"
11#include "core/hle/service/apt/apt_a.h" 14#include "core/hle/service/apt/apt_a.h"
12#include "core/hle/service/apt/apt_s.h" 15#include "core/hle/service/apt/apt_s.h"
13#include "core/hle/service/apt/apt_u.h" 16#include "core/hle/service/apt/apt_u.h"
@@ -16,11 +19,6 @@
16#include "core/hle/service/ptm/ptm.h" 19#include "core/hle/service/ptm/ptm.h"
17#include "core/hle/service/service.h" 20#include "core/hle/service/service.h"
18 21
19#include "core/hle/kernel/event.h"
20#include "core/hle/kernel/mutex.h"
21#include "core/hle/kernel/process.h"
22#include "core/hle/kernel/shared_memory.h"
23
24namespace Service { 22namespace Service {
25namespace APT { 23namespace APT {
26 24
diff --git a/src/core/hle/service/apt/apt.h b/src/core/hle/service/apt/apt.h
index 7597b0d3e..a118cda1f 100644
--- a/src/core/hle/service/apt/apt.h
+++ b/src/core/hle/service/apt/apt.h
@@ -6,7 +6,6 @@
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "common/swap.h" 8#include "common/swap.h"
9
10#include "core/hle/kernel/kernel.h" 9#include "core/hle/kernel/kernel.h"
11 10
12namespace Service { 11namespace Service {
diff --git a/src/core/hle/service/apt/bcfnt/bcfnt.h b/src/core/hle/service/apt/bcfnt/bcfnt.h
index 8936dcf63..453bf7606 100644
--- a/src/core/hle/service/apt/bcfnt/bcfnt.h
+++ b/src/core/hle/service/apt/bcfnt/bcfnt.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/swap.h" 7#include "common/swap.h"
8
9#include "core/hle/kernel/shared_memory.h" 8#include "core/hle/kernel/shared_memory.h"
10#include "core/hle/service/service.h" 9#include "core/hle/service/service.h"
11 10
diff --git a/src/core/hle/service/cam/cam.cpp b/src/core/hle/service/cam/cam.cpp
index ec1f9c749..be2e42963 100644
--- a/src/core/hle/service/cam/cam.cpp
+++ b/src/core/hle/service/cam/cam.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/cam/cam.h"
5#include "common/logging/log.h" 6#include "common/logging/log.h"
6
7#include "core/hle/kernel/event.h" 7#include "core/hle/kernel/event.h"
8#include "core/hle/service/cam/cam.h"
9#include "core/hle/service/cam/cam_c.h" 8#include "core/hle/service/cam/cam_c.h"
10#include "core/hle/service/cam/cam_q.h" 9#include "core/hle/service/cam/cam_q.h"
11#include "core/hle/service/cam/cam_s.h" 10#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.h
index ec9b835f1..c9b6f8acf 100644
--- a/src/core/hle/service/cam/cam.h
+++ b/src/core/hle/service/cam/cam.h
@@ -7,7 +7,6 @@
7#include "common/common_funcs.h" 7#include "common/common_funcs.h"
8#include "common/common_types.h" 8#include "common/common_types.h"
9#include "common/swap.h" 9#include "common/swap.h"
10
11#include "core/hle/kernel/kernel.h" 10#include "core/hle/kernel/kernel.h"
12#include "core/hle/service/service.h" 11#include "core/hle/service/service.h"
13 12
diff --git a/src/core/hle/service/cecd/cecd.cpp b/src/core/hle/service/cecd/cecd.cpp
index 65a1d850b..4d8916bdf 100644
--- a/src/core/hle/service/cecd/cecd.cpp
+++ b/src/core/hle/service/cecd/cecd.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/cecd/cecd.h"
5#include "common/logging/log.h" 6#include "common/logging/log.h"
6
7#include "core/hle/kernel/event.h" 7#include "core/hle/kernel/event.h"
8#include "core/hle/service/cecd/cecd.h"
9#include "core/hle/service/cecd/cecd_s.h" 8#include "core/hle/service/cecd/cecd_s.h"
10#include "core/hle/service/cecd/cecd_u.h" 9#include "core/hle/service/cecd/cecd_u.h"
11#include "core/hle/service/service.h" 10#include "core/hle/service/service.h"
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp
index aff033bde..1f706751f 100644
--- a/src/core/hle/service/cfg/cfg.cpp
+++ b/src/core/hle/service/cfg/cfg.cpp
@@ -2,17 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/cfg/cfg.h"
5#include <algorithm> 6#include <algorithm>
6
7#include "common/file_util.h" 7#include "common/file_util.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9#include "common/string_util.h" 9#include "common/string_util.h"
10#include "common/swap.h" 10#include "common/swap.h"
11
12#include "core/file_sys/archive_systemsavedata.h" 11#include "core/file_sys/archive_systemsavedata.h"
13#include "core/file_sys/file_backend.h" 12#include "core/file_sys/file_backend.h"
14#include "core/hle/result.h" 13#include "core/hle/result.h"
15#include "core/hle/service/cfg/cfg.h"
16#include "core/hle/service/cfg/cfg_i.h" 14#include "core/hle/service/cfg/cfg_i.h"
17#include "core/hle/service/cfg/cfg_s.h" 15#include "core/hle/service/cfg/cfg_s.h"
18#include "core/hle/service/cfg/cfg_u.h" 16#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.h
index c7c2ab41d..fb47c2aa5 100644
--- a/src/core/hle/service/cfg/cfg.h
+++ b/src/core/hle/service/cfg/cfg.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12union ResultCode; 11union ResultCode;
diff --git a/src/core/hle/service/dsp_dsp.cpp b/src/core/hle/service/dsp_dsp.cpp
index 70e92c30c..3f2f09f60 100644
--- a/src/core/hle/service/dsp_dsp.cpp
+++ b/src/core/hle/service/dsp_dsp.cpp
@@ -2,16 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/dsp_dsp.h"
5#include <algorithm> 6#include <algorithm>
6#include <cinttypes> 7#include <cinttypes>
7
8#include "audio_core/hle/pipe.h" 8#include "audio_core/hle/pipe.h"
9
10#include "common/hash.h" 9#include "common/hash.h"
11#include "common/logging/log.h" 10#include "common/logging/log.h"
12
13#include "core/hle/kernel/event.h" 11#include "core/hle/kernel/event.h"
14#include "core/hle/service/dsp_dsp.h"
15 12
16using DspPipe = DSP::HLE::DspPipe; 13using DspPipe = DSP::HLE::DspPipe;
17 14
diff --git a/src/core/hle/service/dsp_dsp.h b/src/core/hle/service/dsp_dsp.h
index 22f6687cc..3e97da6eb 100644
--- a/src/core/hle/service/dsp_dsp.h
+++ b/src/core/hle/service/dsp_dsp.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
10 9
11namespace DSP { 10namespace DSP {
diff --git a/src/core/hle/service/err_f.cpp b/src/core/hle/service/err_f.cpp
index a23f5896d..ff606d883 100644
--- a/src/core/hle/service/err_f.cpp
+++ b/src/core/hle/service/err_f.cpp
@@ -2,12 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/err_f.h"
5#include "common/bit_field.h" 6#include "common/bit_field.h"
6#include "common/common_types.h" 7#include "common/common_types.h"
7#include "common/logging/log.h" 8#include "common/logging/log.h"
8 9
9#include "core/hle/service/err_f.h"
10
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
12// Namespace ERR_F 11// Namespace ERR_F
13 12
diff --git a/src/core/hle/service/frd/frd.cpp b/src/core/hle/service/frd/frd.cpp
index 050665b48..bd89b522b 100644
--- a/src/core/hle/service/frd/frd.cpp
+++ b/src/core/hle/service/frd/frd.cpp
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/string_util.h"
6
7#include "core/hle/service/frd/frd.h" 5#include "core/hle/service/frd/frd.h"
6#include "common/string_util.h"
8#include "core/hle/service/frd/frd_a.h" 7#include "core/hle/service/frd/frd_a.h"
9#include "core/hle/service/frd/frd_u.h" 8#include "core/hle/service/frd/frd_u.h"
10#include "core/hle/service/service.h" 9#include "core/hle/service/service.h"
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp
index 77fe5ab6c..b945b255e 100644
--- a/src/core/hle/service/fs/archive.cpp
+++ b/src/core/hle/service/fs/archive.cpp
@@ -2,20 +2,18 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/fs/archive.h"
5#include <cstddef> 6#include <cstddef>
6#include <memory> 7#include <memory>
7#include <system_error> 8#include <system_error>
8#include <type_traits> 9#include <type_traits>
9#include <unordered_map> 10#include <unordered_map>
10#include <utility> 11#include <utility>
11
12#include <boost/container/flat_map.hpp> 12#include <boost/container/flat_map.hpp>
13
14#include "common/assert.h" 13#include "common/assert.h"
15#include "common/common_types.h" 14#include "common/common_types.h"
16#include "common/file_util.h" 15#include "common/file_util.h"
17#include "common/logging/log.h" 16#include "common/logging/log.h"
18
19#include "core/file_sys/archive_backend.h" 17#include "core/file_sys/archive_backend.h"
20#include "core/file_sys/archive_extsavedata.h" 18#include "core/file_sys/archive_extsavedata.h"
21#include "core/file_sys/archive_savedata.h" 19#include "core/file_sys/archive_savedata.h"
@@ -26,7 +24,6 @@
26#include "core/file_sys/file_backend.h" 24#include "core/file_sys/file_backend.h"
27#include "core/hle/hle.h" 25#include "core/hle/hle.h"
28#include "core/hle/result.h" 26#include "core/hle/result.h"
29#include "core/hle/service/fs/archive.h"
30#include "core/hle/service/fs/fs_user.h" 27#include "core/hle/service/fs/fs_user.h"
31#include "core/hle/service/service.h" 28#include "core/hle/service/service.h"
32#include "core/memory.h" 29#include "core/memory.h"
diff --git a/src/core/hle/service/fs/archive.h b/src/core/hle/service/fs/archive.h
index aad540ff9..533be34a4 100644
--- a/src/core/hle/service/fs/archive.h
+++ b/src/core/hle/service/fs/archive.h
@@ -6,9 +6,7 @@
6 6
7#include <memory> 7#include <memory>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/file_sys/archive_backend.h" 10#include "core/file_sys/archive_backend.h"
13#include "core/hle/kernel/session.h" 11#include "core/hle/kernel/session.h"
14#include "core/hle/result.h" 12#include "core/hle/result.h"
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp
index 605832214..92578270b 100644
--- a/src/core/hle/service/fs/fs_user.cpp
+++ b/src/core/hle/service/fs/fs_user.cpp
@@ -2,16 +2,15 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/fs/fs_user.h"
5#include "common/assert.h" 6#include "common/assert.h"
6#include "common/common_types.h" 7#include "common/common_types.h"
7#include "common/file_util.h" 8#include "common/file_util.h"
8#include "common/logging/log.h" 9#include "common/logging/log.h"
9#include "common/scope_exit.h" 10#include "common/scope_exit.h"
10#include "common/string_util.h" 11#include "common/string_util.h"
11
12#include "core/hle/result.h" 12#include "core/hle/result.h"
13#include "core/hle/service/fs/archive.h" 13#include "core/hle/service/fs/archive.h"
14#include "core/hle/service/fs/fs_user.h"
15#include "core/settings.h" 14#include "core/settings.h"
16 15
17//////////////////////////////////////////////////////////////////////////////////////////////////// 16////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp
index 2dff1e16c..ba148eaf1 100644
--- a/src/core/hle/service/gsp_gpu.cpp
+++ b/src/core/hle/service/gsp_gpu.cpp
@@ -2,9 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "gsp_gpu.h"
5#include "common/bit_field.h" 6#include "common/bit_field.h"
6#include "common/microprofile.h" 7#include "common/microprofile.h"
7
8#include "core/hle/kernel/event.h" 8#include "core/hle/kernel/event.h"
9#include "core/hle/kernel/shared_memory.h" 9#include "core/hle/kernel/shared_memory.h"
10#include "core/hle/result.h" 10#include "core/hle/result.h"
@@ -12,12 +12,9 @@
12#include "core/hw/hw.h" 12#include "core/hw/hw.h"
13#include "core/hw/lcd.h" 13#include "core/hw/lcd.h"
14#include "core/memory.h" 14#include "core/memory.h"
15
16#include "video_core/debug_utils/debug_utils.h" 15#include "video_core/debug_utils/debug_utils.h"
17#include "video_core/gpu_debugger.h" 16#include "video_core/gpu_debugger.h"
18 17
19#include "gsp_gpu.h"
20
21// Main graphics debugger object - TODO: Here is probably not the best place for this 18// Main graphics debugger object - TODO: Here is probably not the best place for this
22GraphicsDebugger g_debugger; 19GraphicsDebugger g_debugger;
23 20
diff --git a/src/core/hle/service/gsp_gpu.h b/src/core/hle/service/gsp_gpu.h
index e028123f3..79a72f77d 100644
--- a/src/core/hle/service/gsp_gpu.h
+++ b/src/core/hle/service/gsp_gpu.h
@@ -6,10 +6,8 @@
6 6
7#include <cstddef> 7#include <cstddef>
8#include <string> 8#include <string>
9
10#include "common/bit_field.h" 9#include "common/bit_field.h"
11#include "common/common_types.h" 10#include "common/common_types.h"
12
13#include "core/hle/result.h" 11#include "core/hle/result.h"
14#include "core/hle/service/service.h" 12#include "core/hle/service/service.h"
15 13
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp
index 5a2edd3c0..a050e81f7 100644
--- a/src/core/hle/service/hid/hid.cpp
+++ b/src/core/hle/service/hid/hid.cpp
@@ -2,20 +2,16 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/hid/hid.h"
5#include <cmath> 6#include <cmath>
6
7#include "common/emu_window.h" 7#include "common/emu_window.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9
10#include "core/hle/service/hid/hid.h"
11#include "core/hle/service/hid/hid_spvr.h"
12#include "core/hle/service/hid/hid_user.h"
13#include "core/hle/service/service.h"
14
15#include "core/core_timing.h" 9#include "core/core_timing.h"
16#include "core/hle/kernel/event.h" 10#include "core/hle/kernel/event.h"
17#include "core/hle/kernel/shared_memory.h" 11#include "core/hle/kernel/shared_memory.h"
18 12#include "core/hle/service/hid/hid_spvr.h"
13#include "core/hle/service/hid/hid_user.h"
14#include "core/hle/service/service.h"
19#include "video_core/video_core.h" 15#include "video_core/video_core.h"
20 16
21namespace Service { 17namespace Service {
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h
index f54ffd8be..7904e7355 100644
--- a/src/core/hle/service/hid/hid.h
+++ b/src/core/hle/service/hid/hid.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8
9#ifndef _MSC_VER 8#ifndef _MSC_VER
10#include <cstddef> 9#include <cstddef>
11#endif 10#endif
diff --git a/src/core/hle/service/ir/ir.cpp b/src/core/hle/service/ir/ir.cpp
index fc048ae88..459fe0691 100644
--- a/src/core/hle/service/ir/ir.cpp
+++ b/src/core/hle/service/ir/ir.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/ir/ir.h"
5#include "core/hle/kernel/event.h" 6#include "core/hle/kernel/event.h"
6#include "core/hle/kernel/shared_memory.h" 7#include "core/hle/kernel/shared_memory.h"
7
8#include "core/hle/service/ir/ir.h"
9#include "core/hle/service/ir/ir_rst.h" 8#include "core/hle/service/ir/ir_rst.h"
10#include "core/hle/service/ir/ir_u.h" 9#include "core/hle/service/ir/ir_u.h"
11#include "core/hle/service/ir/ir_user.h" 10#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.cpp
index b5da9a960..f583f5c31 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/ldr_ro/cro_helper.h"
5#include "common/alignment.h" 6#include "common/alignment.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7#include "common/scope_exit.h" 8#include "common/scope_exit.h"
8 9
9#include "core/hle/service/ldr_ro/cro_helper.h"
10
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
12// Namespace LDR_RO 11// Namespace LDR_RO
13 12
diff --git a/src/core/hle/service/ldr_ro/cro_helper.h b/src/core/hle/service/ldr_ro/cro_helper.h
index e1b8221bd..6a0d0d3bf 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 @@
6 6
7#include <array> 7#include <array>
8#include <tuple> 8#include <tuple>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11#include "common/swap.h" 10#include "common/swap.h"
12
13#include "core/hle/result.h" 11#include "core/hle/result.h"
14#include "core/memory.h" 12#include "core/memory.h"
15 13
diff --git a/src/core/hle/service/ldr_ro/ldr_ro.cpp b/src/core/hle/service/ldr_ro/ldr_ro.cpp
index a8fc2c015..3faa2e5d7 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/ldr_ro/ldr_ro.h"
5#include "common/alignment.h" 6#include "common/alignment.h"
6#include "common/common_types.h" 7#include "common/common_types.h"
7#include "common/logging/log.h" 8#include "common/logging/log.h"
8
9#include "core/arm/arm_interface.h" 9#include "core/arm/arm_interface.h"
10#include "core/hle/kernel/process.h" 10#include "core/hle/kernel/process.h"
11#include "core/hle/kernel/vm_manager.h" 11#include "core/hle/kernel/vm_manager.h"
12#include "core/hle/service/ldr_ro/cro_helper.h" 12#include "core/hle/service/ldr_ro/cro_helper.h"
13#include "core/hle/service/ldr_ro/ldr_ro.h"
14#include "core/hle/service/ldr_ro/memory_synchronizer.h" 13#include "core/hle/service/ldr_ro/memory_synchronizer.h"
15 14
16//////////////////////////////////////////////////////////////////////////////////////////////////// 15////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/service/ldr_ro/memory_synchronizer.cpp b/src/core/hle/service/ldr_ro/memory_synchronizer.cpp
index aed6d3365..a3e590dfd 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/ldr_ro/memory_synchronizer.h"
5#include <algorithm> 6#include <algorithm>
6
7#include "common/assert.h" 7#include "common/assert.h"
8 8
9#include "core/hle/service/ldr_ro/memory_synchronizer.h"
10
11//////////////////////////////////////////////////////////////////////////////////////////////////// 9////////////////////////////////////////////////////////////////////////////////////////////////////
12// Namespace LDR_RO 10// Namespace LDR_RO
13 11
diff --git a/src/core/hle/service/ldr_ro/memory_synchronizer.h b/src/core/hle/service/ldr_ro/memory_synchronizer.h
index 92f267912..883ee4acf 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 @@
5#pragma once 5#pragma once
6 6
7#include <vector> 7#include <vector>
8
9#include "core/memory.h" 8#include "core/memory.h"
10 9
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/service/news/news.cpp b/src/core/hle/service/news/news.cpp
index e09ea5681..f22c49f52 100644
--- a/src/core/hle/service/news/news.cpp
+++ b/src/core/hle/service/news/news.cpp
@@ -2,9 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/logging/log.h"
6
7#include "core/hle/service/news/news.h" 5#include "core/hle/service/news/news.h"
6#include "common/logging/log.h"
8#include "core/hle/service/news/news_s.h" 7#include "core/hle/service/news/news_s.h"
9#include "core/hle/service/news/news_u.h" 8#include "core/hle/service/news/news_u.h"
10#include "core/hle/service/service.h" 9#include "core/hle/service/service.h"
diff --git a/src/core/hle/service/nim/nim.cpp b/src/core/hle/service/nim/nim.cpp
index a7b76ed67..60505545c 100644
--- a/src/core/hle/service/nim/nim.cpp
+++ b/src/core/hle/service/nim/nim.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/nim/nim.h"
5#include "common/common_types.h" 6#include "common/common_types.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7
8#include "core/hle/service/nim/nim.h"
9#include "core/hle/service/nim/nim_aoc.h" 8#include "core/hle/service/nim/nim_aoc.h"
10#include "core/hle/service/nim/nim_s.h" 9#include "core/hle/service/nim/nim_s.h"
11#include "core/hle/service/nim/nim_u.h" 10#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.h
index bc89dc0f3..c4b74985a 100644
--- a/src/core/hle/service/nim/nim_u.h
+++ b/src/core/hle/service/nim/nim_u.h
@@ -1,6 +1,6 @@
1// Copyright 2015 Citra Emulator Project 1// Copyright 2015 Citra Emulator Project
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.. 3// Refer to the license.txt file included.
4 4
5#pragma once 5#pragma once
6 6
diff --git a/src/core/hle/service/nwm_uds.cpp b/src/core/hle/service/nwm_uds.cpp
index ed417fa9a..3b608dcbb 100644
--- a/src/core/hle/service/nwm_uds.cpp
+++ b/src/core/hle/service/nwm_uds.cpp
@@ -2,11 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/nwm_uds.h"
5#include "common/common_types.h" 6#include "common/common_types.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7
8#include "core/hle/kernel/event.h" 8#include "core/hle/kernel/event.h"
9#include "core/hle/service/nwm_uds.h"
10 9
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
12// Namespace NWM_UDS 11// Namespace NWM_UDS
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index a531aad87..eff51af04 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -2,44 +2,42 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/service.h"
5#include "common/logging/log.h" 6#include "common/logging/log.h"
6#include "common/string_util.h" 7#include "common/string_util.h"
7
8#include "core/hle/service/ac_u.h" 8#include "core/hle/service/ac_u.h"
9#include "core/hle/service/act_a.h" 9#include "core/hle/service/act_a.h"
10#include "core/hle/service/act_u.h" 10#include "core/hle/service/act_u.h"
11#include "core/hle/service/csnd_snd.h"
12#include "core/hle/service/dsp_dsp.h"
13#include "core/hle/service/err_f.h"
14#include "core/hle/service/gsp_gpu.h"
15#include "core/hle/service/gsp_lcd.h"
16#include "core/hle/service/http_c.h"
17#include "core/hle/service/mic_u.h"
18#include "core/hle/service/ns_s.h"
19#include "core/hle/service/nwm_uds.h"
20#include "core/hle/service/pm_app.h"
21#include "core/hle/service/service.h"
22#include "core/hle/service/soc_u.h"
23#include "core/hle/service/srv.h"
24#include "core/hle/service/ssl_c.h"
25#include "core/hle/service/y2r_u.h"
26
27#include "core/hle/service/am/am.h" 11#include "core/hle/service/am/am.h"
28#include "core/hle/service/apt/apt.h" 12#include "core/hle/service/apt/apt.h"
29#include "core/hle/service/boss/boss.h" 13#include "core/hle/service/boss/boss.h"
30#include "core/hle/service/cam/cam.h" 14#include "core/hle/service/cam/cam.h"
31#include "core/hle/service/cecd/cecd.h" 15#include "core/hle/service/cecd/cecd.h"
32#include "core/hle/service/cfg/cfg.h" 16#include "core/hle/service/cfg/cfg.h"
17#include "core/hle/service/csnd_snd.h"
33#include "core/hle/service/dlp/dlp.h" 18#include "core/hle/service/dlp/dlp.h"
19#include "core/hle/service/dsp_dsp.h"
20#include "core/hle/service/err_f.h"
34#include "core/hle/service/frd/frd.h" 21#include "core/hle/service/frd/frd.h"
35#include "core/hle/service/fs/archive.h" 22#include "core/hle/service/fs/archive.h"
23#include "core/hle/service/gsp_gpu.h"
24#include "core/hle/service/gsp_lcd.h"
36#include "core/hle/service/hid/hid.h" 25#include "core/hle/service/hid/hid.h"
26#include "core/hle/service/http_c.h"
37#include "core/hle/service/ir/ir.h" 27#include "core/hle/service/ir/ir.h"
38#include "core/hle/service/ldr_ro/ldr_ro.h" 28#include "core/hle/service/ldr_ro/ldr_ro.h"
29#include "core/hle/service/mic_u.h"
39#include "core/hle/service/ndm/ndm.h" 30#include "core/hle/service/ndm/ndm.h"
40#include "core/hle/service/news/news.h" 31#include "core/hle/service/news/news.h"
41#include "core/hle/service/nim/nim.h" 32#include "core/hle/service/nim/nim.h"
33#include "core/hle/service/ns_s.h"
34#include "core/hle/service/nwm_uds.h"
35#include "core/hle/service/pm_app.h"
42#include "core/hle/service/ptm/ptm.h" 36#include "core/hle/service/ptm/ptm.h"
37#include "core/hle/service/soc_u.h"
38#include "core/hle/service/srv.h"
39#include "core/hle/service/ssl_c.h"
40#include "core/hle/service/y2r_u.h"
43 41
44namespace Service { 42namespace Service {
45 43
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h
index cd216f27e..39b5ffaae 100644
--- a/src/core/hle/service/service.h
+++ b/src/core/hle/service/service.h
@@ -7,11 +7,8 @@
7#include <cstddef> 7#include <cstddef>
8#include <string> 8#include <string>
9#include <unordered_map> 9#include <unordered_map>
10
11#include <boost/container/flat_map.hpp> 10#include <boost/container/flat_map.hpp>
12
13#include "common/common_types.h" 11#include "common/common_types.h"
14
15#include "core/hle/kernel/session.h" 12#include "core/hle/kernel/session.h"
16#include "core/hle/result.h" 13#include "core/hle/result.h"
17 14
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp
index 302ab55b7..1eab61e52 100644
--- a/src/core/hle/service/soc_u.cpp
+++ b/src/core/hle/service/soc_u.cpp
@@ -2,20 +2,18 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/soc_u.h"
5#include <algorithm> 6#include <algorithm>
6#include <cstring> 7#include <cstring>
7#include <unordered_map> 8#include <unordered_map>
8#include <vector> 9#include <vector>
9
10#include "common/assert.h" 10#include "common/assert.h"
11#include "common/bit_field.h" 11#include "common/bit_field.h"
12#include "common/common_types.h" 12#include "common/common_types.h"
13#include "common/logging/log.h" 13#include "common/logging/log.h"
14#include "common/scope_exit.h" 14#include "common/scope_exit.h"
15
16#include "core/hle/kernel/session.h" 15#include "core/hle/kernel/session.h"
17#include "core/hle/result.h" 16#include "core/hle/result.h"
18#include "core/hle/service/soc_u.h"
19#include "core/memory.h" 17#include "core/memory.h"
20 18
21#ifdef _WIN32 19#ifdef _WIN32
diff --git a/src/core/hle/service/soc_u.h b/src/core/hle/service/soc_u.h
index a091f597c..8d02ed30f 100644
--- a/src/core/hle/service/soc_u.h
+++ b/src/core/hle/service/soc_u.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
10 9
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp
index fda9d8acf..241a5da94 100644
--- a/src/core/hle/service/srv.cpp
+++ b/src/core/hle/service/srv.cpp
@@ -2,11 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/srv.h"
5#include "common/common_types.h" 6#include "common/common_types.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7
8#include "core/hle/kernel/event.h" 8#include "core/hle/kernel/event.h"
9#include "core/hle/service/srv.h"
10 9
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
12// Namespace SRV 11// Namespace SRV
diff --git a/src/core/hle/service/ssl_c.cpp b/src/core/hle/service/ssl_c.cpp
index 78ab922ca..16ec3d116 100644
--- a/src/core/hle/service/ssl_c.cpp
+++ b/src/core/hle/service/ssl_c.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/ssl_c.h"
5#include <random> 6#include <random>
6
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "core/hle/service/ssl_c.h"
9 8
10//////////////////////////////////////////////////////////////////////////////////////////////////// 9////////////////////////////////////////////////////////////////////////////////////////////////////
11// Namespace SSL_C 10// Namespace SSL_C
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp
index d3c6d073e..38e15b5d0 100644
--- a/src/core/hle/service/y2r_u.cpp
+++ b/src/core/hle/service/y2r_u.cpp
@@ -2,15 +2,13 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/service/y2r_u.h"
5#include <cstring> 6#include <cstring>
6
7#include "common/common_funcs.h" 7#include "common/common_funcs.h"
8#include "common/common_types.h" 8#include "common/common_types.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10
11#include "core/hle/kernel/event.h" 10#include "core/hle/kernel/event.h"
12#include "core/hle/kernel/kernel.h" 11#include "core/hle/kernel/kernel.h"
13#include "core/hle/service/y2r_u.h"
14#include "core/hw/y2r.h" 12#include "core/hw/y2r.h"
15 13
16//////////////////////////////////////////////////////////////////////////////////////////////////// 14////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/service/y2r_u.h b/src/core/hle/service/y2r_u.h
index 95fa2fdb7..1b47b5322 100644
--- a/src/core/hle/service/y2r_u.h
+++ b/src/core/hle/service/y2r_u.h
@@ -6,9 +6,7 @@
6 6
7#include <array> 7#include <array>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "core/hle/result.h" 10#include "core/hle/result.h"
13#include "core/hle/service/service.h" 11#include "core/hle/service/service.h"
14 12
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp
index 453fcf7ec..74a9031c5 100644
--- a/src/core/hle/shared_page.cpp
+++ b/src/core/hle/shared_page.cpp
@@ -2,12 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hle/shared_page.h"
5#include <chrono> 6#include <chrono>
6#include <cstring> 7#include <cstring>
7#include <ctime> 8#include <ctime>
8
9#include "core/core_timing.h" 9#include "core/core_timing.h"
10#include "core/hle/shared_page.h"
11 10
12//////////////////////////////////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////////////////////////////////
13 12
diff --git a/src/core/hle/shared_page.h b/src/core/hle/shared_page.h
index b3b10be31..106e47efc 100644
--- a/src/core/hle/shared_page.h
+++ b/src/core/hle/shared_page.h
@@ -13,7 +13,6 @@
13#include "common/common_funcs.h" 13#include "common/common_funcs.h"
14#include "common/common_types.h" 14#include "common/common_types.h"
15#include "common/swap.h" 15#include "common/swap.h"
16
17#include "core/memory.h" 16#include "core/memory.h"
18 17
19//////////////////////////////////////////////////////////////////////////////////////////////////// 18////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 9d0a9c54c..02b397eba 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -3,16 +3,14 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <map> 5#include <map>
6
7#include "common/logging/log.h" 6#include "common/logging/log.h"
8#include "common/microprofile.h" 7#include "common/microprofile.h"
9#include "common/scope_exit.h" 8#include "common/scope_exit.h"
10#include "common/string_util.h" 9#include "common/string_util.h"
11#include "common/symbols.h" 10#include "common/symbols.h"
12
13#include "core/arm/arm_interface.h" 11#include "core/arm/arm_interface.h"
14#include "core/core_timing.h" 12#include "core/core_timing.h"
15 13#include "core/hle/function_wrappers.h"
16#include "core/hle/kernel/address_arbiter.h" 14#include "core/hle/kernel/address_arbiter.h"
17#include "core/hle/kernel/client_port.h" 15#include "core/hle/kernel/client_port.h"
18#include "core/hle/kernel/event.h" 16#include "core/hle/kernel/event.h"
@@ -26,8 +24,6 @@
26#include "core/hle/kernel/thread.h" 24#include "core/hle/kernel/thread.h"
27#include "core/hle/kernel/timer.h" 25#include "core/hle/kernel/timer.h"
28#include "core/hle/kernel/vm_manager.h" 26#include "core/hle/kernel/vm_manager.h"
29
30#include "core/hle/function_wrappers.h"
31#include "core/hle/result.h" 27#include "core/hle/result.h"
32#include "core/hle/service/service.h" 28#include "core/hle/service/service.h"
33 29
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index bf2c066f4..776c8fef7 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -2,36 +2,29 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hw/gpu.h"
5#include <cstring> 6#include <cstring>
6#include <numeric> 7#include <numeric>
7#include <type_traits> 8#include <type_traits>
8
9#include "common/color.h" 9#include "common/color.h"
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/microprofile.h" 12#include "common/microprofile.h"
13#include "common/vector_math.h" 13#include "common/vector_math.h"
14
15#include "core/core_timing.h" 14#include "core/core_timing.h"
16#include "core/memory.h"
17#include "core/settings.h"
18
19#include "core/hle/service/gsp_gpu.h" 15#include "core/hle/service/gsp_gpu.h"
20#include "core/hle/service/hid/hid.h" 16#include "core/hle/service/hid/hid.h"
21
22#include "core/hw/gpu.h"
23#include "core/hw/hw.h" 17#include "core/hw/hw.h"
24 18#include "core/memory.h"
19#include "core/settings.h"
25#include "core/tracer/recorder.h" 20#include "core/tracer/recorder.h"
26
27#include "video_core/command_processor.h" 21#include "video_core/command_processor.h"
22#include "video_core/debug_utils/debug_utils.h"
28#include "video_core/rasterizer_interface.h" 23#include "video_core/rasterizer_interface.h"
29#include "video_core/renderer_base.h" 24#include "video_core/renderer_base.h"
30#include "video_core/utils.h" 25#include "video_core/utils.h"
31#include "video_core/video_core.h" 26#include "video_core/video_core.h"
32 27
33#include "video_core/debug_utils/debug_utils.h"
34
35namespace GPU { 28namespace GPU {
36 29
37Regs g_regs; 30Regs g_regs;
diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.h
index 077b6255f..32ddc5697 100644
--- a/src/core/hw/gpu.h
+++ b/src/core/hw/gpu.h
@@ -6,7 +6,6 @@
6 6
7#include <cstddef> 7#include <cstddef>
8#include <type_traits> 8#include <type_traits>
9
10#include "common/assert.h" 9#include "common/assert.h"
11#include "common/bit_field.h" 10#include "common/bit_field.h"
12#include "common/common_funcs.h" 11#include "common/common_funcs.h"
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp
index 71f44cbc4..0f84d5adb 100644
--- a/src/core/hw/hw.cpp
+++ b/src/core/hw/hw.cpp
@@ -2,11 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hw/hw.h"
5#include "common/common_types.h" 6#include "common/common_types.h"
6#include "common/logging/log.h" 7#include "common/logging/log.h"
7
8#include "core/hw/gpu.h" 8#include "core/hw/gpu.h"
9#include "core/hw/hw.h"
10#include "core/hw/lcd.h" 9#include "core/hw/lcd.h"
11 10
12namespace HW { 11namespace HW {
diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cpp
index 0e3aa7cfd..5231e4cc5 100644
--- a/src/core/hw/lcd.cpp
+++ b/src/core/hw/lcd.cpp
@@ -2,14 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hw/lcd.h"
5#include <cstring> 6#include <cstring>
6
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9
10#include "core/hw/hw.h" 9#include "core/hw/hw.h"
11#include "core/hw/lcd.h"
12
13#include "core/tracer/recorder.h" 10#include "core/tracer/recorder.h"
14#include "video_core/debug_utils/debug_utils.h" 11#include "video_core/debug_utils/debug_utils.h"
15 12
diff --git a/src/core/hw/lcd.h b/src/core/hw/lcd.h
index 404833165..191fd44af 100644
--- a/src/core/hw/lcd.h
+++ b/src/core/hw/lcd.h
@@ -6,7 +6,6 @@
6 6
7#include <cstddef> 7#include <cstddef>
8#include <type_traits> 8#include <type_traits>
9
10#include "common/bit_field.h" 9#include "common/bit_field.h"
11#include "common/common_funcs.h" 10#include "common/common_funcs.h"
12#include "common/common_types.h" 11#include "common/common_types.h"
diff --git a/src/core/hw/y2r.cpp b/src/core/hw/y2r.cpp
index 838b14163..0e13420d7 100644
--- a/src/core/hw/y2r.cpp
+++ b/src/core/hw/y2r.cpp
@@ -2,19 +2,17 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/hw/y2r.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7#include <cstddef> 8#include <cstddef>
8#include <memory> 9#include <memory>
9
10#include "common/assert.h" 10#include "common/assert.h"
11#include "common/color.h" 11#include "common/color.h"
12#include "common/common_types.h" 12#include "common/common_types.h"
13#include "common/math_util.h" 13#include "common/math_util.h"
14#include "common/vector_math.h" 14#include "common/vector_math.h"
15
16#include "core/hle/service/y2r_u.h" 15#include "core/hle/service/y2r_u.h"
17#include "core/hw/y2r.h"
18#include "core/memory.h" 16#include "core/memory.h"
19 17
20namespace HW { 18namespace HW {
diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cpp
index c2e87f592..212772c5d 100644
--- a/src/core/loader/3dsx.cpp
+++ b/src/core/loader/3dsx.cpp
@@ -2,16 +2,14 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/loader/3dsx.h"
5#include <algorithm> 6#include <algorithm>
6#include <vector> 7#include <vector>
7
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9
10#include "core/file_sys/archive_romfs.h" 9#include "core/file_sys/archive_romfs.h"
11#include "core/hle/kernel/process.h" 10#include "core/hle/kernel/process.h"
12#include "core/hle/kernel/resource_limit.h" 11#include "core/hle/kernel/resource_limit.h"
13#include "core/hle/service/fs/archive.h" 12#include "core/hle/service/fs/archive.h"
14#include "core/loader/3dsx.h"
15#include "core/memory.h" 13#include "core/memory.h"
16 14
17namespace Loader { 15namespace Loader {
diff --git a/src/core/loader/3dsx.h b/src/core/loader/3dsx.h
index 8d15ba555..cfcc21cc4 100644
--- a/src/core/loader/3dsx.h
+++ b/src/core/loader/3dsx.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10#include "core/loader/loader.h" 9#include "core/loader/loader.h"
11 10
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp
index 53c10a456..0f4148a59 100644
--- a/src/core/loader/elf.cpp
+++ b/src/core/loader/elf.cpp
@@ -2,18 +2,16 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/loader/elf.h"
5#include <cstring> 6#include <cstring>
6#include <memory> 7#include <memory>
7#include <string> 8#include <string>
8
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/file_util.h" 10#include "common/file_util.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/symbols.h" 12#include "common/symbols.h"
13
14#include "core/hle/kernel/process.h" 13#include "core/hle/kernel/process.h"
15#include "core/hle/kernel/resource_limit.h" 14#include "core/hle/kernel/resource_limit.h"
16#include "core/loader/elf.h"
17#include "core/memory.h" 15#include "core/memory.h"
18 16
19using Kernel::SharedPtr; 17using Kernel::SharedPtr;
diff --git a/src/core/loader/elf.h b/src/core/loader/elf.h
index 04a9b482d..584bf6e27 100644
--- a/src/core/loader/elf.h
+++ b/src/core/loader/elf.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <string> 7#include <string>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10#include "core/loader/loader.h" 9#include "core/loader/loader.h"
11 10
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index b392bf544..147bf8591 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -4,10 +4,8 @@
4 4
5#include <memory> 5#include <memory>
6#include <string> 6#include <string>
7
8#include "common/logging/log.h" 7#include "common/logging/log.h"
9#include "common/string_util.h" 8#include "common/string_util.h"
10
11#include "core/hle/kernel/process.h" 9#include "core/hle/kernel/process.h"
12#include "core/loader/3dsx.h" 10#include "core/loader/3dsx.h"
13#include "core/loader/elf.h" 11#include "core/loader/elf.h"
diff --git a/src/core/loader/loader.h b/src/core/loader/loader.h
index fdfee835c..9652d7ac5 100644
--- a/src/core/loader/loader.h
+++ b/src/core/loader/loader.h
@@ -9,7 +9,6 @@
9#include <memory> 9#include <memory>
10#include <string> 10#include <string>
11#include <vector> 11#include <vector>
12
13#include "common/common_types.h" 12#include "common/common_types.h"
14#include "common/file_util.h" 13#include "common/file_util.h"
15 14
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp
index 5b996d671..64c8fef07 100644
--- a/src/core/loader/ncch.cpp
+++ b/src/core/loader/ncch.cpp
@@ -2,19 +2,17 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/loader/ncch.h"
5#include <algorithm> 6#include <algorithm>
6#include <cstring> 7#include <cstring>
7#include <memory> 8#include <memory>
8
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10#include "common/string_util.h" 10#include "common/string_util.h"
11#include "common/swap.h" 11#include "common/swap.h"
12
13#include "core/file_sys/archive_romfs.h" 12#include "core/file_sys/archive_romfs.h"
14#include "core/hle/kernel/process.h" 13#include "core/hle/kernel/process.h"
15#include "core/hle/kernel/resource_limit.h" 14#include "core/hle/kernel/resource_limit.h"
16#include "core/hle/service/fs/archive.h" 15#include "core/hle/service/fs/archive.h"
17#include "core/loader/ncch.h"
18#include "core/memory.h" 16#include "core/memory.h"
19 17
20//////////////////////////////////////////////////////////////////////////////////////////////////// 18////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.h
index f53f8100e..04350d006 100644
--- a/src/core/loader/ncch.h
+++ b/src/core/loader/ncch.h
@@ -5,11 +5,9 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include "common/bit_field.h" 8#include "common/bit_field.h"
10#include "common/common_types.h" 9#include "common/common_types.h"
11#include "common/swap.h" 10#include "common/swap.h"
12
13#include "core/loader/loader.h" 11#include "core/loader/loader.h"
14 12
15//////////////////////////////////////////////////////////////////////////////////////////////////// 13////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/loader/smdh.cpp b/src/core/loader/smdh.cpp
index 2d014054a..7c875131f 100644
--- a/src/core/loader/smdh.cpp
+++ b/src/core/loader/smdh.cpp
@@ -2,14 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/loader/smdh.h"
5#include <cstring> 6#include <cstring>
6#include <vector> 7#include <vector>
7
8#include "common/common_types.h" 8#include "common/common_types.h"
9
10#include "core/loader/loader.h" 9#include "core/loader/loader.h"
11#include "core/loader/smdh.h"
12
13#include "video_core/utils.h" 10#include "video_core/utils.h"
14 11
15namespace Loader { 12namespace Loader {
diff --git a/src/core/loader/smdh.h b/src/core/loader/smdh.h
index ab665ea82..ac7726c8f 100644
--- a/src/core/loader/smdh.h
+++ b/src/core/loader/smdh.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <vector> 8#include <vector>
9
10#include "common/common_funcs.h" 9#include "common/common_funcs.h"
11#include "common/common_types.h" 10#include "common/common_types.h"
12#include "common/swap.h" 11#include "common/swap.h"
diff --git a/src/core/memory.cpp b/src/core/memory.cpp
index 4de510fe5..c702fa311 100644
--- a/src/core/memory.cpp
+++ b/src/core/memory.cpp
@@ -2,19 +2,16 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/memory.h"
5#include <array> 6#include <array>
6#include <cstring> 7#include <cstring>
7
8#include "common/assert.h" 8#include "common/assert.h"
9#include "common/common_types.h" 9#include "common/common_types.h"
10#include "common/logging/log.h" 10#include "common/logging/log.h"
11#include "common/swap.h" 11#include "common/swap.h"
12
13#include "core/hle/kernel/process.h" 12#include "core/hle/kernel/process.h"
14#include "core/memory.h"
15#include "core/memory_setup.h" 13#include "core/memory_setup.h"
16#include "core/mmio.h" 14#include "core/mmio.h"
17
18#include "video_core/renderer_base.h" 15#include "video_core/renderer_base.h"
19#include "video_core/video_core.h" 16#include "video_core/video_core.h"
20 17
diff --git a/src/core/memory.h b/src/core/memory.h
index 7d60ccdf1..8fd3080ff 100644
--- a/src/core/memory.h
+++ b/src/core/memory.h
@@ -6,7 +6,6 @@
6 6
7#include <cstddef> 7#include <cstddef>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace Memory { 11namespace Memory {
diff --git a/src/core/memory_setup.h b/src/core/memory_setup.h
index 23c36d019..3fdf3a87d 100644
--- a/src/core/memory_setup.h
+++ b/src/core/memory_setup.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/mmio.h" 8#include "core/mmio.h"
10 9
11namespace Memory { 10namespace Memory {
diff --git a/src/core/mmio.h b/src/core/mmio.h
index 9aa59212b..f45126da8 100644
--- a/src/core/mmio.h
+++ b/src/core/mmio.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10 9
11namespace Memory { 10namespace Memory {
diff --git a/src/core/settings.cpp b/src/core/settings.cpp
index 09194fe1f..f2d1b5e74 100644
--- a/src/core/settings.cpp
+++ b/src/core/settings.cpp
@@ -3,11 +3,8 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "settings.h" 5#include "settings.h"
6
7#include "audio_core/audio_core.h" 6#include "audio_core/audio_core.h"
8
9#include "core/gdbstub/gdbstub.h" 7#include "core/gdbstub/gdbstub.h"
10
11#include "video_core/video_core.h" 8#include "video_core/video_core.h"
12 9
13namespace Settings { 10namespace Settings {
diff --git a/src/core/settings.h b/src/core/settings.h
index adb2fd538..5a64f8018 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -6,7 +6,6 @@
6 6
7#include <array> 7#include <array>
8#include <string> 8#include <string>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace Settings { 11namespace Settings {
diff --git a/src/core/system.cpp b/src/core/system.cpp
index f2bf648bd..ef190203c 100644
--- a/src/core/system.cpp
+++ b/src/core/system.cpp
@@ -2,8 +2,8 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "core/system.h"
5#include "audio_core/audio_core.h" 6#include "audio_core/audio_core.h"
6
7#include "core/core.h" 7#include "core/core.h"
8#include "core/core_timing.h" 8#include "core/core_timing.h"
9#include "core/gdbstub/gdbstub.h" 9#include "core/gdbstub/gdbstub.h"
@@ -11,8 +11,6 @@
11#include "core/hle/kernel/kernel.h" 11#include "core/hle/kernel/kernel.h"
12#include "core/hle/kernel/memory.h" 12#include "core/hle/kernel/memory.h"
13#include "core/hw/hw.h" 13#include "core/hw/hw.h"
14#include "core/system.h"
15
16#include "video_core/video_core.h" 14#include "video_core/video_core.h"
17 15
18namespace System { 16namespace System {
diff --git a/src/core/tracer/recorder.cpp b/src/core/tracer/recorder.cpp
index 11a289b2c..ba4362484 100644
--- a/src/core/tracer/recorder.cpp
+++ b/src/core/tracer/recorder.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "recorder.h"
5#include <cstring> 6#include <cstring>
6
7#include "common/assert.h" 7#include "common/assert.h"
8#include "common/file_util.h" 8#include "common/file_util.h"
9#include "common/logging/log.h" 9#include "common/logging/log.h"
10 10
11#include "recorder.h"
12
13namespace CiTrace { 11namespace CiTrace {
14 12
15Recorder::Recorder(const InitialState& initial_state) : initial_state(initial_state) {} 13Recorder::Recorder(const InitialState& initial_state) : initial_state(initial_state) {}
diff --git a/src/core/tracer/recorder.h b/src/core/tracer/recorder.h
index 6f5354f84..aea363b95 100644
--- a/src/core/tracer/recorder.h
+++ b/src/core/tracer/recorder.h
@@ -7,12 +7,9 @@
7#include <string> 7#include <string>
8#include <unordered_map> 8#include <unordered_map>
9#include <vector> 9#include <vector>
10
11#include <boost/crc.hpp> 10#include <boost/crc.hpp>
12
13#include "common/common_types.h"
14
15#include "citrace.h" 11#include "citrace.h"
12#include "common/common_types.h"
16 13
17namespace CiTrace { 14namespace CiTrace {
18 15
diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cpp
index 82178d249..5aad47418 100644
--- a/src/video_core/clipper.cpp
+++ b/src/video_core/clipper.cpp
@@ -2,19 +2,16 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/clipper.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7#include <cstddef> 8#include <cstddef>
8
9#include <boost/container/static_vector.hpp> 9#include <boost/container/static_vector.hpp>
10#include <boost/container/vector.hpp> 10#include <boost/container/vector.hpp>
11
12#include "common/bit_field.h" 11#include "common/bit_field.h"
13#include "common/common_types.h" 12#include "common/common_types.h"
14#include "common/logging/log.h" 13#include "common/logging/log.h"
15#include "common/vector_math.h" 14#include "common/vector_math.h"
16
17#include "video_core/clipper.h"
18#include "video_core/pica.h" 15#include "video_core/pica.h"
19#include "video_core/pica_state.h" 16#include "video_core/pica_state.h"
20#include "video_core/pica_types.h" 17#include "video_core/pica_types.h"
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp
index 04a4ee3a2..5c74b68e9 100644
--- a/src/video_core/command_processor.cpp
+++ b/src/video_core/command_processor.cpp
@@ -2,22 +2,19 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/command_processor.h"
5#include <array> 6#include <array>
6#include <cstddef> 7#include <cstddef>
7#include <memory> 8#include <memory>
8#include <utility> 9#include <utility>
9
10#include "common/assert.h" 10#include "common/assert.h"
11#include "common/logging/log.h" 11#include "common/logging/log.h"
12#include "common/microprofile.h" 12#include "common/microprofile.h"
13#include "common/vector_math.h" 13#include "common/vector_math.h"
14
15#include "core/hle/service/gsp_gpu.h" 14#include "core/hle/service/gsp_gpu.h"
16#include "core/hw/gpu.h" 15#include "core/hw/gpu.h"
17#include "core/memory.h" 16#include "core/memory.h"
18#include "core/tracer/recorder.h" 17#include "core/tracer/recorder.h"
19
20#include "video_core/command_processor.h"
21#include "video_core/debug_utils/debug_utils.h" 18#include "video_core/debug_utils/debug_utils.h"
22#include "video_core/pica.h" 19#include "video_core/pica.h"
23#include "video_core/pica_state.h" 20#include "video_core/pica_state.h"
diff --git a/src/video_core/command_processor.h b/src/video_core/command_processor.h
index b8dad8e7b..62ad2d3f3 100644
--- a/src/video_core/command_processor.h
+++ b/src/video_core/command_processor.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <type_traits> 7#include <type_traits>
8
9#include "common/bit_field.h" 8#include "common/bit_field.h"
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 194e5833c..8806464d9 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -20,7 +20,6 @@
20#include <nihstro/bit_field.h> 20#include <nihstro/bit_field.h>
21#include <nihstro/float24.h> 21#include <nihstro/float24.h>
22#include <nihstro/shader_binary.h> 22#include <nihstro/shader_binary.h>
23
24#include "common/assert.h" 23#include "common/assert.h"
25#include "common/bit_field.h" 24#include "common/bit_field.h"
26#include "common/color.h" 25#include "common/color.h"
@@ -29,7 +28,6 @@
29#include "common/logging/log.h" 28#include "common/logging/log.h"
30#include "common/math_util.h" 29#include "common/math_util.h"
31#include "common/vector_math.h" 30#include "common/vector_math.h"
32
33#include "video_core/debug_utils/debug_utils.h" 31#include "video_core/debug_utils/debug_utils.h"
34#include "video_core/pica.h" 32#include "video_core/pica.h"
35#include "video_core/pica_state.h" 33#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.h
index fe3ed247d..189c93abb 100644
--- a/src/video_core/debug_utils/debug_utils.h
+++ b/src/video_core/debug_utils/debug_utils.h
@@ -15,10 +15,8 @@
15#include <string> 15#include <string>
16#include <utility> 16#include <utility>
17#include <vector> 17#include <vector>
18
19#include "common/common_types.h" 18#include "common/common_types.h"
20#include "common/vector_math.h" 19#include "common/vector_math.h"
21
22#include "video_core/pica.h" 20#include "video_core/pica.h"
23 21
24namespace CiTrace { 22namespace CiTrace {
diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h
index aea391619..3c6636d66 100644
--- a/src/video_core/gpu_debugger.h
+++ b/src/video_core/gpu_debugger.h
@@ -7,7 +7,6 @@
7#include <algorithm> 7#include <algorithm>
8#include <functional> 8#include <functional>
9#include <vector> 9#include <vector>
10
11#include "core/hle/service/gsp_gpu.h" 10#include "core/hle/service/gsp_gpu.h"
12 11
13class GraphicsDebugger { 12class GraphicsDebugger {
diff --git a/src/video_core/pica.cpp b/src/video_core/pica.cpp
index ffd13e717..771e83fe7 100644
--- a/src/video_core/pica.cpp
+++ b/src/video_core/pica.cpp
@@ -2,12 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/pica.h"
5#include <cstring> 6#include <cstring>
6#include <iterator> 7#include <iterator>
7#include <unordered_map> 8#include <unordered_map>
8#include <utility> 9#include <utility>
9
10#include "video_core/pica.h"
11#include "video_core/pica_state.h" 10#include "video_core/pica_state.h"
12#include "video_core/primitive_assembly.h" 11#include "video_core/primitive_assembly.h"
13#include "video_core/shader/shader.h" 12#include "video_core/shader/shader.h"
diff --git a/src/video_core/pica_state.h b/src/video_core/pica_state.h
index 2dbd6413f..e4f2e6d5d 100644
--- a/src/video_core/pica_state.h
+++ b/src/video_core/pica_state.h
@@ -5,10 +5,8 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8
9#include "common/bit_field.h" 8#include "common/bit_field.h"
10#include "common/common_types.h" 9#include "common/common_types.h"
11
12#include "video_core/pica.h" 10#include "video_core/pica.h"
13#include "video_core/primitive_assembly.h" 11#include "video_core/primitive_assembly.h"
14#include "video_core/shader/shader.h" 12#include "video_core/shader/shader.h"
diff --git a/src/video_core/pica_types.h b/src/video_core/pica_types.h
index 20f648b03..5d7e10066 100644
--- a/src/video_core/pica_types.h
+++ b/src/video_core/pica_types.h
@@ -6,7 +6,6 @@
6 6
7#include <cmath> 7#include <cmath>
8#include <cstring> 8#include <cstring>
9
10#include "common/common_types.h" 9#include "common/common_types.h"
11 10
12namespace Pica { 11namespace Pica {
diff --git a/src/video_core/primitive_assembly.cpp b/src/video_core/primitive_assembly.cpp
index 901cca26b..670ffb67d 100644
--- a/src/video_core/primitive_assembly.cpp
+++ b/src/video_core/primitive_assembly.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/primitive_assembly.h"
5#include "common/logging/log.h" 6#include "common/logging/log.h"
6
7#include "video_core/pica.h" 7#include "video_core/pica.h"
8#include "video_core/primitive_assembly.h"
9#include "video_core/shader/shader.h" 8#include "video_core/shader/shader.h"
10 9
11namespace Pica { 10namespace Pica {
diff --git a/src/video_core/primitive_assembly.h b/src/video_core/primitive_assembly.h
index 2ad15a858..0384d5984 100644
--- a/src/video_core/primitive_assembly.h
+++ b/src/video_core/primitive_assembly.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include <functional> 7#include <functional>
8
9#include "video_core/pica.h" 8#include "video_core/pica.h"
10 9
11namespace Pica { 10namespace Pica {
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index f815d6cf0..c179573d6 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -2,10 +2,10 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/rasterizer.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7#include <cmath> 8#include <cmath>
8
9#include "common/assert.h" 9#include "common/assert.h"
10#include "common/bit_field.h" 10#include "common/bit_field.h"
11#include "common/color.h" 11#include "common/color.h"
@@ -14,15 +14,12 @@
14#include "common/math_util.h" 14#include "common/math_util.h"
15#include "common/microprofile.h" 15#include "common/microprofile.h"
16#include "common/vector_math.h" 16#include "common/vector_math.h"
17
18#include "core/hw/gpu.h" 17#include "core/hw/gpu.h"
19#include "core/memory.h" 18#include "core/memory.h"
20
21#include "video_core/debug_utils/debug_utils.h" 19#include "video_core/debug_utils/debug_utils.h"
22#include "video_core/pica.h" 20#include "video_core/pica.h"
23#include "video_core/pica_state.h" 21#include "video_core/pica_state.h"
24#include "video_core/pica_types.h" 22#include "video_core/pica_types.h"
25#include "video_core/rasterizer.h"
26#include "video_core/shader/shader.h" 23#include "video_core/shader/shader.h"
27#include "video_core/utils.h" 24#include "video_core/utils.h"
28 25
diff --git a/src/video_core/rasterizer_interface.h b/src/video_core/rasterizer_interface.h
index c7bd29f12..71df233b5 100644
--- a/src/video_core/rasterizer_interface.h
+++ b/src/video_core/rasterizer_interface.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "core/hw/gpu.h" 8#include "core/hw/gpu.h"
10 9
11struct ScreenInfo; 10struct ScreenInfo;
diff --git a/src/video_core/renderer_base.cpp b/src/video_core/renderer_base.cpp
index 090683276..91347dea8 100644
--- a/src/video_core/renderer_base.cpp
+++ b/src/video_core/renderer_base.cpp
@@ -2,10 +2,9 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_base.h"
5#include <atomic> 6#include <atomic>
6#include <memory> 7#include <memory>
7
8#include "video_core/renderer_base.h"
9#include "video_core/renderer_opengl/gl_rasterizer.h" 8#include "video_core/renderer_opengl/gl_rasterizer.h"
10#include "video_core/swrasterizer.h" 9#include "video_core/swrasterizer.h"
11#include "video_core/video_core.h" 10#include "video_core/video_core.h"
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index daacdb167..589aca857 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -5,9 +5,7 @@
5#pragma once 5#pragma once
6 6
7#include <memory> 7#include <memory>
8
9#include "common/common_types.h" 8#include "common/common_types.h"
10
11#include "video_core/rasterizer_interface.h" 9#include "video_core/rasterizer_interface.h"
12 10
13class EmuWindow; 11class EmuWindow;
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 37977464d..45a4dc97d 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -2,24 +2,20 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_opengl/gl_rasterizer.h"
5#include <memory> 6#include <memory>
6#include <string> 7#include <string>
7#include <tuple> 8#include <tuple>
8#include <utility> 9#include <utility>
9
10#include <glad/glad.h> 10#include <glad/glad.h>
11
12#include "common/assert.h" 11#include "common/assert.h"
13#include "common/color.h" 12#include "common/color.h"
14#include "common/logging/log.h" 13#include "common/logging/log.h"
15#include "common/math_util.h" 14#include "common/math_util.h"
16#include "common/vector_math.h" 15#include "common/vector_math.h"
17
18#include "core/hw/gpu.h" 16#include "core/hw/gpu.h"
19
20#include "video_core/pica.h" 17#include "video_core/pica.h"
21#include "video_core/pica_state.h" 18#include "video_core/pica_state.h"
22#include "video_core/renderer_opengl/gl_rasterizer.h"
23#include "video_core/renderer_opengl/gl_shader_gen.h" 19#include "video_core/renderer_opengl/gl_shader_gen.h"
24#include "video_core/renderer_opengl/gl_shader_util.h" 20#include "video_core/renderer_opengl/gl_shader_util.h"
25#include "video_core/renderer_opengl/pica_to_gl.h" 21#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.h
index 60d70539c..24fefed1b 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.h
+++ b/src/video_core/renderer_opengl/gl_rasterizer.h
@@ -10,16 +10,12 @@
10#include <memory> 10#include <memory>
11#include <unordered_map> 11#include <unordered_map>
12#include <vector> 12#include <vector>
13
14#include <glad/glad.h> 13#include <glad/glad.h>
15
16#include "common/bit_field.h" 14#include "common/bit_field.h"
17#include "common/common_types.h" 15#include "common/common_types.h"
18#include "common/hash.h" 16#include "common/hash.h"
19#include "common/vector_math.h" 17#include "common/vector_math.h"
20
21#include "core/hw/gpu.h" 18#include "core/hw/gpu.h"
22
23#include "video_core/pica.h" 19#include "video_core/pica.h"
24#include "video_core/pica_state.h" 20#include "video_core/pica_state.h"
25#include "video_core/pica_types.h" 21#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.cpp
index ec3300ca6..ce9a193bd 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_opengl/gl_rasterizer_cache.h"
5#include <algorithm> 6#include <algorithm>
6#include <atomic> 7#include <atomic>
7#include <cstring> 8#include <cstring>
@@ -9,21 +10,16 @@
9#include <unordered_set> 10#include <unordered_set>
10#include <utility> 11#include <utility>
11#include <vector> 12#include <vector>
12
13#include <glad/glad.h> 13#include <glad/glad.h>
14
15#include "common/bit_field.h" 14#include "common/bit_field.h"
16#include "common/emu_window.h" 15#include "common/emu_window.h"
17#include "common/logging/log.h" 16#include "common/logging/log.h"
18#include "common/math_util.h" 17#include "common/math_util.h"
19#include "common/microprofile.h" 18#include "common/microprofile.h"
20#include "common/vector_math.h" 19#include "common/vector_math.h"
21
22#include "core/memory.h" 20#include "core/memory.h"
23
24#include "video_core/debug_utils/debug_utils.h" 21#include "video_core/debug_utils/debug_utils.h"
25#include "video_core/pica_state.h" 22#include "video_core/pica_state.h"
26#include "video_core/renderer_opengl/gl_rasterizer_cache.h"
27#include "video_core/renderer_opengl/gl_state.h" 23#include "video_core/renderer_opengl/gl_state.h"
28#include "video_core/utils.h" 24#include "video_core/utils.h"
29#include "video_core/video_core.h" 25#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.h
index b2272bda8..849530d86 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 @@
8#include <memory> 8#include <memory>
9#include <set> 9#include <set>
10#include <tuple> 10#include <tuple>
11
12#include <boost/icl/interval_map.hpp> 11#include <boost/icl/interval_map.hpp>
13#include <glad/glad.h> 12#include <glad/glad.h>
14
15#include "common/assert.h" 13#include "common/assert.h"
16#include "common/common_funcs.h" 14#include "common/common_funcs.h"
17#include "common/common_types.h" 15#include "common/common_types.h"
18
19#include "core/hw/gpu.h" 16#include "core/hw/gpu.h"
20
21#include "video_core/pica.h" 17#include "video_core/pica.h"
22#include "video_core/renderer_opengl/gl_resource_manager.h" 18#include "video_core/renderer_opengl/gl_resource_manager.h"
23 19
diff --git a/src/video_core/renderer_opengl/gl_resource_manager.h b/src/video_core/renderer_opengl/gl_resource_manager.h
index 2f40eb646..13301ec9f 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 @@
5#pragma once 5#pragma once
6 6
7#include <utility> 7#include <utility>
8
9#include <glad/glad.h> 8#include <glad/glad.h>
10
11#include "common/common_types.h" 9#include "common/common_types.h"
12
13#include "video_core/renderer_opengl/gl_shader_util.h" 10#include "video_core/renderer_opengl/gl_shader_util.h"
14#include "video_core/renderer_opengl/gl_state.h" 11#include "video_core/renderer_opengl/gl_state.h"
15 12
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp
index 9392c67b8..52cee2ee2 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_opengl/gl_shader_gen.h"
5#include <array> 6#include <array>
6#include <cstddef> 7#include <cstddef>
7
8#include "common/assert.h" 8#include "common/assert.h"
9#include "common/bit_field.h" 9#include "common/bit_field.h"
10#include "common/logging/log.h" 10#include "common/logging/log.h"
11
12#include "video_core/pica.h" 11#include "video_core/pica.h"
13#include "video_core/renderer_opengl/gl_rasterizer.h" 12#include "video_core/renderer_opengl/gl_rasterizer.h"
14#include "video_core/renderer_opengl/gl_shader_gen.h"
15#include "video_core/renderer_opengl/gl_shader_util.h" 13#include "video_core/renderer_opengl/gl_shader_util.h"
16 14
17using Pica::Regs; 15using Pica::Regs;
diff --git a/src/video_core/renderer_opengl/gl_shader_util.cpp b/src/video_core/renderer_opengl/gl_shader_util.cpp
index 7d90ec6a3..c8ba3b92d 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 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_opengl/gl_shader_util.h"
5#include <vector> 6#include <vector>
6
7#include <glad/glad.h> 7#include <glad/glad.h>
8
9#include "common/logging/log.h" 8#include "common/logging/log.h"
10#include "video_core/renderer_opengl/gl_shader_util.h"
11 9
12namespace GLShader { 10namespace GLShader {
13 11
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index a97269d44..96af8469d 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -2,13 +2,11 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_opengl/gl_state.h"
5#include <glad/glad.h> 6#include <glad/glad.h>
6
7#include "common/common_funcs.h" 7#include "common/common_funcs.h"
8#include "common/logging/log.h" 8#include "common/logging/log.h"
9 9
10#include "video_core/renderer_opengl/gl_state.h"
11
12OpenGLState OpenGLState::cur_state; 10OpenGLState OpenGLState::cur_state;
13 11
14OpenGLState::OpenGLState() { 12OpenGLState::OpenGLState() {
diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h
index 415358b6c..cc49867c8 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 @@
6 6
7#include <array> 7#include <array>
8#include <cstddef> 8#include <cstddef>
9
10#include <glad/glad.h> 9#include <glad/glad.h>
11
12#include "common/assert.h" 10#include "common/assert.h"
13#include "common/bit_field.h" 11#include "common/bit_field.h"
14#include "common/common_funcs.h" 12#include "common/common_funcs.h"
15#include "common/common_types.h" 13#include "common/common_types.h"
16#include "common/logging/log.h" 14#include "common/logging/log.h"
17
18#include "video_core/pica.h" 15#include "video_core/pica.h"
19 16
20using GLvec2 = std::array<GLfloat, 2>; 17using GLvec2 = std::array<GLfloat, 2>;
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index a1d08e04d..962785bdd 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -2,30 +2,26 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/renderer_opengl/renderer_opengl.h"
5#include <algorithm> 6#include <algorithm>
6#include <cstddef> 7#include <cstddef>
7#include <cstdlib> 8#include <cstdlib>
8#include <memory> 9#include <memory>
9
10#include <glad/glad.h> 10#include <glad/glad.h>
11
12#include "common/assert.h" 11#include "common/assert.h"
13#include "common/bit_field.h" 12#include "common/bit_field.h"
14#include "common/emu_window.h" 13#include "common/emu_window.h"
15#include "common/logging/log.h" 14#include "common/logging/log.h"
16#include "common/profiler_reporting.h" 15#include "common/profiler_reporting.h"
17#include "common/synchronized_wrapper.h" 16#include "common/synchronized_wrapper.h"
18
19#include "core/hw/gpu.h" 17#include "core/hw/gpu.h"
20#include "core/hw/hw.h" 18#include "core/hw/hw.h"
21#include "core/hw/lcd.h" 19#include "core/hw/lcd.h"
22#include "core/memory.h" 20#include "core/memory.h"
23#include "core/settings.h" 21#include "core/settings.h"
24#include "core/tracer/recorder.h" 22#include "core/tracer/recorder.h"
25
26#include "video_core/debug_utils/debug_utils.h" 23#include "video_core/debug_utils/debug_utils.h"
27#include "video_core/rasterizer_interface.h" 24#include "video_core/rasterizer_interface.h"
28#include "video_core/renderer_opengl/renderer_opengl.h"
29#include "video_core/video_core.h" 25#include "video_core/video_core.h"
30 26
31static const char vertex_shader[] = R"( 27static const char vertex_shader[] = R"(
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h
index 762b790c1..87c556cff 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.h
+++ b/src/video_core/renderer_opengl/renderer_opengl.h
@@ -5,14 +5,10 @@
5#pragma once 5#pragma once
6 6
7#include <array> 7#include <array>
8
9#include <glad/glad.h> 8#include <glad/glad.h>
10
11#include "common/common_types.h" 9#include "common/common_types.h"
12#include "common/math_util.h" 10#include "common/math_util.h"
13
14#include "core/hw/gpu.h" 11#include "core/hw/gpu.h"
15
16#include "video_core/renderer_base.h" 12#include "video_core/renderer_base.h"
17#include "video_core/renderer_opengl/gl_resource_manager.h" 13#include "video_core/renderer_opengl/gl_resource_manager.h"
18#include "video_core/renderer_opengl/gl_state.h" 14#include "video_core/renderer_opengl/gl_state.h"
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp
index c38bdcc3c..53e91df03 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -2,28 +2,23 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/shader/shader.h"
5#include <atomic> 6#include <atomic>
6#include <cmath> 7#include <cmath>
7#include <cstring> 8#include <cstring>
8#include <unordered_map> 9#include <unordered_map>
9#include <utility> 10#include <utility>
10
11#include <boost/range/algorithm/fill.hpp> 11#include <boost/range/algorithm/fill.hpp>
12
13#include "common/bit_field.h" 12#include "common/bit_field.h"
14#include "common/hash.h" 13#include "common/hash.h"
15#include "common/logging/log.h" 14#include "common/logging/log.h"
16#include "common/microprofile.h" 15#include "common/microprofile.h"
17
18#include "video_core/pica.h" 16#include "video_core/pica.h"
19#include "video_core/pica_state.h" 17#include "video_core/pica_state.h"
20#include "video_core/shader/shader.h"
21#include "video_core/shader/shader_interpreter.h" 18#include "video_core/shader/shader_interpreter.h"
22
23#ifdef ARCHITECTURE_x86_64 19#ifdef ARCHITECTURE_x86_64
24#include "video_core/shader/shader_jit_x64.h" 20#include "video_core/shader/shader_jit_x64.h"
25#endif // ARCHITECTURE_x86_64 21#endif // ARCHITECTURE_x86_64
26
27#include "video_core/video_core.h" 22#include "video_core/video_core.h"
28 23
29namespace Pica { 24namespace Pica {
diff --git a/src/video_core/shader/shader.h b/src/video_core/shader/shader.h
index 79c716b6e..8858d67f8 100644
--- a/src/video_core/shader/shader.h
+++ b/src/video_core/shader/shader.h
@@ -9,16 +9,12 @@
9#include <memory> 9#include <memory>
10#include <type_traits> 10#include <type_traits>
11#include <vector> 11#include <vector>
12
13#include <boost/container/static_vector.hpp> 12#include <boost/container/static_vector.hpp>
14
15#include <nihstro/shader_bytecode.h> 13#include <nihstro/shader_bytecode.h>
16
17#include "common/assert.h" 14#include "common/assert.h"
18#include "common/common_funcs.h" 15#include "common/common_funcs.h"
19#include "common/common_types.h" 16#include "common/common_types.h"
20#include "common/vector_math.h" 17#include "common/vector_math.h"
21
22#include "video_core/pica.h" 18#include "video_core/pica.h"
23#include "video_core/pica_types.h" 19#include "video_core/pica_types.h"
24 20
diff --git a/src/video_core/shader/shader_interpreter.cpp b/src/video_core/shader/shader_interpreter.cpp
index 41df8a2fd..5df3c4e86 100644
--- a/src/video_core/shader/shader_interpreter.cpp
+++ b/src/video_core/shader/shader_interpreter.cpp
@@ -2,21 +2,18 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/shader/shader.h"
5#include <algorithm> 6#include <algorithm>
6#include <array> 7#include <array>
7#include <cmath> 8#include <cmath>
8#include <numeric> 9#include <numeric>
9
10#include <nihstro/shader_bytecode.h> 10#include <nihstro/shader_bytecode.h>
11
12#include "common/assert.h" 11#include "common/assert.h"
13#include "common/common_types.h" 12#include "common/common_types.h"
14#include "common/logging/log.h" 13#include "common/logging/log.h"
15#include "common/vector_math.h" 14#include "common/vector_math.h"
16
17#include "video_core/pica_state.h" 15#include "video_core/pica_state.h"
18#include "video_core/pica_types.h" 16#include "video_core/pica_types.h"
19#include "video_core/shader/shader.h"
20#include "video_core/shader/shader_interpreter.h" 17#include "video_core/shader/shader_interpreter.h"
21 18
22using nihstro::OpCode; 19using nihstro::OpCode;
diff --git a/src/video_core/shader/shader_jit_x64.cpp b/src/video_core/shader/shader_jit_x64.cpp
index d1b2ce8d5..5f1323799 100644
--- a/src/video_core/shader/shader_jit_x64.cpp
+++ b/src/video_core/shader/shader_jit_x64.cpp
@@ -2,23 +2,19 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "shader.h"
5#include <algorithm> 6#include <algorithm>
6#include <cmath> 7#include <cmath>
7#include <cstdint> 8#include <cstdint>
8#include <xmmintrin.h> 9#include <xmmintrin.h>
9
10#include <nihstro/shader_bytecode.h> 10#include <nihstro/shader_bytecode.h>
11
12#include "common/assert.h" 11#include "common/assert.h"
13#include "common/logging/log.h" 12#include "common/logging/log.h"
14#include "common/vector_math.h" 13#include "common/vector_math.h"
15#include "common/x64/abi.h" 14#include "common/x64/abi.h"
16#include "common/x64/cpu_detect.h" 15#include "common/x64/cpu_detect.h"
17#include "common/x64/emitter.h" 16#include "common/x64/emitter.h"
18
19#include "shader.h"
20#include "shader_jit_x64.h" 17#include "shader_jit_x64.h"
21
22#include "video_core/pica_state.h" 18#include "video_core/pica_state.h"
23#include "video_core/pica_types.h" 19#include "video_core/pica_types.h"
24 20
diff --git a/src/video_core/shader/shader_jit_x64.h b/src/video_core/shader/shader_jit_x64.h
index 2f37ef8bf..98de5ecef 100644
--- a/src/video_core/shader/shader_jit_x64.h
+++ b/src/video_core/shader/shader_jit_x64.h
@@ -8,13 +8,10 @@
8#include <cstddef> 8#include <cstddef>
9#include <utility> 9#include <utility>
10#include <vector> 10#include <vector>
11
12#include <nihstro/shader_bytecode.h> 11#include <nihstro/shader_bytecode.h>
13
14#include "common/bit_set.h" 12#include "common/bit_set.h"
15#include "common/common_types.h" 13#include "common/common_types.h"
16#include "common/x64/emitter.h" 14#include "common/x64/emitter.h"
17
18#include "video_core/shader/shader.h" 15#include "video_core/shader/shader.h"
19 16
20using nihstro::Instruction; 17using nihstro::Instruction;
diff --git a/src/video_core/swrasterizer.h b/src/video_core/swrasterizer.h
index 12dc56bef..6d42d7409 100644
--- a/src/video_core/swrasterizer.h
+++ b/src/video_core/swrasterizer.h
@@ -5,7 +5,6 @@
5#pragma once 5#pragma once
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8
9#include "video_core/rasterizer_interface.h" 8#include "video_core/rasterizer_interface.h"
10 9
11namespace Pica { 10namespace Pica {
diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cpp
index 9dcd9d748..5704e9fea 100644
--- a/src/video_core/vertex_loader.cpp
+++ b/src/video_core/vertex_loader.cpp
@@ -1,22 +1,18 @@
1#include "video_core/vertex_loader.h"
1#include <memory> 2#include <memory>
2
3#include <boost/range/algorithm/fill.hpp> 3#include <boost/range/algorithm/fill.hpp>
4
5#include "common/alignment.h" 4#include "common/alignment.h"
6#include "common/assert.h" 5#include "common/assert.h"
7#include "common/bit_field.h" 6#include "common/bit_field.h"
8#include "common/common_types.h" 7#include "common/common_types.h"
9#include "common/logging/log.h" 8#include "common/logging/log.h"
10#include "common/vector_math.h" 9#include "common/vector_math.h"
11
12#include "core/memory.h" 10#include "core/memory.h"
13
14#include "video_core/debug_utils/debug_utils.h" 11#include "video_core/debug_utils/debug_utils.h"
15#include "video_core/pica.h" 12#include "video_core/pica.h"
16#include "video_core/pica_state.h" 13#include "video_core/pica_state.h"
17#include "video_core/pica_types.h" 14#include "video_core/pica_types.h"
18#include "video_core/shader/shader.h" 15#include "video_core/shader/shader.h"
19#include "video_core/vertex_loader.h"
20 16
21namespace Pica { 17namespace Pica {
22 18
diff --git a/src/video_core/vertex_loader.h b/src/video_core/vertex_loader.h
index 4f8d79f14..9f2098bb2 100644
--- a/src/video_core/vertex_loader.h
+++ b/src/video_core/vertex_loader.h
@@ -1,7 +1,6 @@
1#pragma once 1#pragma once
2 2
3#include <array> 3#include <array>
4
5#include "common/common_types.h" 4#include "common/common_types.h"
6#include "video_core/pica.h" 5#include "video_core/pica.h"
7 6
diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cpp
index 880f4990d..b06a88b78 100644
--- a/src/video_core/video_core.cpp
+++ b/src/video_core/video_core.cpp
@@ -2,14 +2,12 @@
2// Licensed under GPLv2 or any later version 2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "video_core/video_core.h"
5#include <memory> 6#include <memory>
6
7#include "common/logging/log.h" 7#include "common/logging/log.h"
8
9#include "video_core/pica.h" 8#include "video_core/pica.h"
10#include "video_core/renderer_base.h" 9#include "video_core/renderer_base.h"
11#include "video_core/renderer_opengl/renderer_opengl.h" 10#include "video_core/renderer_opengl/renderer_opengl.h"
12#include "video_core/video_core.h"
13 11
14//////////////////////////////////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////////////////////////////////
15// Video Core namespace 13// Video Core namespace