aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/src/system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/src/system.cpp')
-rw-r--r--src/core/src/system.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/src/system.cpp b/src/core/src/system.cpp
index 6a2c13c9..7c829d60 100644
--- a/src/core/src/system.cpp
+++ b/src/core/src/system.cpp
@@ -23,9 +23,11 @@
*/
#include "core.h"
+#include "hw/hw.h"
#include "core_timing.h"
#include "mem_map.h"
#include "system.h"
+#include "video_core.h"
namespace System {
@@ -38,7 +40,9 @@ void UpdateState(State state) {
void Init(EmuWindow* emu_window) {
Core::Init();
Memory::Init();
+ HW::Init();
CoreTiming::Init();
+ VideoCore::Init(emu_window);
}
void RunLoopFor(int cycles) {
@@ -49,9 +53,10 @@ void RunLoopUntil(u64 global_cycles) {
}
void Shutdown() {
+ Core::Shutdown();
+ HW::Shutdown();
+ VideoCore::Shutdown();
g_ctr_file_system.Shutdown();
}
-
-
} // namespace