VERY experimental Nintendo Switch 2 emulator
C++
Core: Cleanup core includes.
Emmanuel Gil Peyrotaea15f5c731b
diff --git a/src/common/chunk_file.h b/src/common/chunk_file.hindex ee9f3d7c09..8be0b11094 100644--- a/src/common/chunk_file.h+++ b/src/common/chunk_file.h@@ -33,10 +33,11 @@#include <set>#include <string>#include <type_traits>+#include <utility>#include <vector>+#include "common/assert.h"#include "common/common_types.h"-#include "common/file_util.h"#include "common/logging/log.h"template <class T>diff --git a/src/core/arm/dyncom/arm_dyncom.h b/src/core/arm/dyncom/arm_dyncom.hindex 2488c879c0..cc93557222 100644--- a/src/core/arm/dyncom/arm_dyncom.h+++ b/src/core/arm/dyncom/arm_dyncom.h@@ -10,6 +10,11 @@#include "core/arm/arm_interface.h"#include "core/arm/skyeye_common/armdefs.h"+#include "core/arm/skyeye_common/arm_regformat.h"++namespace Core {+struct ThreadContext;+}class ARM_DynCom final : virtual public ARM_Interface {public:diff --git a/src/core/core.cpp b/src/core/core.cppindex 79038cd529..dddc16708e 100644--- a/src/core/core.cpp+++ b/src/core/core.cpp@@ -2,15 +2,12 @@// Licensed under GPLv2 or any later version// 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"-#include "core/settings.h"#include "core/arm/arm_interface.h"-#include "core/arm/disassembler/arm_disasm.h"#include "core/arm/dyncom/arm_dyncom.h"#include "core/hle/hle.h"#include "core/hle/kernel/thread.h"diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cppindex 0eb717c8dd..72006a53e9 100644--- a/src/core/core_timing.cpp+++ b/src/core/core_timing.cpp@@ -3,12 +3,11 @@// Refer to the license.txt file included.#include <atomic>-#include <cstdio>#include <mutex>#include <vector>-#include "common/assert.h"#include "common/chunk_file.h"+#include "common/logging/log.h"#include "common/string_util.h"#include "core/arm/arm_interface.h"diff --git a/src/core/hle/kernel/vm_manager.cpp b/src/core/hle/kernel/vm_manager.cppindex b2dd21542f..ec437cd61e 100644--- a/src/core/hle/kernel/vm_manager.cpp+++ b/src/core/hle/kernel/vm_manager.cpp@@ -2,6 +2,8 @@// Licensed under GPLv2 or any later version// Refer to the license.txt file included.+#include <iterator>+#include "common/assert.h"#include "core/hle/kernel/vm_manager.h"diff --git a/src/core/hle/kernel/vm_manager.h b/src/core/hle/kernel/vm_manager.hindex 22b7246039..271e2333e5 100644--- a/src/core/hle/kernel/vm_manager.h+++ b/src/core/hle/kernel/vm_manager.h@@ -6,7 +6,6 @@#include <map>#include <memory>-#include <string>#include <vector>#include "common/common_types.h"diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cppindex 4014eee98e..26d87c7e2f 100644--- a/src/core/hle/shared_page.cpp+++ b/src/core/hle/shared_page.cpp@@ -4,12 +4,6 @@#include <cstring>-#include "common/common_types.h"-#include "common/common_funcs.h"--#include "core/core.h"-#include "core/memory.h"-#include "core/hle/config_mem.h"#include "core/hle/shared_page.h"////////////////////////////////////////////////////////////////////////////////////////////////////diff --git a/src/core/hle/shared_page.h b/src/core/hle/shared_page.hindex fd2ab66a29..db6a5340be 100644--- a/src/core/hle/shared_page.h+++ b/src/core/hle/shared_page.h@@ -10,9 +10,12 @@* write access, according to 3dbrew; this is not emulated)*/+#include "common/common_funcs.h"#include "common/common_types.h"#include "common/swap.h"+#include "core/memory.h"+////////////////////////////////////////////////////////////////////////////////////////////////////namespace SharedPage {diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cppindex bf814b945a..d8cae50dd8 100644--- a/src/core/mem_map.cpp+++ b/src/core/mem_map.cpp@@ -3,13 +3,14 @@// Refer to the license.txt file included.#include <map>+#include <memory>+#include <utility>+#include <vector>#include "common/common_types.h"#include "common/logging/log.h"#include "core/hle/config_mem.h"-#include "core/hle/kernel/kernel.h"-#include "core/hle/kernel/shared_memory.h"#include "core/hle/kernel/vm_manager.h"#include "core/hle/result.h"#include "core/hle/shared_page.h"