summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-31 12:21:34 -0400
committerGravatar Lioncash2018-08-31 16:30:14 -0400
commit4a587b81b285bcd41246329e89591be7cfe37c8a (patch)
tree8eda46d4aac083d23a52223e1a3fc46bc6690a6c /src/core/core.cpp
parentMerge pull request #1205 from bunnei/improve-rasterizer-cache-2 (diff)
downloadyuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.gz
yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.xz
yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.zip
core/core: Replace includes with forward declarations where applicable
The follow-up to e2457418dae19b889b2ad85255bb95d4cd0e4bff, which replaces most of the includes in the core header with forward declarations. This makes it so that if any of the headers the core header was previously including change, then no one will need to rebuild the bulk of the core, due to core.h being quite a prevalent inclusion. This should make turnaround for changes much faster for developers.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 75c259068..2cfae18df 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -2,24 +2,35 @@
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 <array>
6#include <map>
5#include <memory> 7#include <memory>
8#include <thread>
6#include <utility> 9#include <utility>
10
7#include "common/logging/log.h" 11#include "common/logging/log.h"
8#include "common/string_util.h" 12#include "common/string_util.h"
13#include "core/arm/exclusive_monitor.h"
9#include "core/core.h" 14#include "core/core.h"
15#include "core/core_cpu.h"
10#include "core/core_timing.h" 16#include "core/core_timing.h"
11#include "core/gdbstub/gdbstub.h" 17#include "core/gdbstub/gdbstub.h"
12#include "core/hle/kernel/client_port.h" 18#include "core/hle/kernel/client_port.h"
13#include "core/hle/kernel/kernel.h" 19#include "core/hle/kernel/kernel.h"
14#include "core/hle/kernel/process.h" 20#include "core/hle/kernel/process.h"
21#include "core/hle/kernel/scheduler.h"
15#include "core/hle/kernel/thread.h" 22#include "core/hle/kernel/thread.h"
16#include "core/hle/service/service.h" 23#include "core/hle/service/service.h"
17#include "core/hle/service/sm/controller.h" 24#include "core/hle/service/sm/controller.h"
18#include "core/hle/service/sm/sm.h" 25#include "core/hle/service/sm/sm.h"
19#include "core/loader/loader.h" 26#include "core/loader/loader.h"
27#include "core/perf_stats.h"
20#include "core/settings.h" 28#include "core/settings.h"
29#include "core/telemetry_session.h"
21#include "file_sys/vfs_concat.h" 30#include "file_sys/vfs_concat.h"
22#include "file_sys/vfs_real.h" 31#include "file_sys/vfs_real.h"
32#include "video_core/debug_utils/debug_utils.h"
33#include "video_core/gpu.h"
23#include "video_core/renderer_base.h" 34#include "video_core/renderer_base.h"
24#include "video_core/video_core.h" 35#include "video_core/video_core.h"
25 36
@@ -258,7 +269,7 @@ struct System::Impl {
258 } 269 }
259 } 270 }
260 271
261 PerfStats::Results GetAndResetPerfStats() { 272 PerfStatsResults GetAndResetPerfStats() {
262 return perf_stats.GetAndResetStats(CoreTiming::GetGlobalTimeUs()); 273 return perf_stats.GetAndResetStats(CoreTiming::GetGlobalTimeUs());
263 } 274 }
264 275
@@ -326,7 +337,7 @@ void System::PrepareReschedule() {
326 CurrentCpuCore().PrepareReschedule(); 337 CurrentCpuCore().PrepareReschedule();
327} 338}
328 339
329PerfStats::Results System::GetAndResetPerfStats() { 340PerfStatsResults System::GetAndResetPerfStats() {
330 return impl->GetAndResetPerfStats(); 341 return impl->GetAndResetPerfStats();
331} 342}
332 343
@@ -433,11 +444,11 @@ std::shared_ptr<Tegra::DebugContext> System::GetGPUDebugContext() const {
433 return impl->debug_context; 444 return impl->debug_context;
434} 445}
435 446
436void System::SetFilesystem(FileSys::VirtualFilesystem vfs) { 447void System::SetFilesystem(std::shared_ptr<FileSys::VfsFilesystem> vfs) {
437 impl->virtual_filesystem = std::move(vfs); 448 impl->virtual_filesystem = std::move(vfs);
438} 449}
439 450
440FileSys::VirtualFilesystem System::GetFilesystem() const { 451std::shared_ptr<FileSys::VfsFilesystem> System::GetFilesystem() const {
441 return impl->virtual_filesystem; 452 return impl->virtual_filesystem;
442} 453}
443 454