VERY experimental Nintendo Switch 2 emulator
C++
Common: Remove common.h
Yuri Kunde Schlesnere1fbac3ca13d
diff --git a/src/citra/citra.cpp b/src/citra/citra.cppindex 634faf76b3..1d7e7f2700 100644--- a/src/citra/citra.cpp+++ b/src/citra/citra.cpp@@ -4,7 +4,7 @@#include <thread>-#include "common/common.h"+#include "common/logging/log.h"#include "common/logging/text_formatter.h"#include "common/logging/backend.h"#include "common/logging/filter.h"diff --git a/src/citra/config.cpp b/src/citra/config.cppindex 43175d6cbe..ab564559de 100644--- a/src/citra/config.cpp+++ b/src/citra/config.cpp@@ -5,7 +5,10 @@#include <GLFW/glfw3.h>#include "citra/default_ini.h"+#include "common/file_util.h"+#include "common/logging/log.h"+#include "core/settings.h"#include "core/core.h"diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cppindex f879ee7ca7..341b48d2a8 100644--- a/src/citra/emu_window/emu_window_glfw.cpp+++ b/src/citra/emu_window/emu_window_glfw.cpp@@ -4,7 +4,7 @@#include <GLFW/glfw3.h>-#include "common/common.h"+#include "common/logging/log.h"#include "video_core/video_core.h"diff --git a/src/citra_qt/bootmanager.cpp b/src/citra_qt/bootmanager.cppindex a7f9494110..d3df289f8b 100644--- a/src/citra_qt/bootmanager.cpp+++ b/src/citra_qt/bootmanager.cpp@@ -8,7 +8,6 @@#include <QWindow>#endif-#include "common/common.h"#include "bootmanager.h"#include "main.h"diff --git a/src/citra_qt/bootmanager.h b/src/citra_qt/bootmanager.hindex 715faf2d7a..d5d74c9494 100644--- a/src/citra_qt/bootmanager.h+++ b/src/citra_qt/bootmanager.h@@ -7,7 +7,6 @@#include <QThread>#include <QGLWidget>-#include "common/common.h"#include "common/emu_window.h"#include "common/thread.h"diff --git a/src/citra_qt/debugger/disassembler.cpp b/src/citra_qt/debugger/disassembler.cppindex 08c6b49bd1..780607e822 100644--- a/src/citra_qt/debugger/disassembler.cpp+++ b/src/citra_qt/debugger/disassembler.cpp@@ -7,7 +7,6 @@#include "../bootmanager.h"#include "../hotkeys.h"-#include "common/common.h"#include "core/mem_map.h"#include "core/core.h"diff --git a/src/citra_qt/debugger/disassembler.h b/src/citra_qt/debugger/disassembler.hindex 45b0a7e081..340fb99366 100644--- a/src/citra_qt/debugger/disassembler.h+++ b/src/citra_qt/debugger/disassembler.h@@ -9,8 +9,8 @@#include "ui_disassembler.h"-#include "common/common.h"#include "common/break_points.h"+#include "common/common_types.h"class QAction;class EmuThread;diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cppindex 92348be347..1da64f6166 100644--- a/src/citra_qt/debugger/graphics_breakpoints.cpp+++ b/src/citra_qt/debugger/graphics_breakpoints.cpp@@ -8,6 +8,8 @@#include <QVBoxLayout>#include <QLabel>+#include "common/assert.h"+#include "graphics_breakpoints.h"#include "graphics_breakpoints_p.h"diff --git a/src/citra_qt/debugger/ramview.cpp b/src/citra_qt/debugger/ramview.cppindex 88570f2cdc..7149a04856 100644--- a/src/citra_qt/debugger/ramview.cpp+++ b/src/citra_qt/debugger/ramview.cpp@@ -4,8 +4,9 @@#include "ramview.h"-#include "common/common.h"#include "core/mem_map.h"++GRamView::GRamView(QWidget* parent) : QHexEdit(parent){}diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cppindex b78594fb6a..d15338f0d3 100644--- a/src/citra_qt/main.cpp+++ b/src/citra_qt/main.cpp@@ -10,7 +10,6 @@#include "qhexedit.h"#include "main.h"-#include "common/common.h"#include "common/logging/text_formatter.h"#include "common/logging/log.h"#include "common/logging/backend.h"diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txtindex daa2d59de2..9a9f1a46b9 100644--- a/src/common/CMakeLists.txt+++ b/src/common/CMakeLists.txt@@ -27,7 +27,6 @@ set(HEADERSbit_field.hbreak_points.hchunk_file.h- common.hcommon_funcs.hcommon_paths.hcommon_types.hdiff --git a/src/common/bit_field.h b/src/common/bit_field.hindex 8eab054b8b..1f3ecf8441 100644--- a/src/common/bit_field.h+++ b/src/common/bit_field.h@@ -35,7 +35,7 @@#include <limits>#include <type_traits>-#include "common/common.h"+#include "common/common_funcs.h"/** Abstract bitfield classdiff --git a/src/common/break_points.cpp b/src/common/break_points.cppindex 15055bd4ed..023a485a41 100644--- a/src/common/break_points.cpp+++ b/src/common/break_points.cpp@@ -2,7 +2,6 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"#include "common/debug_interface.h"#include "common/break_points.h"#include "common/logging/log.h"diff --git a/src/common/break_points.h b/src/common/break_points.hindex 4b26cf90da..f0a55e7b14 100644--- a/src/common/break_points.h+++ b/src/common/break_points.h@@ -7,7 +7,7 @@#include <vector>#include <string>-#include "common/common.h"+#include "common/common_types.h"class DebugInterface;diff --git a/src/common/chunk_file.h b/src/common/chunk_file.hindex 3f97d56bfd..dcd80525ef 100644--- a/src/common/chunk_file.h+++ b/src/common/chunk_file.h@@ -34,8 +34,9 @@#include <set>#include <type_traits>-#include "common/common.h"+#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"template <class T>struct LinkedListItem : public Tdiff --git a/src/common/common.h b/src/common/common.hdeleted file mode 100644index a9d3a6e6a0..0000000000--- a/src/common/common.h+++ /dev/null@@ -1,21 +0,0 @@-// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project-// Licensed under GPLv2 or any later version-// Refer to the license.txt file included.--#pragma once--// DO NOT EVER INCLUDE <windows.h> directly _or indirectly_ from this file-// since it slows down the build a lot.--#include <cstdlib>-#include <cstdio>-#include <cstring>--#include "common/assert.h"-#include "common/logging/log.h"-#include "common/common_types.h"-#include "common/common_funcs.h"-#include "common/common_paths.h"-#include "common/platform.h"--#include "swap.h"diff --git a/src/common/common_paths.h b/src/common/common_paths.hindex 440b060601..2903f2cf2f 100644--- a/src/common/common_paths.h+++ b/src/common/common_paths.h@@ -4,9 +4,6 @@#pragma once-// Make sure we pick up USER_DIR if set in config.h-#include "common/common.h"-// Directory separators, do we need this?#define DIR_SEP "/"#define DIR_SEP_CHR '/'diff --git a/src/common/concurrent_ring_buffer.h b/src/common/concurrent_ring_buffer.hindex fc18e6c860..c5889513a9 100644--- a/src/common/concurrent_ring_buffer.h+++ b/src/common/concurrent_ring_buffer.h@@ -10,7 +10,7 @@#include <mutex>#include <thread>-#include "common/common.h" // for NonCopyable+#include "common/common_types.h" // for NonCopyablenamespace Common {diff --git a/src/common/emu_window.h b/src/common/emu_window.hindex e0fc12a483..8eca6b5d5d 100644--- a/src/common/emu_window.h+++ b/src/common/emu_window.h@@ -4,11 +4,11 @@#pragma once-#include "common/common.h"-#include "common/scm_rev.h"-#include "common/string_util.h"+#include "common/common_types.h"#include "common/key_map.h"#include "common/math_util.h"+#include "common/scm_rev.h"+#include "common/string_util.h"/*** Abstraction class used to provide an interface between emulation code and the frontenddiff --git a/src/common/file_util.cpp b/src/common/file_util.cppindex 946c4261ab..7cdd1484f0 100644--- a/src/common/file_util.cpp+++ b/src/common/file_util.cpp@@ -2,9 +2,11 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.--#include "common/common.h"+#include "common/assert.h"+#include "common/common_funcs.h"+#include "common/common_paths.h"#include "common/file_util.h"+#include "common/logging/log.h"#ifdef _WIN32#include <windows.h>diff --git a/src/common/file_util.h b/src/common/file_util.hindex 86aab2e3dc..b65829291e 100644--- a/src/common/file_util.h+++ b/src/common/file_util.h@@ -11,7 +11,7 @@#include <string>#include <vector>-#include "common/common.h"+#include "common/common_types.h"#include "common/string_util.h"// User directory indices for GetUserPathdiff --git a/src/common/hash.cpp b/src/common/hash.cppindex 3e62beff41..b0b3613f60 100644--- a/src/common/hash.cpp+++ b/src/common/hash.cpp@@ -4,6 +4,7 @@#include <algorithm>+#include "common/common_funcs.h" // For rotl#include "common/hash.h"#include "common/platform.h"diff --git a/src/common/hash.h b/src/common/hash.hindex 3ac42bc442..0afaf0e37d 100644--- a/src/common/hash.h+++ b/src/common/hash.h@@ -4,7 +4,7 @@#pragma once-#include "common/common.h"+#include "common/common_types.h"u32 HashFletcher(const u8* data_u8, size_t length); // FAST. Length & 1 == 0.u32 HashAdler32(const u8* data, size_t len); // Fairly accurate, slightly slowerdiff --git a/src/common/linear_disk_cache.h b/src/common/linear_disk_cache.hindex 74ce74aba7..48529cf425 100644--- a/src/common/linear_disk_cache.h+++ b/src/common/linear_disk_cache.h@@ -4,7 +4,7 @@#pragma once-#include "common/common.h"+#include "common/common_types.h"#include <fstream>// defined in Version.cppdiff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cppindex 36c91c4f65..45be6d0a1b 100644--- a/src/common/logging/text_formatter.cpp+++ b/src/common/logging/text_formatter.cpp@@ -14,6 +14,7 @@#include "common/logging/log.h"#include "common/logging/text_formatter.h"+#include "common/common_funcs.h"#include "common/string_util.h"namespace Log {diff --git a/src/common/math_util.cpp b/src/common/math_util.cppindex a83592dd26..bcb70cae59 100644--- a/src/common/math_util.cpp+++ b/src/common/math_util.cpp@@ -2,12 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include <cstring>+#include <numeric> // Necessary on OS X, but not Linux-#include "common/common.h"+#include "common/common_types.h"#include "common/math_util.h"-#include <numeric> // Necessary on OS X, but not Linux-namespace MathUtil{diff --git a/src/common/math_util.h b/src/common/math_util.hindex 43b0e0dc3c..52f579cf73 100644--- a/src/common/math_util.h+++ b/src/common/math_util.h@@ -4,7 +4,7 @@#pragma once-#include "common/common.h"+#include "common/common_types.h"#include <algorithm>#include <type_traits>diff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cppindex 76c70701d9..f233d4a3a5 100644--- a/src/common/mem_arena.cpp+++ b/src/common/mem_arena.cpp@@ -17,12 +17,16 @@#include <string>-#include "common/memory_util.h"+#include "common/logging/log.h"#include "common/mem_arena.h"+#include "common/memory_util.h"#include "common/string_util.h"#ifndef _WIN32#include <fcntl.h>+#include <string.h>+#include <unistd.h>+#ifdef ANDROID#include <sys/ioctl.h>#include <linux/ashmem.h>diff --git a/src/common/mem_arena.h b/src/common/mem_arena.hindex 3379d2529b..d514fe58cf 100644--- a/src/common/mem_arena.h+++ b/src/common/mem_arena.h@@ -21,7 +21,7 @@#include <windows.h>#endif-#include "common/common.h"+#include "common/common_types.h"// This class lets you create a block of anonymous RAM, and then arbitrarily map views into it.// Multiple views can mirror the same section of the block, which makes it very convient for emulatingdiff --git a/src/common/memory_util.cpp b/src/common/memory_util.cppindex 7e69d31cb6..2087a1184c 100644--- a/src/common/memory_util.cpp+++ b/src/common/memory_util.cpp@@ -3,7 +3,8 @@// Refer to the license.txt file included.-#include "common/common.h"+#include "common/common_funcs.h"+#include "common/logging/log.h"#include "common/memory_util.h"#include "common/string_util.h"diff --git a/src/common/misc.cpp b/src/common/misc.cppindex e33055d10c..53cacf37cf 100644--- a/src/common/misc.cpp+++ b/src/common/misc.cpp@@ -2,10 +2,12 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/common_funcs.h"#ifdef _WIN32#include <windows.h>+#else+#include <string.h>#endif// Neither Android nor OS X support TLSdiff --git a/src/common/string_util.cpp b/src/common/string_util.cppindex 3264dd51a5..6563611fdc 100644--- a/src/common/string_util.cpp+++ b/src/common/string_util.cpp@@ -4,7 +4,9 @@#include <boost/range/algorithm.hpp>-#include "common/common.h"+#include "common/common_funcs.h"+#include "common/common_paths.h"+#include "common/logging/log.h"#include "common/string_util.h"#ifdef _MSC_VERdiff --git a/src/common/string_util.h b/src/common/string_util.hindex 74974263fb..a60a846963 100644--- a/src/common/string_util.h+++ b/src/common/string_util.h@@ -10,7 +10,7 @@#include <sstream>#include <vector>-#include "common/common.h"+#include "common/common_types.h"namespace Common {diff --git a/src/common/symbols.h b/src/common/symbols.hindex f76cb6b1ef..6b62b011ea 100644--- a/src/common/symbols.h+++ b/src/common/symbols.h@@ -5,8 +5,10 @@#pragma once#include <map>+#include <string>+#include <utility>-#include "common/common.h"+#include "common/common_types.h"struct TSymbol{diff --git a/src/common/thread.h b/src/common/thread.hindex 5fdb6baebe..7bc419497b 100644--- a/src/common/thread.h+++ b/src/common/thread.h@@ -4,7 +4,6 @@#pragma once-// Don't include common.h here as it will break LogManager#include "common/common_types.h"#include <cstdio>#include <cstring>diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.hindex 4f27fc8992..12455d7c4b 100644--- a/src/common/thread_queue_list.h+++ b/src/common/thread_queue_list.h@@ -9,8 +9,6 @@#include <boost/range/algorithm_ext/erase.hpp>-#include "common/common.h"-namespace Common {template<class T, unsigned int N>diff --git a/src/common/thunk.h b/src/common/thunk.hindex 4fb7c98e17..5334800560 100644--- a/src/common/thunk.h+++ b/src/common/thunk.h@@ -6,7 +6,7 @@#include <map>-#include "common/common.h"+#include "common/common_types.h"// This simple class creates a wrapper around a C/C++ function that saves all fp state// before entering it, and restores it upon exit. This is required to be able to selectivelydiff --git a/src/common/timer.cpp b/src/common/timer.cppindex a6682ea192..b99835ac7c 100644--- a/src/common/timer.cpp+++ b/src/common/timer.cpp@@ -12,9 +12,9 @@#include <sys/time.h>#endif-#include "common/common.h"-#include "common/timer.h"+#include "common/common_types.h"#include "common/string_util.h"+#include "common/timer.h"namespace Common{diff --git a/src/common/timer.h b/src/common/timer.hindex 4b44c33a09..b5f0f25852 100644--- a/src/common/timer.h+++ b/src/common/timer.h@@ -4,7 +4,7 @@#pragma once-#include "common/common.h"+#include "common/common_types.h"#include <string>namespace Commondiff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.hindex 3106637749..85ed2c698d 100644--- a/src/core/arm/arm_interface.h+++ b/src/core/arm/arm_interface.h@@ -4,7 +4,6 @@#pragma once-#include "common/common.h"#include "common/common_types.h"#include "core/arm/skyeye_common/arm_regformat.h"diff --git a/src/core/arm/dyncom/arm_dyncom.cpp b/src/core/arm/dyncom/arm_dyncom.cppindex 1284132622..42a63e46fe 100644--- a/src/core/arm/dyncom/arm_dyncom.cpp+++ b/src/core/arm/dyncom/arm_dyncom.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include <cstring>+#include "common/make_unique.h"#include "core/arm/skyeye_common/armemu.h"diff --git a/src/core/arm/skyeye_common/vfp/vfp.cpp b/src/core/arm/skyeye_common/vfp/vfp.cppindex d0fa157a28..b88d477508 100644--- a/src/core/arm/skyeye_common/vfp/vfp.cpp+++ b/src/core/arm/skyeye_common/vfp/vfp.cpp@@ -20,7 +20,6 @@/* Note: this file handles interface with arm core and vfp registers */-#include "common/common.h"#include "common/logging/log.h"#include "core/arm/skyeye_common/armdefs.h"diff --git a/src/core/core.cpp b/src/core/core.cppindex 81e642318c..1c9680d414 100644--- a/src/core/core.cpp+++ b/src/core/core.cpp@@ -3,6 +3,7 @@// Refer to the license.txt file included.#include "common/common_types.h"+#include "common/logging/log.h"#include "core/core.h"#include "core/core_timing.h"diff --git a/src/core/core_timing.h b/src/core/core_timing.hindex d62ff3604c..01519608de 100644--- a/src/core/core_timing.h+++ b/src/core/core_timing.h@@ -21,7 +21,7 @@#include <functional>-#include "common/common.h"+#include "common/common_types.h"extern int g_clock_rate_arm11;diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cppindex 3076fa2630..38d498d0e1 100644--- a/src/core/file_sys/archive_extsavedata.cpp+++ b/src/core/file_sys/archive_extsavedata.cpp@@ -6,6 +6,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/archive_extsavedata.h"diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cppindex bf54a38665..d4a12ed103 100644--- a/src/core/file_sys/archive_romfs.cpp+++ b/src/core/file_sys/archive_romfs.cpp@@ -6,6 +6,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/archive_romfs.h"diff --git a/src/core/file_sys/archive_savedata.cpp b/src/core/file_sys/archive_savedata.cppindex 8496e06f37..12624fa31d 100644--- a/src/core/file_sys/archive_savedata.cpp+++ b/src/core/file_sys/archive_savedata.cpp@@ -6,6 +6,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/archive_savedata.h"diff --git a/src/core/file_sys/archive_savedatacheck.cpp b/src/core/file_sys/archive_savedatacheck.cppindex 47d8a9d250..e7e4fbf1d9 100644--- a/src/core/file_sys/archive_savedatacheck.cpp+++ b/src/core/file_sys/archive_savedatacheck.cpp@@ -3,6 +3,7 @@// Refer to the license.txt file included.#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/archive_savedatacheck.h"diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cppindex 92b20c7f6d..c1234a1862 100644--- a/src/core/file_sys/archive_sdmc.cpp+++ b/src/core/file_sys/archive_sdmc.cpp@@ -6,6 +6,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/archive_sdmc.h"diff --git a/src/core/file_sys/disk_archive.cpp b/src/core/file_sys/disk_archive.cppindex f53fd57db3..9980cced10 100644--- a/src/core/file_sys/disk_archive.cpp+++ b/src/core/file_sys/disk_archive.cpp@@ -6,6 +6,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/disk_archive.h"diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.hindex 0b0f8a42a6..0fcff18454 100644--- a/src/core/file_sys/file_backend.h+++ b/src/core/file_sys/file_backend.h@@ -4,7 +4,6 @@#pragma once-#include "common/common.h"#include "common/common_types.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/file_sys/ivfc_archive.cpp b/src/core/file_sys/ivfc_archive.cppindex 35aca54fac..2d2509d16d 100644--- a/src/core/file_sys/ivfc_archive.cpp+++ b/src/core/file_sys/ivfc_archive.cpp@@ -6,6 +6,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/ivfc_archive.h"diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cppindex 19135266ca..9d7f6b280b 100644--- a/src/core/hle/kernel/address_arbiter.cpp+++ b/src/core/hle/kernel/address_arbiter.cpp@@ -3,6 +3,7 @@// Refer to the license.txt file included.#include "common/common_types.h"+#include "common/logging/log.h"#include "core/mem_map.h"diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cppindex 420906ec08..f338f3266c 100644--- a/src/core/hle/kernel/event.cpp+++ b/src/core/hle/kernel/event.cpp@@ -6,7 +6,7 @@#include <algorithm>#include <vector>-#include "common/common.h"+#include "common/assert.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/event.h"diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cppindex fca582bbee..533fe65fd1 100644--- a/src/core/hle/kernel/kernel.cpp+++ b/src/core/hle/kernel/kernel.cpp@@ -4,7 +4,8 @@#include <algorithm>-#include "common/common.h"+#include "common/assert.h"+#include "common/logging/log.h"#include "core/arm/arm_interface.h"#include "core/core.h"diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.hindex 80a09cadc6..a7bc6b71a6 100644--- a/src/core/hle/kernel/kernel.h+++ b/src/core/hle/kernel/kernel.h@@ -10,7 +10,8 @@#include <string>#include <vector>-#include "common/common.h"+#include "common/common_types.h"+#include "core/hle/hle.h"#include "core/hle/result.h"diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cppindex ebc9e79d79..f530217fd0 100644--- a/src/core/hle/kernel/mutex.cpp+++ b/src/core/hle/kernel/mutex.cpp@@ -7,7 +7,7 @@#include <boost/range/algorithm_ext/erase.hpp>-#include "common/common.h"+#include "common/assert.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/mutex.h"diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cppindex 6aecc24aa6..5d6543ef42 100644--- a/src/core/hle/kernel/semaphore.cpp+++ b/src/core/hle/kernel/semaphore.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/assert.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/semaphore.h"diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cppindex 9b2511b530..cb5c166960 100644--- a/src/core/hle/kernel/shared_memory.cpp+++ b/src/core/hle/kernel/shared_memory.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/logging/log.h"#include "core/mem_map.h"#include "core/hle/kernel/shared_memory.h"diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex d678f5f6fe..9577b889a0 100644--- a/src/core/hle/kernel/thread.cpp+++ b/src/core/hle/kernel/thread.cpp@@ -6,7 +6,9 @@#include <list>#include <vector>-#include "common/common.h"+#include "common/assert.h"+#include "common/common_types.h"+#include "common/logging/log.h"#include "common/math_util.h"#include "common/thread_queue_list.h"diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cppindex 36979248de..e69fece65e 100644--- a/src/core/hle/kernel/timer.cpp+++ b/src/core/hle/kernel/timer.cpp@@ -2,7 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/assert.h"+#include "common/logging/log.h"#include "core/core_timing.h"#include "core/hle/kernel/kernel.h"diff --git a/src/core/hle/result.h b/src/core/hle/result.hindex 3648a168b3..ce633d8415 100644--- a/src/core/hle/result.h+++ b/src/core/hle/result.h@@ -8,6 +8,7 @@#include <type_traits>#include <utility>+#include "common/assert.h"#include "common/bit_field.h"#include "common/common_funcs.h"#include "common/common_types.h"diff --git a/src/core/hle/service/am_sys.cpp b/src/core/hle/service/am_sys.cppindex b244190a2a..f9e3fe4b77 100644--- a/src/core/hle/service/am_sys.cpp+++ b/src/core/hle/service/am_sys.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/service/am_sys.h"diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cppindex 98ae80b3a8..560c9dcf6c 100644--- a/src/core/hle/service/apt/apt.cpp+++ b/src/core/hle/service/apt/apt.cpp@@ -2,7 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/common_paths.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "core/hle/service/service.h"#include "core/hle/service/apt/apt.h"diff --git a/src/core/hle/service/apt/apt_s.cpp b/src/core/hle/service/apt/apt_s.cppindex 3fd3486514..396d1f04a4 100644--- a/src/core/hle/service/apt/apt_s.cpp+++ b/src/core/hle/service/apt/apt_s.cpp@@ -3,9 +3,6 @@// Refer to the license.txt file included.-#include "common/common.h"-#include "common/file_util.h"-#include "core/hle/hle.h"#include "core/hle/service/apt/apt.h"#include "core/hle/service/apt/apt_s.h"diff --git a/src/core/hle/service/apt/apt_u.cpp b/src/core/hle/service/apt/apt_u.cppindex 5ab23801ec..d006b59308 100644--- a/src/core/hle/service/apt/apt_u.cpp+++ b/src/core/hle/service/apt/apt_u.cpp@@ -3,7 +3,6 @@// Refer to the license.txt file included.-#include "common/common.h"#include "common/file_util.h"#include "core/hle/service/apt/apt.h"diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cppindex 207f660e69..2d26c9330e 100644--- a/src/core/hle/service/cfg/cfg.cpp+++ b/src/core/hle/service/cfg/cfg.cpp@@ -4,6 +4,7 @@#include <algorithm>+#include "common/logging/log.h"#include "common/string_util.h"#include "core/file_sys/file_backend.h"diff --git a/src/core/hle/service/cfg/cfg_u.cpp b/src/core/hle/service/cfg/cfg_u.cppindex c8c1c5b17e..221de99181 100644--- a/src/core/hle/service/cfg/cfg_u.cpp+++ b/src/core/hle/service/cfg/cfg_u.cpp@@ -3,7 +3,9 @@// Refer to the license.txt file included.#include "common/file_util.h"+#include "common/logging/log.h"#include "common/string_util.h"+#include "core/settings.h"#include "core/file_sys/archive_systemsavedata.h"#include "core/hle/hle.h"diff --git a/src/core/hle/service/dsp_dsp.cpp b/src/core/hle/service/dsp_dsp.cppindex 2e759a3e34..20dc4d648f 100644--- a/src/core/hle/service/dsp_dsp.cpp+++ b/src/core/hle/service/dsp_dsp.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/kernel/event.h"#include "core/hle/service/dsp_dsp.h"diff --git a/src/core/hle/service/err_f.cpp b/src/core/hle/service/err_f.cppindex 58c5acd1e9..e8c06c1cf6 100644--- a/src/core/hle/service/err_f.cpp+++ b/src/core/hle/service/err_f.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/service/err_f.h"diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cppindex a6ed089296..6d4a9c7c9b 100644--- a/src/core/hle/service/fs/archive.cpp+++ b/src/core/hle/service/fs/archive.cpp@@ -9,6 +9,7 @@#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/make_unique.h"#include "common/math_util.h"diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cppindex 5bc94b1b11..0d2a426b09 100644--- a/src/core/hle/service/fs/fs_user.cpp+++ b/src/core/hle/service/fs/fs_user.cpp@@ -2,10 +2,13 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/assert.h"+#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/scope_exit.h"#include "common/string_util.h"+#include "core/hle/result.h"#include "core/hle/service/fs/archive.h"#include "core/hle/service/fs/fs_user.h"diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cppindex 0f30f743a7..dd85848d06 100644--- a/src/core/hle/service/hid/hid.cpp+++ b/src/core/hle/service/hid/hid.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/service/service.h"#include "core/hle/service/hid/hid.h"#include "core/hle/service/hid/hid_spvr.h"diff --git a/src/core/hle/service/ldr_ro.cpp b/src/core/hle/service/ldr_ro.cppindex c0c4a23445..155b97f696 100644--- a/src/core/hle/service/ldr_ro.cpp+++ b/src/core/hle/service/ldr_ro.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/service/ldr_ro.h"diff --git a/src/core/hle/service/nim_u.cpp b/src/core/hle/service/nim_u.cppindex a87d17ef04..5f13bd98e8 100644--- a/src/core/hle/service/nim_u.cpp+++ b/src/core/hle/service/nim_u.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/service/nim_u.h"diff --git a/src/core/hle/service/ns_s.cpp b/src/core/hle/service/ns_s.cppindex 5cf3e20395..6b3ef6ece7 100644--- a/src/core/hle/service/ns_s.cpp+++ b/src/core/hle/service/ns_s.cpp@@ -3,8 +3,6 @@// Refer to the license.txt file included.-#include "common/common.h"-#include "core/hle/hle.h"#include "core/hle/service/ns_s.h"diff --git a/src/core/hle/service/nwm_uds.cpp b/src/core/hle/service/nwm_uds.cppindex 4b06efc3a1..25b01860e5 100644--- a/src/core/hle/service/nwm_uds.cpp+++ b/src/core/hle/service/nwm_uds.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/kernel/event.h"#include "core/hle/service/nwm_uds.h"diff --git a/src/core/hle/service/ptm/ptm_u.cpp b/src/core/hle/service/ptm/ptm_u.cppindex 0af7c8bf6e..9d6a5b0d7e 100644--- a/src/core/hle/service/ptm/ptm_u.cpp+++ b/src/core/hle/service/ptm/ptm_u.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/make_unique.h"+#include "common/logging/log.h"#include "core/hle/hle.h"#include "core/hle/service/ptm/ptm.h"diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex d50327cb90..64185c62e1 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/logging/log.h"#include "common/string_util.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.hindex 21ada67b5f..77bfb9ff13 100644--- a/src/core/hle/service/service.h+++ b/src/core/hle/service/service.h@@ -9,7 +9,7 @@#include <boost/container/flat_map.hpp>-#include "common/common.h"+#include "common/common_types.h"#include "core/hle/kernel/kernel.h"#include "core/hle/kernel/session.h"diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cppindex 231ead1850..39b8d65fdc 100644--- a/src/core/hle/service/soc_u.cpp+++ b/src/core/hle/service/soc_u.cpp@@ -2,6 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"#include "common/platform.h"#if EMU_PLATFORM == PLATFORM_WINDOWSdiff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cppindex cc59a03ce2..6c49fa6cf0 100644--- a/src/core/hle/service/srv.cpp+++ b/src/core/hle/service/srv.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/service/srv.h"#include "core/hle/kernel/event.h"diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cppindex 33ecf64a26..085192a07b 100644--- a/src/core/hle/service/y2r_u.cpp+++ b/src/core/hle/service/y2r_u.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include "common/logging/log.h"+#include "core/hle/hle.h"#include "core/hle/kernel/event.h"#include "core/hle/service/y2r_u.h"diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cppindex 2da488d83f..1372aa0965 100644--- a/src/core/hle/svc.cpp+++ b/src/core/hle/svc.cpp@@ -4,6 +4,7 @@#include <map>+#include "common/logging/log.h"#include "common/profiler.h"#include "common/string_util.h"#include "common/symbols.h"diff --git a/src/core/hw/gpu.h b/src/core/hw/gpu.hindex c8f8844943..699bcd2a56 100644--- a/src/core/hw/gpu.h+++ b/src/core/hw/gpu.h@@ -6,8 +6,10 @@#include <cstddef>-#include "common/common_types.h"+#include "common/assert.h"#include "common/bit_field.h"+#include "common/common_funcs.h"+#include "common/common_types.h"namespace GPU {diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cppindex 2369581397..f4906cc7ea 100644--- a/src/core/hw/hw.cpp+++ b/src/core/hw/hw.cpp@@ -3,6 +3,7 @@// Refer to the license.txt file included.#include "common/common_types.h"+#include "common/logging/log.h"#include "core/hw/hw.h"#include "core/hw/gpu.h"diff --git a/src/core/hw/lcd.cpp b/src/core/hw/lcd.cppindex 8a09c3bc03..09134c95b2 100644--- a/src/core/hw/lcd.cpp+++ b/src/core/hw/lcd.cpp@@ -2,7 +2,10 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include <cstring>+#include "common/common_types.h"+#include "common/logging/log.h"#include "core/arm/arm_interface.h"#include "core/hle/hle.h"diff --git a/src/core/hw/lcd.h b/src/core/hw/lcd.hindex 43893a625b..fb14c3b210 100644--- a/src/core/hw/lcd.h+++ b/src/core/hw/lcd.h@@ -6,8 +6,9 @@#include <cstddef>-#include "common/common_types.h"#include "common/bit_field.h"+#include "common/common_funcs.h"+#include "common/common_types.h"#define LCD_REG_INDEX(field_name) (offsetof(LCD::Regs, field_name) / sizeof(u32))diff --git a/src/core/loader/3dsx.cpp b/src/core/loader/3dsx.cppindex 958dd03e8e..5d806c5d00 100644--- a/src/core/loader/3dsx.cpp+++ b/src/core/loader/3dsx.cpp@@ -5,6 +5,8 @@#include <algorithm>#include <vector>+#include "common/logging/log.h"+#include "core/file_sys/archive_romfs.h"#include "core/loader/elf.h"#include "core/loader/ncch.h"diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cppindex 773eaf7719..467e91924e 100644--- a/src/core/loader/elf.cpp+++ b/src/core/loader/elf.cpp@@ -5,8 +5,9 @@#include <string>#include <memory>-#include "common/common.h"+#include "common/common_types.h"#include "common/file_util.h"+#include "common/logging/log.h"#include "common/symbols.h"#include "core/mem_map.h"diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cppindex aca09b3745..de0ab540a8 100644--- a/src/core/loader/loader.cpp+++ b/src/core/loader/loader.cpp@@ -4,6 +4,7 @@#include <string>+#include "common/logging/log.h"#include "common/make_unique.h"#include "core/file_sys/archive_romfs.h"diff --git a/src/core/loader/loader.h b/src/core/loader/loader.hindex 3510c6b289..2b87239cf2 100644--- a/src/core/loader/loader.h+++ b/src/core/loader/loader.h@@ -6,7 +6,7 @@#include <vector>-#include "common/common.h"+#include "common/common_types.h"#include "common/file_util.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cppindex 4efed78bfd..9bce2b79dc 100644--- a/src/core/loader/ncch.cpp+++ b/src/core/loader/ncch.cpp@@ -4,6 +4,8 @@#include <memory>+#include "common/logging/log.h"+#include "core/loader/ncch.h"#include "core/hle/kernel/kernel.h"#include "core/mem_map.h"diff --git a/src/core/loader/ncch.h b/src/core/loader/ncch.hindex 3dd151dbde..44c72a4e29 100644--- a/src/core/loader/ncch.h+++ b/src/core/loader/ncch.h@@ -4,7 +4,9 @@#pragma once-#include "common/common.h"+#include <memory>++#include "common/common_types.h"#include "core/loader/loader.h"diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cppindex 22e359b3e5..ae88cfb117 100644--- a/src/core/mem_map.cpp+++ b/src/core/mem_map.cpp@@ -2,7 +2,9 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/common_funcs.h"+#include "common/common_types.h"+#include "common/logging/log.h"#include "common/mem_arena.h"#include "core/mem_map.h"diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cppindex 8759ebdfb3..9a19c9bf88 100644--- a/src/core/mem_map_funcs.cpp+++ b/src/core/mem_map_funcs.cpp@@ -4,7 +4,9 @@#include <map>-#include "common/common.h"+#include "common/common_types.h"+#include "common/logging/log.h"+#include "common/swap.h"#include "core/mem_map.h"#include "core/hw/hw.h"diff --git a/src/video_core/color.h b/src/video_core/color.hindex 43d635e2c4..4d2026eb01 100644--- a/src/video_core/color.h+++ b/src/video_core/color.h@@ -5,6 +5,8 @@#pragma once#include "common/common_types.h"+#include "common/swap.h"+#include "video_core/math.h"namespace Color {diff --git a/src/video_core/pica.h b/src/video_core/pica.hindex fe20cd77d9..20e5e2de04 100644--- a/src/video_core/pica.h+++ b/src/video_core/pica.h@@ -10,8 +10,11 @@#include <map>#include <vector>+#include "common/assert.h"#include "common/bit_field.h"+#include "common/common_funcs.h"#include "common/common_types.h"+#include "common/logging/log.h"#include "core/mem_map.h"diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.hindex b77f29c115..b624095384 100644--- a/src/video_core/renderer_base.h+++ b/src/video_core/renderer_base.h@@ -4,7 +4,7 @@#pragma once-#include "common/common.h"+#include "common/common_types.h"class RendererBase : NonCopyable {public:diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cppindex 5e864b75e3..6b242a6ed1 100644--- a/src/video_core/renderer_opengl/renderer_opengl.cpp+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp@@ -9,6 +9,7 @@#include "core/settings.h"#include "common/emu_window.h"+#include "common/logging/log.h"#include "common/profiler_reporting.h"#include "video_core/video_core.h"diff --git a/src/video_core/video_core.cpp b/src/video_core/video_core.cppindex b9d4ede3ab..42e3bdd5bc 100644--- a/src/video_core/video_core.cpp+++ b/src/video_core/video_core.cpp@@ -2,7 +2,7 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.-#include "common/common.h"+#include "common/logging/log.h"#include "common/emu_window.h"#include "core/core.h"diff --git a/src/video_core/video_core.h b/src/video_core/video_core.hindex 1b51d39bff..f885bec212 100644--- a/src/video_core/video_core.h+++ b/src/video_core/video_core.h@@ -4,7 +4,6 @@#pragma once-#include "common/common.h"#include "common/emu_window.h"#include "renderer_base.h"