mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 07:02:52 +00:00
core: Make System's default constructor private
This makes it a compilation error to construct additional instances of the System class directly, preventing accidental wasteful constructions over and over.
This commit is contained in:
parent
3a4841e403
commit
10d2ab8098
|
@ -25,6 +25,8 @@ namespace Core {
|
|||
|
||||
/*static*/ System System::s_instance;
|
||||
|
||||
System::System() = default;
|
||||
|
||||
System::~System() = default;
|
||||
|
||||
/// Runs a CPU core while the system is powered on
|
||||
|
|
|
@ -168,6 +168,8 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
System();
|
||||
|
||||
/// Returns the currently running CPU core
|
||||
Cpu& CurrentCpuCore();
|
||||
|
||||
|
|
Loading…
Reference in a new issue