aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/system.cpp
diff options
context:
space:
mode:
authorGravatar bunnei <ericbunnie@gmail.com>2014-04-08 19:25:03 -0400
committerGravatar bunnei <ericbunnie@gmail.com>2014-04-08 19:25:03 -0400
commit63e46abdb8764bc97e91bae862c8d461e61b1965 (patch)
treee73f4aa25d7b4015a265e7bbfb6004dab7561027 /src/core/system.cpp
parent03c245345e1f319da5007c15019ed54432029fb8 (diff)
got rid of 'src' folders in each sub-project
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 00000000..1fc272d7
--- /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