summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-06 02:42:43 -0300
committerGravatar Yuri Kunde Schlesner2015-05-06 23:45:06 -0300
commitc0eaa662d47daa7a148fd63b2634ea59a559296c (patch)
tree27acf97278304536b457a4593f9ad045564899bb /src
parentFileSys: De-inline Path members (diff)
downloadyuzu-c0eaa662d47daa7a148fd63b2634ea59a559296c.tar.gz
yuzu-c0eaa662d47daa7a148fd63b2634ea59a559296c.tar.xz
yuzu-c0eaa662d47daa7a148fd63b2634ea59a559296c.zip
Clean-up includes
Diffstat (limited to 'src')
-rw-r--r--src/common/assert.h1
-rw-r--r--src/core/arm/interpreter/armsupp.cpp2
-rw-r--r--src/core/arm/skyeye_common/armmmu.h2
-rw-r--r--src/core/file_sys/directory_backend.h3
-rw-r--r--src/core/file_sys/file_backend.h3
-rw-r--r--src/core/hle/config_mem.cpp5
-rw-r--r--src/core/hle/shared_page.cpp4
-rw-r--r--src/core/mem_map.h3
8 files changed, 14 insertions, 9 deletions
diff --git a/src/common/assert.h b/src/common/assert.h
index 9ca7adb15..4f26c63e9 100644
--- a/src/common/assert.h
+++ b/src/common/assert.h
@@ -4,6 +4,7 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <cstdio>
7#include <cstdlib> 8#include <cstdlib>
8 9
9#include "common/common_funcs.h" 10#include "common/common_funcs.h"
diff --git a/src/core/arm/interpreter/armsupp.cpp b/src/core/arm/interpreter/armsupp.cpp
index a68d53695..15c6f595b 100644
--- a/src/core/arm/interpreter/armsupp.cpp
+++ b/src/core/arm/interpreter/armsupp.cpp
@@ -15,6 +15,8 @@
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 "common/logging/log.h"
19
18#include "core/mem_map.h" 20#include "core/mem_map.h"
19#include "core/arm/skyeye_common/armdefs.h" 21#include "core/arm/skyeye_common/armdefs.h"
20#include "core/arm/skyeye_common/arm_regformat.h" 22#include "core/arm/skyeye_common/arm_regformat.h"
diff --git a/src/core/arm/skyeye_common/armmmu.h b/src/core/arm/skyeye_common/armmmu.h
index 22e564c3d..0463d83c8 100644
--- a/src/core/arm/skyeye_common/armmmu.h
+++ b/src/core/arm/skyeye_common/armmmu.h
@@ -20,6 +20,8 @@
20 20
21#pragma once 21#pragma once
22 22
23#include "common/swap.h"
24
23#include "core/mem_map.h" 25#include "core/mem_map.h"
24#include "core/arm/skyeye_common/armdefs.h" 26#include "core/arm/skyeye_common/armdefs.h"
25 27
diff --git a/src/core/file_sys/directory_backend.h b/src/core/file_sys/directory_backend.h
index 7f327dc42..a25dc0cfa 100644
--- a/src/core/file_sys/directory_backend.h
+++ b/src/core/file_sys/directory_backend.h
@@ -4,12 +4,11 @@
4 4
5#pragma once 5#pragma once
6 6
7#include <array>
7#include <cstddef> 8#include <cstddef>
8 9
9#include "common/common_types.h" 10#include "common/common_types.h"
10 11
11#include "core/hle/kernel/kernel.h"
12
13//////////////////////////////////////////////////////////////////////////////////////////////////// 12////////////////////////////////////////////////////////////////////////////////////////////////////
14// FileSys namespace 13// FileSys namespace
15 14
diff --git a/src/core/file_sys/file_backend.h b/src/core/file_sys/file_backend.h
index 35890af1f..0b0f8a42a 100644
--- a/src/core/file_sys/file_backend.h
+++ b/src/core/file_sys/file_backend.h
@@ -4,10 +4,9 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h"
7#include "common/common_types.h" 8#include "common/common_types.h"
8 9
9#include "core/hle/kernel/kernel.h"
10
11//////////////////////////////////////////////////////////////////////////////////////////////////// 10////////////////////////////////////////////////////////////////////////////////////////////////////
12// FileSys namespace 11// FileSys namespace
13 12
diff --git a/src/core/hle/config_mem.cpp b/src/core/hle/config_mem.cpp
index 9fcfcc285..35dc9cf58 100644
--- a/src/core/hle/config_mem.cpp
+++ b/src/core/hle/config_mem.cpp
@@ -2,6 +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 <cstring>
6
7#include "common/assert.h"
5#include "common/common_types.h" 8#include "common/common_types.h"
6#include "common/common_funcs.h" 9#include "common/common_funcs.h"
7 10
@@ -61,7 +64,7 @@ template void Read<u16>(u16 &var, const u32 addr);
61template void Read<u8>(u8 &var, const u32 addr); 64template void Read<u8>(u8 &var, const u32 addr);
62 65
63void Init() { 66void Init() {
64 memset(&config_mem, 0, sizeof(config_mem)); 67 std::memset(&config_mem, 0, sizeof(config_mem));
65 68
66 config_mem.update_flag = 0; // No update 69 config_mem.update_flag = 0; // No update
67 config_mem.sys_core_ver = 0x2; 70 config_mem.sys_core_ver = 0x2;
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp
index 94fae2551..4f227a370 100644
--- a/src/core/hle/shared_page.cpp
+++ b/src/core/hle/shared_page.cpp
@@ -2,6 +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 <cstring>
6
5#include "common/common_types.h" 7#include "common/common_types.h"
6#include "common/common_funcs.h" 8#include "common/common_funcs.h"
7 9
@@ -62,7 +64,7 @@ template void Read<u16>(u16 &var, const u32 addr);
62template void Read<u8>(u8 &var, const u32 addr); 64template void Read<u8>(u8 &var, const u32 addr);
63 65
64void Set3DSlider(float amount) { 66void Set3DSlider(float amount) {
65 memset(&shared_page, 0, sizeof(shared_page)); 67 std::memset(&shared_page, 0, sizeof(shared_page));
66 68
67 shared_page.sliderstate_3d = amount; 69 shared_page.sliderstate_3d = amount;
68 shared_page.ledstate_3d = (amount == 0.0f); // off when non-zero 70 shared_page.ledstate_3d = (amount == 0.0f); // off when non-zero
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index 1af02973b..b11f2ea68 100644
--- a/src/core/mem_map.h
+++ b/src/core/mem_map.h
@@ -4,11 +4,8 @@
4 4
5#pragma once 5#pragma once
6 6
7#include "common/common.h"
8#include "common/common_types.h" 7#include "common/common_types.h"
9 8
10#include "core/hle/kernel/kernel.h"
11
12namespace Memory { 9namespace Memory {
13 10
14//////////////////////////////////////////////////////////////////////////////////////////////////// 11////////////////////////////////////////////////////////////////////////////////////////////////////