summaryrefslogtreecommitdiffstats
path: root/src/core/system.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-09 01:25:03 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-09 01:25:03 +0200
commit63e46abdb8764bc97e91bae862c8d461e61b1965 (patch)
treee73f4aa25d7b4015a265e7bbfb6004dab7561027 /src/core/system.cpp
parentfixed some license headers that I missed (diff)
downloadyuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.gz
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.bz2
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.lz
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.xz
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.tar.zst
yuzu-63e46abdb8764bc97e91bae862c8d461e61b1965.zip
Diffstat (limited to 'src/core/system.cpp')
-rw-r--r--src/core/system.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/core/system.cpp b/src/core/system.cpp
new file mode 100644
index 000000000..1fc272d70
--- /dev/null
+++ b/src/core/system.cpp
@@ -0,0 +1,42 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#include "core.h"
+#include "hw/hw.h"
+#include "core_timing.h"
+#include "mem_map.h"
+#include "system.h"
+#include "video_core.h"
+
+namespace System {
+
+volatile State g_state;
+MetaFileSystem g_ctr_file_system;
+
+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) {
+ RunLoopUntil(CoreTiming::GetTicks() + cycles);
+}
+
+void RunLoopUntil(u64 global_cycles) {
+}
+
+void Shutdown() {
+ Core::Shutdown();
+ HW::Shutdown();
+ VideoCore::Shutdown();
+ g_ctr_file_system.Shutdown();
+}
+
+} // namespace