diff options
Diffstat (limited to 'src/core/hle')
37 files changed, 87 insertions, 44 deletions
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); | |||
| 61 | template void Read<u8>(u8 &var, const u32 addr); | 64 | template void Read<u8>(u8 &var, const u32 addr); |
| 62 | 65 | ||
| 63 | void Init() { | 66 | void 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/hle.h b/src/core/hle/hle.h index 23de1aab7..e0b97797c 100644 --- a/src/core/hle/hle.h +++ b/src/core/hle/hle.h | |||
| @@ -4,6 +4,13 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | typedef u32 Handle; | ||
| 10 | typedef s32 Result; | ||
| 11 | |||
| 12 | const Handle INVALID_HANDLE = 0; | ||
| 13 | |||
| 7 | namespace HLE { | 14 | namespace HLE { |
| 8 | 15 | ||
| 9 | extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread | 16 | extern bool g_reschedule; ///< If true, immediately reschedules the CPU to a new thread |
diff --git a/src/core/hle/kernel/address_arbiter.cpp b/src/core/hle/kernel/address_arbiter.cpp index 19135266c..9d7f6b280 100644 --- a/src/core/hle/kernel/address_arbiter.cpp +++ b/src/core/hle/kernel/address_arbiter.cpp | |||
| @@ -3,6 +3,7 @@ | |||
| 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/logging/log.h" | ||
| 6 | 7 | ||
| 7 | #include "core/mem_map.h" | 8 | #include "core/mem_map.h" |
| 8 | 9 | ||
diff --git a/src/core/hle/kernel/event.cpp b/src/core/hle/kernel/event.cpp index 420906ec0..f338f3266 100644 --- a/src/core/hle/kernel/event.cpp +++ b/src/core/hle/kernel/event.cpp | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include <algorithm> | 6 | #include <algorithm> |
| 7 | #include <vector> | 7 | #include <vector> |
| 8 | 8 | ||
| 9 | #include "common/common.h" | 9 | #include "common/assert.h" |
| 10 | 10 | ||
| 11 | #include "core/hle/kernel/kernel.h" | 11 | #include "core/hle/kernel/kernel.h" |
| 12 | #include "core/hle/kernel/event.h" | 12 | #include "core/hle/kernel/event.h" |
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index fca582bbe..533fe65fd 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -4,7 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | 6 | ||
| 7 | #include "common/common.h" | 7 | #include "common/assert.h" |
| 8 | #include "common/logging/log.h" | ||
| 8 | 9 | ||
| 9 | #include "core/arm/arm_interface.h" | 10 | #include "core/arm/arm_interface.h" |
| 10 | #include "core/core.h" | 11 | #include "core/core.h" |
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index ab06fa025..a7bc6b71a 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h | |||
| @@ -10,18 +10,10 @@ | |||
| 10 | #include <string> | 10 | #include <string> |
| 11 | #include <vector> | 11 | #include <vector> |
| 12 | 12 | ||
| 13 | #include "common/common.h" | 13 | #include "common/common_types.h" |
| 14 | #include "core/hle/result.h" | ||
| 15 | |||
| 16 | typedef u32 Handle; | ||
| 17 | typedef s32 Result; | ||
| 18 | 14 | ||
| 19 | // TODO: It would be nice to eventually replace these with strong types that prevent accidental | 15 | #include "core/hle/hle.h" |
| 20 | // conversion between each other. | 16 | #include "core/hle/result.h" |
| 21 | typedef u32 VAddr; ///< Represents a pointer in the userspace virtual address space. | ||
| 22 | typedef u32 PAddr; ///< Represents a pointer in the ARM11 physical address space. | ||
| 23 | |||
| 24 | const Handle INVALID_HANDLE = 0; | ||
| 25 | 17 | ||
| 26 | namespace Kernel { | 18 | namespace Kernel { |
| 27 | 19 | ||
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index ebc9e79d7..f530217fd 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | #include <boost/range/algorithm_ext/erase.hpp> | 8 | #include <boost/range/algorithm_ext/erase.hpp> |
| 9 | 9 | ||
| 10 | #include "common/common.h" | 10 | #include "common/assert.h" |
| 11 | 11 | ||
| 12 | #include "core/hle/kernel/kernel.h" | 12 | #include "core/hle/kernel/kernel.h" |
| 13 | #include "core/hle/kernel/mutex.h" | 13 | #include "core/hle/kernel/mutex.h" |
diff --git a/src/core/hle/kernel/semaphore.cpp b/src/core/hle/kernel/semaphore.cpp index 6aecc24aa..5d6543ef4 100644 --- a/src/core/hle/kernel/semaphore.cpp +++ b/src/core/hle/kernel/semaphore.cpp | |||
| @@ -2,7 +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 "common/common.h" | 5 | #include "common/assert.h" |
| 6 | 6 | ||
| 7 | #include "core/hle/kernel/kernel.h" | 7 | #include "core/hle/kernel/kernel.h" |
| 8 | #include "core/hle/kernel/semaphore.h" | 8 | #include "core/hle/kernel/semaphore.h" |
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp index 9b2511b53..cb5c16696 100644 --- a/src/core/hle/kernel/shared_memory.cpp +++ b/src/core/hle/kernel/shared_memory.cpp | |||
| @@ -2,7 +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 "common/common.h" | 5 | #include "common/logging/log.h" |
| 6 | 6 | ||
| 7 | #include "core/mem_map.h" | 7 | #include "core/mem_map.h" |
| 8 | #include "core/hle/kernel/shared_memory.h" | 8 | #include "core/hle/kernel/shared_memory.h" |
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index d678f5f6f..9577b889a 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -6,7 +6,9 @@ | |||
| 6 | #include <list> | 6 | #include <list> |
| 7 | #include <vector> | 7 | #include <vector> |
| 8 | 8 | ||
| 9 | #include "common/common.h" | 9 | #include "common/assert.h" |
| 10 | #include "common/common_types.h" | ||
| 11 | #include "common/logging/log.h" | ||
| 10 | #include "common/math_util.h" | 12 | #include "common/math_util.h" |
| 11 | #include "common/thread_queue_list.h" | 13 | #include "common/thread_queue_list.h" |
| 12 | 14 | ||
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index 36979248d..e69fece65 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp | |||
| @@ -2,7 +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/common.h" | 5 | #include "common/assert.h" |
| 6 | #include "common/logging/log.h" | ||
| 6 | 7 | ||
| 7 | #include "core/core_timing.h" | 8 | #include "core/core_timing.h" |
| 8 | #include "core/hle/kernel/kernel.h" | 9 | #include "core/hle/kernel/kernel.h" |
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 3648a168b..ce633d841 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <type_traits> | 8 | #include <type_traits> |
| 9 | #include <utility> | 9 | #include <utility> |
| 10 | 10 | ||
| 11 | #include "common/assert.h" | ||
| 11 | #include "common/bit_field.h" | 12 | #include "common/bit_field.h" |
| 12 | #include "common/common_funcs.h" | 13 | #include "common/common_funcs.h" |
| 13 | #include "common/common_types.h" | 14 | #include "common/common_types.h" |
diff --git a/src/core/hle/service/am_sys.cpp b/src/core/hle/service/am_sys.cpp index b244190a2..f9e3fe4b7 100644 --- a/src/core/hle/service/am_sys.cpp +++ b/src/core/hle/service/am_sys.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/service/am_sys.h" | 8 | #include "core/hle/service/am_sys.h" |
| 7 | 9 | ||
diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index 98ae80b3a..560c9dcf6 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp | |||
| @@ -2,7 +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/common_paths.h" | ||
| 5 | #include "common/file_util.h" | 6 | #include "common/file_util.h" |
| 7 | #include "common/logging/log.h" | ||
| 6 | 8 | ||
| 7 | #include "core/hle/service/service.h" | 9 | #include "core/hle/service/service.h" |
| 8 | #include "core/hle/service/apt/apt.h" | 10 | #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.cpp index 3fd348651..396d1f04a 100644 --- a/src/core/hle/service/apt/apt_s.cpp +++ b/src/core/hle/service/apt/apt_s.cpp | |||
| @@ -3,9 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/common.h" | ||
| 7 | #include "common/file_util.h" | ||
| 8 | |||
| 9 | #include "core/hle/hle.h" | 6 | #include "core/hle/hle.h" |
| 10 | #include "core/hle/service/apt/apt.h" | 7 | #include "core/hle/service/apt/apt.h" |
| 11 | #include "core/hle/service/apt/apt_s.h" | 8 | #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.cpp index 5ab23801e..d006b5930 100644 --- a/src/core/hle/service/apt/apt_u.cpp +++ b/src/core/hle/service/apt/apt_u.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/common.h" | ||
| 7 | #include "common/file_util.h" | 6 | #include "common/file_util.h" |
| 8 | 7 | ||
| 9 | #include "core/hle/service/apt/apt.h" | 8 | #include "core/hle/service/apt/apt.h" |
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index 5eccdecf7..2d26c9330 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp | |||
| @@ -4,12 +4,16 @@ | |||
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | 6 | ||
| 7 | #include "core/hle/service/fs/archive.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "core/hle/service/service.h" | 8 | #include "common/string_util.h" |
| 9 | |||
| 10 | #include "core/file_sys/file_backend.h" | ||
| 9 | #include "core/hle/service/cfg/cfg.h" | 11 | #include "core/hle/service/cfg/cfg.h" |
| 10 | #include "core/hle/service/cfg/cfg_i.h" | 12 | #include "core/hle/service/cfg/cfg_i.h" |
| 11 | #include "core/hle/service/cfg/cfg_s.h" | 13 | #include "core/hle/service/cfg/cfg_s.h" |
| 12 | #include "core/hle/service/cfg/cfg_u.h" | 14 | #include "core/hle/service/cfg/cfg_u.h" |
| 15 | #include "core/hle/service/fs/archive.h" | ||
| 16 | #include "core/hle/service/service.h" | ||
| 13 | 17 | ||
| 14 | namespace Service { | 18 | namespace Service { |
| 15 | namespace CFG { | 19 | namespace CFG { |
diff --git a/src/core/hle/service/cfg/cfg_u.cpp b/src/core/hle/service/cfg/cfg_u.cpp index c8c1c5b17..221de9918 100644 --- a/src/core/hle/service/cfg/cfg_u.cpp +++ b/src/core/hle/service/cfg/cfg_u.cpp | |||
| @@ -3,7 +3,9 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/file_util.h" | 5 | #include "common/file_util.h" |
| 6 | #include "common/logging/log.h" | ||
| 6 | #include "common/string_util.h" | 7 | #include "common/string_util.h" |
| 8 | |||
| 7 | #include "core/settings.h" | 9 | #include "core/settings.h" |
| 8 | #include "core/file_sys/archive_systemsavedata.h" | 10 | #include "core/file_sys/archive_systemsavedata.h" |
| 9 | #include "core/hle/hle.h" | 11 | #include "core/hle/hle.h" |
diff --git a/src/core/hle/service/dsp_dsp.cpp b/src/core/hle/service/dsp_dsp.cpp index 2e759a3e3..20dc4d648 100644 --- a/src/core/hle/service/dsp_dsp.cpp +++ b/src/core/hle/service/dsp_dsp.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/kernel/event.h" | 8 | #include "core/hle/kernel/event.h" |
| 7 | #include "core/hle/service/dsp_dsp.h" | 9 | #include "core/hle/service/dsp_dsp.h" |
diff --git a/src/core/hle/service/err_f.cpp b/src/core/hle/service/err_f.cpp index 58c5acd1e..e8c06c1cf 100644 --- a/src/core/hle/service/err_f.cpp +++ b/src/core/hle/service/err_f.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/service/err_f.h" | 8 | #include "core/hle/service/err_f.h" |
| 7 | 9 | ||
diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index b0fd834c7..6d4a9c7c9 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 11 | #include "common/file_util.h" | 11 | #include "common/file_util.h" |
| 12 | #include "common/logging/log.h" | ||
| 12 | #include "common/make_unique.h" | 13 | #include "common/make_unique.h" |
| 13 | #include "common/math_util.h" | 14 | #include "common/math_util.h" |
| 14 | 15 | ||
| @@ -78,6 +79,11 @@ enum class DirectoryCommand : u32 { | |||
| 78 | Close = 0x08020000, | 79 | Close = 0x08020000, |
| 79 | }; | 80 | }; |
| 80 | 81 | ||
| 82 | File::File(std::unique_ptr<FileSys::FileBackend>&& backend, const FileSys::Path & path) | ||
| 83 | : path(path), priority(0), backend(std::move(backend)) {} | ||
| 84 | |||
| 85 | File::~File() {} | ||
| 86 | |||
| 81 | ResultVal<bool> File::SyncRequest() { | 87 | ResultVal<bool> File::SyncRequest() { |
| 82 | u32* cmd_buff = Kernel::GetCommandBuffer(); | 88 | u32* cmd_buff = Kernel::GetCommandBuffer(); |
| 83 | FileCommand cmd = static_cast<FileCommand>(cmd_buff[0]); | 89 | FileCommand cmd = static_cast<FileCommand>(cmd_buff[0]); |
| @@ -172,6 +178,11 @@ ResultVal<bool> File::SyncRequest() { | |||
| 172 | return MakeResult<bool>(false); | 178 | return MakeResult<bool>(false); |
| 173 | } | 179 | } |
| 174 | 180 | ||
| 181 | Directory::Directory(std::unique_ptr<FileSys::DirectoryBackend>&& backend, const FileSys::Path & path) | ||
| 182 | : path(path), backend(std::move(backend)) {} | ||
| 183 | |||
| 184 | Directory::~Directory() {} | ||
| 185 | |||
| 175 | ResultVal<bool> Directory::SyncRequest() { | 186 | ResultVal<bool> Directory::SyncRequest() { |
| 176 | u32* cmd_buff = Kernel::GetCommandBuffer(); | 187 | u32* cmd_buff = Kernel::GetCommandBuffer(); |
| 177 | DirectoryCommand cmd = static_cast<DirectoryCommand>(cmd_buff[0]); | 188 | DirectoryCommand cmd = static_cast<DirectoryCommand>(cmd_buff[0]); |
diff --git a/src/core/hle/service/fs/archive.h b/src/core/hle/service/fs/archive.h index b00f0fd60..faab0cb79 100644 --- a/src/core/hle/service/fs/archive.h +++ b/src/core/hle/service/fs/archive.h | |||
| @@ -45,31 +45,27 @@ typedef u64 ArchiveHandle; | |||
| 45 | 45 | ||
| 46 | class File : public Kernel::Session { | 46 | class File : public Kernel::Session { |
| 47 | public: | 47 | public: |
| 48 | File(std::unique_ptr<FileSys::FileBackend>&& backend, const FileSys::Path& path) | 48 | File(std::unique_ptr<FileSys::FileBackend>&& backend, const FileSys::Path& path); |
| 49 | : path(path), priority(0), backend(std::move(backend)) { | 49 | ~File(); |
| 50 | } | ||
| 51 | 50 | ||
| 52 | std::string GetName() const override { return "Path: " + path.DebugStr(); } | 51 | std::string GetName() const override { return "Path: " + path.DebugStr(); } |
| 52 | ResultVal<bool> SyncRequest() override; | ||
| 53 | 53 | ||
| 54 | FileSys::Path path; ///< Path of the file | 54 | FileSys::Path path; ///< Path of the file |
| 55 | u32 priority; ///< Priority of the file. TODO(Subv): Find out what this means | 55 | u32 priority; ///< Priority of the file. TODO(Subv): Find out what this means |
| 56 | std::unique_ptr<FileSys::FileBackend> backend; ///< File backend interface | 56 | std::unique_ptr<FileSys::FileBackend> backend; ///< File backend interface |
| 57 | |||
| 58 | ResultVal<bool> SyncRequest() override; | ||
| 59 | }; | 57 | }; |
| 60 | 58 | ||
| 61 | class Directory : public Kernel::Session { | 59 | class Directory : public Kernel::Session { |
| 62 | public: | 60 | public: |
| 63 | Directory(std::unique_ptr<FileSys::DirectoryBackend>&& backend, const FileSys::Path& path) | 61 | Directory(std::unique_ptr<FileSys::DirectoryBackend>&& backend, const FileSys::Path& path); |
| 64 | : path(path), backend(std::move(backend)) { | 62 | ~Directory(); |
| 65 | } | ||
| 66 | 63 | ||
| 67 | std::string GetName() const override { return "Directory: " + path.DebugStr(); } | 64 | std::string GetName() const override { return "Directory: " + path.DebugStr(); } |
| 65 | ResultVal<bool> SyncRequest() override; | ||
| 68 | 66 | ||
| 69 | FileSys::Path path; ///< Path of the directory | 67 | FileSys::Path path; ///< Path of the directory |
| 70 | std::unique_ptr<FileSys::DirectoryBackend> backend; ///< File backend interface | 68 | std::unique_ptr<FileSys::DirectoryBackend> backend; ///< File backend interface |
| 71 | |||
| 72 | ResultVal<bool> SyncRequest() override; | ||
| 73 | }; | 69 | }; |
| 74 | 70 | ||
| 75 | /** | 71 | /** |
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index 5bc94b1b1..0d2a426b0 100644 --- a/src/core/hle/service/fs/fs_user.cpp +++ b/src/core/hle/service/fs/fs_user.cpp | |||
| @@ -2,10 +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 "common/common.h" | 5 | #include "common/assert.h" |
| 6 | #include "common/common_types.h" | ||
| 6 | #include "common/file_util.h" | 7 | #include "common/file_util.h" |
| 8 | #include "common/logging/log.h" | ||
| 7 | #include "common/scope_exit.h" | 9 | #include "common/scope_exit.h" |
| 8 | #include "common/string_util.h" | 10 | #include "common/string_util.h" |
| 11 | |||
| 9 | #include "core/hle/result.h" | 12 | #include "core/hle/result.h" |
| 10 | #include "core/hle/service/fs/archive.h" | 13 | #include "core/hle/service/fs/archive.h" |
| 11 | #include "core/hle/service/fs/fs_user.h" | 14 | #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.cpp index 0f30f743a..dd85848d0 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/service/service.h" | 7 | #include "core/hle/service/service.h" |
| 6 | #include "core/hle/service/hid/hid.h" | 8 | #include "core/hle/service/hid/hid.h" |
| 7 | #include "core/hle/service/hid/hid_spvr.h" | 9 | #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.cpp index c0c4a2344..155b97f69 100644 --- a/src/core/hle/service/ldr_ro.cpp +++ b/src/core/hle/service/ldr_ro.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/service/ldr_ro.h" | 8 | #include "core/hle/service/ldr_ro.h" |
| 7 | 9 | ||
diff --git a/src/core/hle/service/nim_u.cpp b/src/core/hle/service/nim_u.cpp index a87d17ef0..5f13bd98e 100644 --- a/src/core/hle/service/nim_u.cpp +++ b/src/core/hle/service/nim_u.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/service/nim_u.h" | 8 | #include "core/hle/service/nim_u.h" |
| 7 | 9 | ||
diff --git a/src/core/hle/service/ns_s.cpp b/src/core/hle/service/ns_s.cpp index 5cf3e2039..6b3ef6ece 100644 --- a/src/core/hle/service/ns_s.cpp +++ b/src/core/hle/service/ns_s.cpp | |||
| @@ -3,8 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | #include "common/common.h" | ||
| 7 | |||
| 8 | #include "core/hle/hle.h" | 6 | #include "core/hle/hle.h" |
| 9 | #include "core/hle/service/ns_s.h" | 7 | #include "core/hle/service/ns_s.h" |
| 10 | 8 | ||
diff --git a/src/core/hle/service/nwm_uds.cpp b/src/core/hle/service/nwm_uds.cpp index 4b06efc3a..25b01860e 100644 --- a/src/core/hle/service/nwm_uds.cpp +++ b/src/core/hle/service/nwm_uds.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/kernel/event.h" | 8 | #include "core/hle/kernel/event.h" |
| 7 | #include "core/hle/service/nwm_uds.h" | 9 | #include "core/hle/service/nwm_uds.h" |
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp index d44510c1b..6480a323d 100644 --- a/src/core/hle/service/ptm/ptm.cpp +++ b/src/core/hle/service/ptm/ptm.cpp | |||
| @@ -2,12 +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/service.h" | 5 | #include "core/file_sys/file_backend.h" |
| 6 | #include "core/hle/service/fs/archive.h" | 6 | #include "core/hle/service/fs/archive.h" |
| 7 | #include "core/hle/service/ptm/ptm.h" | 7 | #include "core/hle/service/ptm/ptm.h" |
| 8 | #include "core/hle/service/ptm/ptm_play.h" | 8 | #include "core/hle/service/ptm/ptm_play.h" |
| 9 | #include "core/hle/service/ptm/ptm_sysm.h" | 9 | #include "core/hle/service/ptm/ptm_sysm.h" |
| 10 | #include "core/hle/service/ptm/ptm_u.h" | 10 | #include "core/hle/service/ptm/ptm_u.h" |
| 11 | #include "core/hle/service/service.h" | ||
| 11 | 12 | ||
| 12 | namespace Service { | 13 | namespace Service { |
| 13 | namespace PTM { | 14 | namespace PTM { |
diff --git a/src/core/hle/service/ptm/ptm_u.cpp b/src/core/hle/service/ptm/ptm_u.cpp index 0af7c8bf6..9d6a5b0d7 100644 --- a/src/core/hle/service/ptm/ptm_u.cpp +++ b/src/core/hle/service/ptm/ptm_u.cpp | |||
| @@ -2,7 +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 "common/make_unique.h" | 5 | #include "common/logging/log.h" |
| 6 | 6 | ||
| 7 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 8 | #include "core/hle/service/ptm/ptm.h" | 8 | #include "core/hle/service/ptm/ptm.h" |
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index d50327cb9..64185c62e 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -2,7 +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 "common/common.h" | 5 | #include "common/logging/log.h" |
| 6 | #include "common/string_util.h" | 6 | #include "common/string_util.h" |
| 7 | 7 | ||
| 8 | #include "core/hle/service/service.h" | 8 | #include "core/hle/service/service.h" |
diff --git a/src/core/hle/service/service.h b/src/core/hle/service/service.h index 21ada67b5..77bfb9ff1 100644 --- a/src/core/hle/service/service.h +++ b/src/core/hle/service/service.h | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | #include <boost/container/flat_map.hpp> | 10 | #include <boost/container/flat_map.hpp> |
| 11 | 11 | ||
| 12 | #include "common/common.h" | 12 | #include "common/common_types.h" |
| 13 | 13 | ||
| 14 | #include "core/hle/kernel/kernel.h" | 14 | #include "core/hle/kernel/kernel.h" |
| 15 | #include "core/hle/kernel/session.h" | 15 | #include "core/hle/kernel/session.h" |
diff --git a/src/core/hle/service/soc_u.cpp b/src/core/hle/service/soc_u.cpp index 231ead185..39b8d65fd 100644 --- a/src/core/hle/service/soc_u.cpp +++ b/src/core/hle/service/soc_u.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 "common/logging/log.h" | ||
| 5 | #include "common/platform.h" | 6 | #include "common/platform.h" |
| 6 | 7 | ||
| 7 | #if EMU_PLATFORM == PLATFORM_WINDOWS | 8 | #if EMU_PLATFORM == PLATFORM_WINDOWS |
diff --git a/src/core/hle/service/srv.cpp b/src/core/hle/service/srv.cpp index cc59a03ce..6c49fa6cf 100644 --- a/src/core/hle/service/srv.cpp +++ b/src/core/hle/service/srv.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/service/srv.h" | 8 | #include "core/hle/service/srv.h" |
| 7 | #include "core/hle/kernel/event.h" | 9 | #include "core/hle/kernel/event.h" |
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp index 33ecf64a2..085192a07 100644 --- a/src/core/hle/service/y2r_u.cpp +++ b/src/core/hle/service/y2r_u.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 "common/logging/log.h" | ||
| 6 | |||
| 5 | #include "core/hle/hle.h" | 7 | #include "core/hle/hle.h" |
| 6 | #include "core/hle/kernel/event.h" | 8 | #include "core/hle/kernel/event.h" |
| 7 | #include "core/hle/service/y2r_u.h" | 9 | #include "core/hle/service/y2r_u.h" |
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); | |||
| 62 | template void Read<u8>(u8 &var, const u32 addr); | 64 | template void Read<u8>(u8 &var, const u32 addr); |
| 63 | 65 | ||
| 64 | void Set3DSlider(float amount) { | 66 | void 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/hle/svc.cpp b/src/core/hle/svc.cpp index 2da488d83..393cfbe79 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -4,6 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include <map> | 5 | #include <map> |
| 6 | 6 | ||
| 7 | #include "common/logging/log.h" | ||
| 7 | #include "common/profiler.h" | 8 | #include "common/profiler.h" |
| 8 | #include "common/string_util.h" | 9 | #include "common/string_util.h" |
| 9 | #include "common/symbols.h" | 10 | #include "common/symbols.h" |
| @@ -311,7 +312,7 @@ static ResultCode GetResourceLimit(Handle* resource_limit, Handle process) { | |||
| 311 | /// Get resource limit current values | 312 | /// Get resource limit current values |
| 312 | static ResultCode GetResourceLimitCurrentValues(s64* values, Handle resource_limit, void* names, | 313 | static ResultCode GetResourceLimitCurrentValues(s64* values, Handle resource_limit, void* names, |
| 313 | s32 name_count) { | 314 | s32 name_count) { |
| 314 | LOG_ERROR(Kernel_SVC, "(UNIMPLEMENTED) called resource_limit=%08X, names=%s, name_count=%d", | 315 | LOG_ERROR(Kernel_SVC, "(UNIMPLEMENTED) called resource_limit=%08X, names=%p, name_count=%d", |
| 315 | resource_limit, names, name_count); | 316 | resource_limit, names, name_count); |
| 316 | Memory::Write32(Core::g_app_core->GetReg(0), 0); // Normmatt: Set used memory to 0 for now | 317 | Memory::Write32(Core::g_app_core->GetReg(0), 0); // Normmatt: Set used memory to 0 for now |
| 317 | return RESULT_SUCCESS; | 318 | return RESULT_SUCCESS; |