summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/console_listener.cpp6
-rw-r--r--src/common/file_search.cpp4
-rw-r--r--src/common/file_util.cpp7
-rw-r--r--src/common/log_manager.cpp1
-rw-r--r--src/common/math_util.cpp3
-rw-r--r--src/common/mem_arena.cpp4
-rw-r--r--src/common/memory_util.cpp3
-rw-r--r--src/common/string_util.cpp4
-rw-r--r--src/common/thread.cpp1
-rw-r--r--src/common/utf8.cpp4
-rw-r--r--src/core/arm/disassembler/load_symbol_map.cpp1
-rw-r--r--src/core/core.cpp6
-rw-r--r--src/core/hle/config_mem.cpp1
-rw-r--r--src/core/hle/coprocessor.cpp1
-rw-r--r--src/core/hle/hle.cpp1
-rw-r--r--src/core/hle/kernel/archive.cpp1
-rw-r--r--src/core/hle/kernel/kernel.cpp2
-rw-r--r--src/core/hle/kernel/thread.cpp3
-rw-r--r--src/core/hle/service/fs.cpp2
-rw-r--r--src/core/hle/service/gsp.cpp1
-rw-r--r--src/core/hle/service/ndm.cpp2
-rw-r--r--src/core/hle/service/service.cpp5
-rw-r--r--src/core/hle/service/srv.cpp1
-rw-r--r--src/core/hle/svc.cpp3
-rw-r--r--src/core/hw/gpu.cpp2
-rw-r--r--src/core/hw/hw.cpp1
-rw-r--r--src/core/hw/ndma.cpp1
-rw-r--r--src/core/loader/loader.cpp1
-rw-r--r--src/core/mem_map.cpp1
-rw-r--r--src/core/mem_map_funcs.cpp1
30 files changed, 3 insertions, 71 deletions
diff --git a/src/common/console_listener.cpp b/src/common/console_listener.cpp
index 27697ef1f..6a89edd44 100644
--- a/src/common/console_listener.cpp
+++ b/src/common/console_listener.cpp
@@ -3,14 +3,10 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <cmath> 6
7#include <cstdio>
8#include <string>
9#ifdef _WIN32 7#ifdef _WIN32
10#include <windows.h> 8#include <windows.h>
11#include <array> 9#include <array>
12#else
13#include <cstdarg>
14#endif 10#endif
15 11
16#include "common/common.h" 12#include "common/common.h"
diff --git a/src/common/file_search.cpp b/src/common/file_search.cpp
index a9d19477d..cd50ace75 100644
--- a/src/common/file_search.cpp
+++ b/src/common/file_search.cpp
@@ -4,15 +4,13 @@
4 4
5 5
6#include "common/common.h" 6#include "common/common.h"
7#include "common/common_paths.h" 7
8#ifndef _WIN32 8#ifndef _WIN32
9#include <sys/types.h>
10#include <dirent.h> 9#include <dirent.h>
11#else 10#else
12#include <windows.h> 11#include <windows.h>
13#endif 12#endif
14 13
15#include <string>
16#include <algorithm> 14#include <algorithm>
17 15
18#include "common/file_search.h" 16#include "common/file_search.h"
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index b6ff2e40b..04d222ca1 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -4,9 +4,7 @@
4 4
5 5
6#include "common/common.h" 6#include "common/common.h"
7#include "common/common_paths.h"
8#include "common/file_util.h" 7#include "common/file_util.h"
9#include "common/string_util.h"
10 8
11#ifdef _WIN32 9#ifdef _WIN32
12#include <windows.h> 10#include <windows.h>
@@ -16,10 +14,7 @@
16#include <io.h> 14#include <io.h>
17#include <direct.h> // getcwd 15#include <direct.h> // getcwd
18#else 16#else
19#include <cerrno>
20#include <cstdlib>
21#include <sys/param.h> 17#include <sys/param.h>
22#include <sys/types.h>
23#include <dirent.h> 18#include <dirent.h>
24#endif 19#endif
25 20
@@ -32,8 +27,6 @@
32#include <algorithm> 27#include <algorithm>
33#include <sys/stat.h> 28#include <sys/stat.h>
34 29
35#include "common/string_util.h"
36
37#ifndef S_ISDIR 30#ifndef S_ISDIR
38#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) 31#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
39#endif 32#endif
diff --git a/src/common/log_manager.cpp b/src/common/log_manager.cpp
index 4e1cb60bd..c2b5d0e2c 100644
--- a/src/common/log_manager.cpp
+++ b/src/common/log_manager.cpp
@@ -8,7 +8,6 @@
8#include "common/console_listener.h" 8#include "common/console_listener.h"
9#include "common/timer.h" 9#include "common/timer.h"
10#include "common/thread.h" 10#include "common/thread.h"
11#include "common/file_util.h"
12 11
13void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char* file, int line, 12void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const char* file, int line,
14 const char* function, const char* fmt, ...) 13 const char* function, const char* fmt, ...)
diff --git a/src/common/math_util.cpp b/src/common/math_util.cpp
index 82eceab00..ab0e6b75c 100644
--- a/src/common/math_util.cpp
+++ b/src/common/math_util.cpp
@@ -6,8 +6,7 @@
6#include "common/common.h" 6#include "common/common.h"
7#include "common/math_util.h" 7#include "common/math_util.h"
8 8
9#include <cmath> 9#include <numeric> // Necessary on OS X, but not Linux
10#include <numeric>
11 10
12namespace MathUtil 11namespace MathUtil
13{ 12{
diff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cpp
index b76ac92d3..a456beb28 100644
--- a/src/common/mem_arena.cpp
+++ b/src/common/mem_arena.cpp
@@ -22,11 +22,7 @@
22#include "common/string_util.h" 22#include "common/string_util.h"
23 23
24#ifndef _WIN32 24#ifndef _WIN32
25#include <sys/stat.h>
26#include <fcntl.h> 25#include <fcntl.h>
27#include <unistd.h>
28#include <cerrno>
29#include <cstring>
30#ifdef ANDROID 26#ifdef ANDROID
31#include <sys/ioctl.h> 27#include <sys/ioctl.h>
32#include <linux/ashmem.h> 28#include <linux/ashmem.h>
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp
index e01e63175..45bf5a496 100644
--- a/src/common/memory_util.cpp
+++ b/src/common/memory_util.cpp
@@ -10,9 +10,6 @@
10#ifdef _WIN32 10#ifdef _WIN32
11#include <windows.h> 11#include <windows.h>
12#include <psapi.h> 12#include <psapi.h>
13#else
14#include <cerrno>
15#include <cstdio>
16#endif 13#endif
17 14
18#if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT) 15#if !defined(_WIN32) && defined(__x86_64__) && !defined(MAP_32BIT)
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index e78aed75d..b0c65d47d 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -3,17 +3,13 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <cstdlib>
7#include <cstdio>
8 6
9#include "common/common.h" 7#include "common/common.h"
10#include "common/common_paths.h"
11#include "common/string_util.h" 8#include "common/string_util.h"
12 9
13#ifdef _WIN32 10#ifdef _WIN32
14 #include <Windows.h> 11 #include <Windows.h>
15#else 12#else
16 #include <cerrno>
17 #include <iconv.h> 13 #include <iconv.h>
18#endif 14#endif
19 15
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 830795182..60d8ed075 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#include "common/common.h"
7 6
8#ifdef __APPLE__ 7#ifdef __APPLE__
9#include <mach/mach.h> 8#include <mach/mach.h>
diff --git a/src/common/utf8.cpp b/src/common/utf8.cpp
index c83824d35..be4ebc855 100644
--- a/src/common/utf8.cpp
+++ b/src/common/utf8.cpp
@@ -19,12 +19,8 @@
19#endif 19#endif
20 20
21#include <cstdlib> 21#include <cstdlib>
22#include <cstdio>
23#include <cstring> 22#include <cstring>
24#include <cstdarg>
25
26#include <algorithm> 23#include <algorithm>
27#include <string>
28 24
29#include "common/common_types.h" 25#include "common/common_types.h"
30#include "common/utf8.h" 26#include "common/utf8.h"
diff --git a/src/core/arm/disassembler/load_symbol_map.cpp b/src/core/arm/disassembler/load_symbol_map.cpp
index d7fc0a042..f156c43ce 100644
--- a/src/core/arm/disassembler/load_symbol_map.cpp
+++ b/src/core/arm/disassembler/load_symbol_map.cpp
@@ -6,7 +6,6 @@
6#include <vector> 6#include <vector>
7 7
8#include "common/symbols.h" 8#include "common/symbols.h"
9#include "common/common_types.h"
10#include "common/file_util.h" 9#include "common/file_util.h"
11 10
12#include "core/arm/disassembler/load_symbol_map.h" 11#include "core/arm/disassembler/load_symbol_map.h"
diff --git a/src/core/core.cpp b/src/core/core.cpp
index f21801e52..01d4f0afa 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -3,15 +3,9 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/common_types.h" 5#include "common/common_types.h"
6#include "common/log.h"
7#include "common/symbols.h"
8
9#include "video_core/video_core.h"
10 6
11#include "core/core.h" 7#include "core/core.h"
12#include "core/mem_map.h"
13#include "core/hw/hw.h" 8#include "core/hw/hw.h"
14#include "core/hw/gpu.h"
15#include "core/arm/disassembler/arm_disasm.h" 9#include "core/arm/disassembler/arm_disasm.h"
16#include "core/arm/interpreter/arm_interpreter.h" 10#include "core/arm/interpreter/arm_interpreter.h"
17 11
diff --git a/src/core/hle/config_mem.cpp b/src/core/hle/config_mem.cpp
index 8c898b265..a45e61427 100644
--- a/src/core/hle/config_mem.cpp
+++ b/src/core/hle/config_mem.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/common_types.h" 5#include "common/common_types.h"
6#include "common/log.h"
7 6
8#include "core/hle/config_mem.h" 7#include "core/hle/config_mem.h"
9 8
diff --git a/src/core/hle/coprocessor.cpp b/src/core/hle/coprocessor.cpp
index 9a5b0deda..1eb33eb86 100644
--- a/src/core/hle/coprocessor.cpp
+++ b/src/core/hle/coprocessor.cpp
@@ -5,7 +5,6 @@
5#include "core/hle/coprocessor.h" 5#include "core/hle/coprocessor.h"
6#include "core/hle/hle.h" 6#include "core/hle/hle.h"
7#include "core/mem_map.h" 7#include "core/mem_map.h"
8#include "core/core.h"
9 8
10namespace HLE { 9namespace HLE {
11 10
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp
index 53cda4a61..b03894ad7 100644
--- a/src/core/hle/hle.cpp
+++ b/src/core/hle/hle.cpp
@@ -6,7 +6,6 @@
6 6
7#include "core/mem_map.h" 7#include "core/mem_map.h"
8#include "core/hle/hle.h" 8#include "core/hle/hle.h"
9#include "core/hle/svc.h"
10#include "core/hle/kernel/thread.h" 9#include "core/hle/kernel/thread.h"
11#include "core/hle/service/service.h" 10#include "core/hle/service/service.h"
12 11
diff --git a/src/core/hle/kernel/archive.cpp b/src/core/hle/kernel/archive.cpp
index 1596367c3..20536f40f 100644
--- a/src/core/hle/kernel/archive.cpp
+++ b/src/core/hle/kernel/archive.cpp
@@ -7,7 +7,6 @@
7 7
8#include "core/file_sys/archive.h" 8#include "core/file_sys/archive.h"
9#include "core/hle/service/service.h" 9#include "core/hle/service/service.h"
10#include "core/hle/kernel/kernel.h"
11#include "core/hle/kernel/archive.h" 10#include "core/hle/kernel/archive.h"
12 11
13//////////////////////////////////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index a4a258875..e56f1879e 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -2,8 +2,6 @@
2// Licensed under GPLv2 2// Licensed under GPLv2
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <string.h>
6
7#include "common/common.h" 5#include "common/common.h"
8 6
9#include "core/core.h" 7#include "core/core.h"
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index 8bd9ca1a1..33c0b2a47 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -3,10 +3,8 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include <algorithm> 5#include <algorithm>
6#include <cstdio>
7#include <list> 6#include <list>
8#include <map> 7#include <map>
9#include <string>
10#include <vector> 8#include <vector>
11 9
12#include "common/common.h" 10#include "common/common.h"
@@ -15,7 +13,6 @@
15#include "core/core.h" 13#include "core/core.h"
16#include "core/mem_map.h" 14#include "core/mem_map.h"
17#include "core/hle/hle.h" 15#include "core/hle/hle.h"
18#include "core/hle/svc.h"
19#include "core/hle/kernel/kernel.h" 16#include "core/hle/kernel/kernel.h"
20#include "core/hle/kernel/thread.h" 17#include "core/hle/kernel/thread.h"
21 18
diff --git a/src/core/hle/service/fs.cpp b/src/core/hle/service/fs.cpp
index 5eabf36ad..9e1998b0f 100644
--- a/src/core/hle/service/fs.cpp
+++ b/src/core/hle/service/fs.cpp
@@ -4,8 +4,6 @@
4 4
5#include "common/common.h" 5#include "common/common.h"
6 6
7#include "core/loader/loader.h"
8#include "core/hle/hle.h"
9#include "core/hle/service/fs.h" 7#include "core/hle/service/fs.h"
10#include "core/hle/kernel/archive.h" 8#include "core/hle/kernel/archive.h"
11 9
diff --git a/src/core/hle/service/gsp.cpp b/src/core/hle/service/gsp.cpp
index 46c5a8ddd..accbe84e3 100644
--- a/src/core/hle/service/gsp.cpp
+++ b/src/core/hle/service/gsp.cpp
@@ -7,7 +7,6 @@
7#include "common/bit_field.h" 7#include "common/bit_field.h"
8 8
9#include "core/mem_map.h" 9#include "core/mem_map.h"
10#include "core/hle/hle.h"
11#include "core/hle/kernel/event.h" 10#include "core/hle/kernel/event.h"
12#include "core/hle/kernel/shared_memory.h" 11#include "core/hle/kernel/shared_memory.h"
13#include "core/hle/service/gsp.h" 12#include "core/hle/service/gsp.h"
diff --git a/src/core/hle/service/ndm.cpp b/src/core/hle/service/ndm.cpp
index 48755b6a7..f6af0a153 100644
--- a/src/core/hle/service/ndm.cpp
+++ b/src/core/hle/service/ndm.cpp
@@ -2,8 +2,6 @@
2// Licensed under GPLv2 2// Licensed under GPLv2
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/log.h"
6
7#include "core/hle/hle.h" 5#include "core/hle/hle.h"
8#include "core/hle/service/ndm.h" 6#include "core/hle/service/ndm.h"
9 7
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 00ac1c9c6..9eb1726aa 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.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 "common/common.h" 5#include "common/common.h"
6#include "common/log.h"
7#include "common/string_util.h" 6#include "common/string_util.h"
8 7
9#include "core/hle/hle.h"
10
11#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
12#include "core/hle/service/apt.h" 9#include "core/hle/service/apt.h"
13#include "core/hle/service/fs.h" 10#include "core/hle/service/fs.h"
@@ -16,8 +13,6 @@
16#include "core/hle/service/ndm.h" 13#include "core/hle/service/ndm.h"
17#include "core/hle/service/srv.h" 14#include "core/hle/service/srv.h"
18 15
19#include "core/hle/kernel/kernel.h"
20
21namespace Service { 16namespace Service {
22 17
23Manager* g_manager = nullptr; ///< Service manager 18Manager* g_manager = nullptr; ///< Service manager
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp
index 23be3cf2c..eb2c73f93 100644
--- a/src/core/hle/service/srv.cpp
+++ b/src/core/hle/service/srv.cpp
@@ -4,7 +4,6 @@
4 4
5#include "core/hle/hle.h" 5#include "core/hle/hle.h"
6#include "core/hle/service/srv.h" 6#include "core/hle/service/srv.h"
7#include "core/hle/service/service.h"
8#include "core/hle/kernel/event.h" 7#include "core/hle/kernel/event.h"
9 8
10//////////////////////////////////////////////////////////////////////////////////////////////////// 9////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index bdcfae6f5..07a750b89 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.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 <map> 5#include <map>
6#include <string>
7 6
8#include "common/string_util.h" 7#include "common/string_util.h"
9#include "common/symbols.h" 8#include "common/symbols.h"
@@ -12,13 +11,11 @@
12 11
13#include "core/hle/kernel/address_arbiter.h" 12#include "core/hle/kernel/address_arbiter.h"
14#include "core/hle/kernel/event.h" 13#include "core/hle/kernel/event.h"
15#include "core/hle/kernel/kernel.h"
16#include "core/hle/kernel/mutex.h" 14#include "core/hle/kernel/mutex.h"
17#include "core/hle/kernel/shared_memory.h" 15#include "core/hle/kernel/shared_memory.h"
18#include "core/hle/kernel/thread.h" 16#include "core/hle/kernel/thread.h"
19 17
20#include "core/hle/function_wrappers.h" 18#include "core/hle/function_wrappers.h"
21#include "core/hle/svc.h"
22#include "core/hle/service/service.h" 19#include "core/hle/service/service.h"
23 20
24//////////////////////////////////////////////////////////////////////////////////////////////////// 21////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 8709b8eb7..2e0943776 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -3,13 +3,11 @@
3// Refer to the license.txt file included. 3// Refer to the license.txt file included.
4 4
5#include "common/common_types.h" 5#include "common/common_types.h"
6#include "common/log.h"
7 6
8#include "core/core.h" 7#include "core/core.h"
9#include "core/mem_map.h" 8#include "core/mem_map.h"
10 9
11#include "core/hle/hle.h" 10#include "core/hle/hle.h"
12#include "core/hle/kernel/thread.h"
13#include "core/hle/service/gsp.h" 11#include "core/hle/service/gsp.h"
14 12
15#include "core/hw/gpu.h" 13#include "core/hw/gpu.h"
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp
index ed70486e6..efd94f147 100644
--- a/src/core/hw/hw.cpp
+++ b/src/core/hw/hw.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/common_types.h" 5#include "common/common_types.h"
6#include "common/log.h"
7 6
8#include "core/hw/hw.h" 7#include "core/hw/hw.h"
9#include "core/hw/gpu.h" 8#include "core/hw/gpu.h"
diff --git a/src/core/hw/ndma.cpp b/src/core/hw/ndma.cpp
index f6aa72d16..158241fd6 100644
--- a/src/core/hw/ndma.cpp
+++ b/src/core/hw/ndma.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/common_types.h" 5#include "common/common_types.h"
6#include "common/log.h"
7 6
8#include "core/hw/ndma.h" 7#include "core/hw/ndma.h"
9 8
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 365f5a277..5cbb26f54 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -5,7 +5,6 @@
5#include <memory> 5#include <memory>
6 6
7#include "core/file_sys/archive_romfs.h" 7#include "core/file_sys/archive_romfs.h"
8#include "core/loader/loader.h"
9#include "core/loader/elf.h" 8#include "core/loader/elf.h"
10#include "core/loader/ncch.h" 9#include "core/loader/ncch.h"
11#include "core/hle/kernel/archive.h" 10#include "core/hle/kernel/archive.h"
diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cpp
index 14fc01471..cf12f24d9 100644
--- a/src/core/mem_map.cpp
+++ b/src/core/mem_map.cpp
@@ -6,7 +6,6 @@
6#include "common/mem_arena.h" 6#include "common/mem_arena.h"
7 7
8#include "core/mem_map.h" 8#include "core/mem_map.h"
9#include "core/core.h"
10 9
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
12 11
diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp
index 391b75fc2..f510df835 100644
--- a/src/core/mem_map_funcs.cpp
+++ b/src/core/mem_map_funcs.cpp
@@ -8,7 +8,6 @@
8 8
9#include "core/mem_map.h" 9#include "core/mem_map.h"
10#include "core/hw/hw.h" 10#include "core/hw/hw.h"
11#include "hle/hle.h"
12#include "hle/config_mem.h" 11#include "hle/config_mem.h"
13 12
14namespace Memory { 13namespace Memory {