diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index ab7181a05..6dda20faa 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -78,6 +78,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, | |||
| 78 | return vfs->OpenFile(path, FileSys::Mode::Read); | 78 | return vfs->OpenFile(path, FileSys::Mode::Read); |
| 79 | } | 79 | } |
| 80 | struct System::Impl { | 80 | struct System::Impl { |
| 81 | explicit Impl(System& system) : kernel{system} {} | ||
| 81 | 82 | ||
| 82 | Cpu& CurrentCpuCore() { | 83 | Cpu& CurrentCpuCore() { |
| 83 | return cpu_core_manager.GetCurrentCore(); | 84 | return cpu_core_manager.GetCurrentCore(); |
| @@ -95,7 +96,7 @@ struct System::Impl { | |||
| 95 | LOG_DEBUG(HW_Memory, "initialized OK"); | 96 | LOG_DEBUG(HW_Memory, "initialized OK"); |
| 96 | 97 | ||
| 97 | core_timing.Initialize(); | 98 | core_timing.Initialize(); |
| 98 | kernel.Initialize(core_timing); | 99 | kernel.Initialize(); |
| 99 | 100 | ||
| 100 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( | 101 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( |
| 101 | std::chrono::system_clock::now().time_since_epoch()); | 102 | std::chrono::system_clock::now().time_since_epoch()); |
| @@ -265,7 +266,7 @@ struct System::Impl { | |||
| 265 | Core::FrameLimiter frame_limiter; | 266 | Core::FrameLimiter frame_limiter; |
| 266 | }; | 267 | }; |
| 267 | 268 | ||
| 268 | System::System() : impl{std::make_unique<Impl>()} {} | 269 | System::System() : impl{std::make_unique<Impl>(*this)} {} |
| 269 | System::~System() = default; | 270 | System::~System() = default; |
| 270 | 271 | ||
| 271 | Cpu& System::CurrentCpuCore() { | 272 | Cpu& System::CurrentCpuCore() { |