Kernel: add KernelSystem class
This commit is contained in:
parent
1de63f9b16
commit
f446fd1fe5
4 changed files with 29 additions and 9 deletions
|
@ -36,6 +36,10 @@ class ArchiveManager;
|
|||
}
|
||||
} // namespace Service
|
||||
|
||||
namespace Kernel {
|
||||
class KernelSystem;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
|
||||
class System {
|
||||
|
@ -167,6 +171,12 @@ public:
|
|||
/// Gets a const reference to the archive manager
|
||||
const Service::FS::ArchiveManager& ArchiveManager() const;
|
||||
|
||||
/// Gets a reference to the kernel
|
||||
Kernel::KernelSystem& Kernel();
|
||||
|
||||
/// Gets a const reference to the kernel
|
||||
const Kernel::KernelSystem& Kernel() const;
|
||||
|
||||
PerfStats perf_stats;
|
||||
FrameLimiter frame_limiter;
|
||||
|
||||
|
@ -241,6 +251,8 @@ private:
|
|||
|
||||
std::unique_ptr<Service::FS::ArchiveManager> archive_manager;
|
||||
|
||||
std::unique_ptr<Kernel::KernelSystem> kernel;
|
||||
|
||||
static System s_instance;
|
||||
|
||||
ResultStatus status = ResultStatus::Success;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue